Class DbConfigurationManager<CommonAccessException extends java.lang.Exception>
- java.lang.Object
- 
- com.saperion.common.config.manager.DbConfigurationManager<CommonAccessException>
 
- 
- Type Parameters:
- CommonAccessException- the common access exception type of the underlying- DataSourceand so of the- DbConfigurationManagerto be created.
 
 public class DbConfigurationManager<CommonAccessException extends java.lang.Exception> extends java.lang.ObjectThe DbConfigurationManagermanages configuration values in a database table and an in-memory cache.One must specify a DataSource. One canset a different table name. One cancreate the table if it does not exist.A configuration value is basically a String. There are several methods for conversion of other values to string during get() and set() and it is highly recommended to rely on these specialized get()-methods and according objects it set() and not to convert them in the business code by yourself. These classes are supported:A configuration value can be null. This is treated as a valid value and it is a difference, whether a configuration value not exists or exists and is set tonull. ForStringsnulland an emptyStringboth are stored asnull. All get()-methods will returnnullin this case. So there is (intentionally) no way to store an emptyString.A configuration value is identified by a key that is a HierarchicalName. It is highly recommended to group your configuration values according to their sense and common usage the same way as you group java-classes into packages. All configuration values that belong to the same sub-tree can beloadedtogether.The get()-methods have an optional StorageType-parameter, that controls whether a configuration valueshould be loaded from the database,from the in-memory cacheorfrom the database only if it is not found in the in-memory cache. The methods without theStorageType-parameter behave likeStorageType.DEFAULT, i.e. they use theStorageTypethat was specified to use as the default during construction of theDbConfigurationManager(@seeDbConfigurationManagerConstructorParameters.setDefaultStorageType(StorageType)).Usual approaches are: - Simply use the get()-methods with StorageType.DB_IF_NOTHING_IN_MEMORYif there are only a few configuration values at all.
- Loada whole hierarchy of configuration values at some initialization point and use them later with- StorageType.MEMORYor- StorageType.DB_IF_NOTHING_IN_MEMORY.
 A root name can be providedin which case all entry-keys will start with this root name. If the key specified as a method parameter alreadystarts withthe root name it will be used unchanged, else the parameter will beaddedto the root name before use.The configuration values can be encrypted/decrypted automatically. Simply specify a Cipher and Pair of Keys.One can fine-tune what should happen if a requested configuration value is not found.This DbConfigurationManagerdoes no transaction handling. It simple executes its SQL-statements and relies on a suitable surrounding transaction management. If used in a JEE-container this is usually exactly the desired behavior. If used in a stand-alone application, one should care about the transaction around the invocations of methods of this class.Apart from transactional aspects the methods are synchronized, so an instance of this DbConfigurationManagercan be used in several threads concurrently.- Author:
- agz
- See Also:
- DbConfigurationManagerConstructorParameters,- StorageType,- NotFoundReactionType,- DataSource,- Cipher
 
- 
- 
Field SummaryFields Modifier and Type Field Description static intNAME_MAX_LENGTHThe maximum string length (toString()-result) of aHierarchicalNameto be used as a key by thisDbConfigurationManager.static java.lang.StringTABLE_NAME_REGEXThe regular expression, a table name must match.static intVALUE_MAX_LENGTHThe maximum string length of the serialized (and if encryption is active encrypted) representation of a configuration value to be used by thisDbConfigurationManager.
 - 
Constructor SummaryConstructors Constructor Description DbConfigurationManager(DbConfigurationManagerConstructorParameters<CommonAccessException> parameters)Creates a newDbConfigurationManagerwith the specifiedDbConfigurationManagerConstructorParameters.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateTableIfNotExistent()Tries to find out whether the underlying database table exists and if not so to create it by executing an SQL-CREATE-TABLE-statement.intdelete(HierarchicalName hierarchicalName, boolean includingSubvalues)Deletes the configuration value for the specifiedHierarchicalNamefrom the database and internal cache.booleanexists(HierarchicalName hierarchicalName)Tests whether a configuration value with the specifiedHierarchicalNameexists.booleanexists(HierarchicalName hierarchicalName, StorageType storageType)Tests whether a configuration value with the specifiedHierarchicalNameexists.BinarygetBinary(HierarchicalName hierarchicalName)Gets the configuration value with the specifiedHierarchicalNameand converts it to aBinary.BinarygetBinary(HierarchicalName hierarchicalName, StorageType storageType)Gets the configuration value with the specifiedHierarchicalNameand converts it to aBinary.java.lang.BooleangetBoolean(HierarchicalName hierarchicalName)Gets the configuration value with the specifiedHierarchicalNameand converts it to aBoolean.java.lang.BooleangetBoolean(HierarchicalName hierarchicalName, StorageType storageType)Gets the configuration value with the specifiedHierarchicalNameand converts it to aBoolean.java.util.DategetDateTime(HierarchicalName hierarchicalName)Gets the configuration value with the specifiedHierarchicalNameand converts it to aDate.java.util.DategetDateTime(HierarchicalName hierarchicalName, StorageType storageType)Gets the configuration value with the specifiedHierarchicalNameand converts it to aDate.DecimalgetDecimal(HierarchicalName hierarchicalName)Gets the configuration value with the specifiedHierarchicalNameand converts it to aDecimal.DecimalgetDecimal(HierarchicalName hierarchicalName, StorageType storageType)Gets the configuration value with the specifiedHierarchicalNameand converts it to aDecimal.java.lang.DoublegetDouble(HierarchicalName hierarchicalName)Gets the configuration value with the specifiedHierarchicalNameand converts it to aDouble.java.lang.DoublegetDouble(HierarchicalName hierarchicalName, StorageType storageType)Gets the configuration value with the specifiedHierarchicalNameand converts it to aDouble.java.lang.FloatgetFloat(HierarchicalName hierarchicalName)Gets the configuration value with the specifiedHierarchicalNameand converts it to aFloat.java.lang.FloatgetFloat(HierarchicalName hierarchicalName, StorageType storageType)Gets the configuration value with the specifiedHierarchicalNameand converts it to aFloat.java.util.Collection<HierarchicalName>getHierarchicalNames(HierarchicalName hierarchicalName)java.util.Collection<HierarchicalName>getHierarchicalNames(HierarchicalName hierarchicalName, StorageType storageType)GuidgetId(HierarchicalName hierarchicalName)Gets the configuration value with the specifiedHierarchicalNameand converts it to aGuid.GuidgetId(HierarchicalName hierarchicalName, StorageType storageType)Gets the configuration value with the specifiedHierarchicalNameand converts it to aGuid.java.lang.IntegergetInteger(HierarchicalName hierarchicalName)Gets the configuration value with the specifiedHierarchicalNameand converts it to anInteger.java.lang.IntegergetInteger(HierarchicalName hierarchicalName, StorageType storageType)Gets the configuration value with the specifiedHierarchicalNameand converts it to anInteger.java.lang.LonggetLong(HierarchicalName hierarchicalName)Gets the configuration value with the specifiedHierarchicalNameand converts it to aLong.java.lang.LonggetLong(HierarchicalName hierarchicalName, StorageType storageType)Gets the configuration value with the specifiedHierarchicalNameand converts it to aLong.java.lang.StringgetString(HierarchicalName hierarchicalName)Gets the configuration value with the specifiedHierarchicalName.java.lang.StringgetString(HierarchicalName hierarchicalName, StorageType storageType)Gets the configuration value with the specifiedHierarchicalName.voidload(HierarchicalName hierarchicalName)Loads the configuration value for the specifiedHierarchicalNamefrom the database and stores it into the internal cache.voidload(HierarchicalName hierarchicalName, boolean includingSubvalues)Loads the configuration value for the specifiedHierarchicalNamefrom the database and stores it into the internal cache.voidset(HierarchicalName hierarchicalName, java.lang.Object value)Sets the configuration value with the specifiedHierarchicalName.voidset(java.util.Map<HierarchicalName,java.lang.Object> mapHierarchicalName2Value)Sets all the specified configuration values (values of the specified map) according to their specifiedHierarchicalNames (keys of the specified map.
 
- 
- 
- 
Field Detail- 
TABLE_NAME_REGEXpublic static final java.lang.String TABLE_NAME_REGEX The regular expression, a table name must match.- See Also:
- Constant Field Values
 
 - 
NAME_MAX_LENGTHpublic static final int NAME_MAX_LENGTH The maximum string length (toString()-result) of aHierarchicalNameto be used as a key by thisDbConfigurationManager.- See Also:
- Constant Field Values
 
 - 
VALUE_MAX_LENGTHpublic static final int VALUE_MAX_LENGTH The maximum string length of the serialized (and if encryption is active encrypted) representation of a configuration value to be used by thisDbConfigurationManager.- See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
DbConfigurationManagerpublic DbConfigurationManager(DbConfigurationManagerConstructorParameters<CommonAccessException> parameters) Creates a newDbConfigurationManagerwith the specifiedDbConfigurationManagerConstructorParameters. The specifiedDbConfigurationManagerConstructorParametersmust not benull.- Parameters:
- parameters-- DbConfigurationManagerConstructorParameters
 
 
- 
 - 
Method Detail- 
createTableIfNotExistentpublic void createTableIfNotExistent() throws CommonAccessException extends java.lang.ExceptionTries to find out whether the underlying database table exists and if not so to create it by executing an SQL-CREATE-TABLE-statement. This method does not analyze whether an existing database table is correct.- Throws:
- java.lang.IllegalStateException- on errors during the existence check
- CommonAccessException- on errors during creation of the table
- CommonAccessException extends java.lang.Exception
 
 - 
deletepublic int delete(HierarchicalName hierarchicalName, boolean includingSubvalues) throws CommonAccessException extends java.lang.Exception Deletes the configuration value for the specifiedHierarchicalNamefrom the database and internal cache. If specified to include sub-values all configuration values that namesstart withthe specifiedHierarchicalNameare deleted. The specifiedHierarchicalNamemust not benull.- Parameters:
- hierarchicalName-- HierarchicalName
- includingSubvalues- whether to include sub-values
- Returns:
- count of manipulated rows
- Throws:
- CommonAccessException- on errors during db-operations
- CommonAccessException extends java.lang.Exception
 
 - 
loadpublic void load(HierarchicalName hierarchicalName, boolean includingSubvalues) throws CommonAccessException extends java.lang.Exception Loads the configuration value for the specifiedHierarchicalNamefrom the database and stores it into the internal cache. If specified to include sub-values all configuration values that namesstart withthe specifiedHierarchicalNameare loaded. The specifiedHierarchicalNamemust not benull.- Parameters:
- hierarchicalName-- HierarchicalName
- includingSubvalues- whether to include sub-values
- Throws:
- CommonAccessException- on errors during db-operations
- CommonAccessException extends java.lang.Exception
 
 - 
loadpublic void load(HierarchicalName hierarchicalName) throws CommonAccessException extends java.lang.Exception Loads the configuration value for the specifiedHierarchicalNamefrom the database and stores it into the internal cache. The specifiedHierarchicalNamemust not benull.- Parameters:
- hierarchicalName-- HierarchicalName
- Throws:
- CommonAccessException- on errors during db-operations
- CommonAccessException extends java.lang.Exception
 
 - 
existspublic boolean exists(HierarchicalName hierarchicalName, StorageType storageType) throws CommonAccessException extends java.lang.Exception Tests whether a configuration value with the specifiedHierarchicalNameexists. The operation is executed according to the specifiedStorageType. The specifiedHierarchicalNamemust not benull. The specifiedStorageTypemust not benull.- Parameters:
- hierarchicalName-- HierarchicalName
- storageType-- StorageType
- Returns:
- whether such a configuration value exists
- Throws:
- CommonAccessException- on errors during db-operations
- CommonAccessException extends java.lang.Exception
 
 - 
existspublic boolean exists(HierarchicalName hierarchicalName) throws CommonAccessException extends java.lang.Exception Tests whether a configuration value with the specifiedHierarchicalNameexists. The operation is executed according to the defaultStorageTypeconfigured during construction of thisDbConfigurationManager. The specifiedHierarchicalNamemust not benull.- Parameters:
- hierarchicalName-- HierarchicalName
- Returns:
- whether such a configuration value exists
- Throws:
- CommonAccessException- on errors during db-operations
- CommonAccessException extends java.lang.Exception
 
 - 
getHierarchicalNamespublic java.util.Collection<HierarchicalName> getHierarchicalNames(HierarchicalName hierarchicalName, StorageType storageType) throws CommonAccessException extends java.lang.Exception Gets aCollectionof allHierarchicalNames thatstarts withthe specifiedHierarchicalName. The operation is executed according to the specifiedStorageType.StorageType.DB_IF_NOTHING_IN_MEMORYis treated equally toStorageType.DBin this method to avoid incomplete results. If no such value is found an emptyCollectionwill be returned. The specifiedHierarchicalNamemust not benull. The specifiedStorageTypemust not benull.- Parameters:
- hierarchicalName-- HierarchicalNameall results will start with
- storageType-- StorageType
- Returns:
- Collectionof- HierarchicalNames
- Throws:
- CommonAccessException- on errors during db-operations
- CommonAccessException extends java.lang.Exception
 
 - 
getHierarchicalNamespublic java.util.Collection<HierarchicalName> getHierarchicalNames(HierarchicalName hierarchicalName) throws CommonAccessException extends java.lang.Exception Gets aCollectionof allHierarchicalNames thatstarts withthe specifiedHierarchicalName. The operation is executed according to the defaultStorageTypeconfigured during construction of thisDbConfigurationManager. If no such value is found an emptyCollectionwill be returned. The specifiedHierarchicalNamemust not benull.- Parameters:
- hierarchicalName-- HierarchicalNameall results will start with
- Returns:
- Collectionof- HierarchicalNames
- Throws:
- CommonAccessException- on errors during db-operations
- CommonAccessException extends java.lang.Exception
 
 - 
getStringpublic java.lang.String getString(HierarchicalName hierarchicalName, StorageType storageType) throws CommonAccessException extends java.lang.Exception Gets the configuration value with the specifiedHierarchicalName. The operation is executed according to the specifiedStorageType. If no such value is found, the behavior is defined by theNotFoundReactionTypespecified during construction of thisDbConfigurationManager. The specifiedHierarchicalNamemust not benull. The specifiedStorageTypemust not benull.- Parameters:
- hierarchicalName-- HierarchicalName
- storageType-- StorageType
- Returns:
- the configuration value
- Throws:
- CommonAccessException- on errors during db-operations
- CommonAccessException extends java.lang.Exception
 
 - 
getStringpublic java.lang.String getString(HierarchicalName hierarchicalName) throws CommonAccessException extends java.lang.Exception Gets the configuration value with the specifiedHierarchicalName. The operation is executed according to the defaultStorageTypeconfigured during construction of thisDbConfigurationManager. If no such value is found, the behavior is defined by theNotFoundReactionTypespecified during construction of thisDbConfigurationManager. The specifiedHierarchicalNamemust not benull.- Parameters:
- hierarchicalName-- HierarchicalName
- Returns:
- the configuration value
- Throws:
- CommonAccessException- on errors during db-operations
- CommonAccessException extends java.lang.Exception
 
 - 
getIdpublic final Guid getId(HierarchicalName hierarchicalName, StorageType storageType) throws CommonAccessException extends java.lang.Exception Gets the configuration value with the specifiedHierarchicalNameand converts it to aGuid. The operation is executed according to the specifiedStorageType. If no such value is found, the behavior is defined by theNotFoundReactionTypespecified during construction of thisDbConfigurationManager. The specifiedHierarchicalNamemust not benull. The specifiedStorageTypemust not benull.- Parameters:
- hierarchicalName-- HierarchicalName
- storageType-- StorageType
- Returns:
- the configuration value
- Throws:
- CommonAccessException- on errors during db-operations
- CommonAccessException extends java.lang.Exception
 
 - 
getIdpublic final Guid getId(HierarchicalName hierarchicalName) throws CommonAccessException extends java.lang.Exception Gets the configuration value with the specifiedHierarchicalNameand converts it to aGuid. The operation is executed according to the defaultStorageTypeconfigured during construction of thisDbConfigurationManager. If no such value is found, the behavior is defined by theNotFoundReactionTypespecified during construction of thisDbConfigurationManager. The specifiedHierarchicalNamemust not benull.- Parameters:
- hierarchicalName-- HierarchicalName
- Returns:
- the configuration value
- Throws:
- CommonAccessException- on errors during db-operations
- CommonAccessException extends java.lang.Exception
 
 - 
getIntegerpublic final java.lang.Integer getInteger(HierarchicalName hierarchicalName, StorageType storageType) throws CommonAccessException extends java.lang.Exception Gets the configuration value with the specifiedHierarchicalNameand converts it to anInteger. The operation is executed according to the specifiedStorageType. If no such value is found, the behavior is defined by theNotFoundReactionTypespecified during construction of thisDbConfigurationManager. The specifiedHierarchicalNamemust not benull. The specifiedStorageTypemust not benull.- Parameters:
- hierarchicalName-- HierarchicalName
- storageType-- StorageType
- Returns:
- the configuration value
- Throws:
- CommonAccessException- on errors during db-operations
- CommonAccessException extends java.lang.Exception
 
 - 
getIntegerpublic final java.lang.Integer getInteger(HierarchicalName hierarchicalName) throws CommonAccessException extends java.lang.Exception Gets the configuration value with the specifiedHierarchicalNameand converts it to anInteger. The operation is executed according to the defaultStorageTypeconfigured during construction of thisDbConfigurationManager. If no such value is found, the behavior is defined by theNotFoundReactionTypespecified during construction of thisDbConfigurationManager. The specifiedHierarchicalNamemust not benull.- Parameters:
- hierarchicalName-- HierarchicalName
- Returns:
- the configuration value
- Throws:
- CommonAccessException- on errors during db-operations
- CommonAccessException extends java.lang.Exception
 
 - 
getLongpublic final java.lang.Long getLong(HierarchicalName hierarchicalName, StorageType storageType) throws CommonAccessException extends java.lang.Exception Gets the configuration value with the specifiedHierarchicalNameand converts it to aLong. The operation is executed according to the specifiedStorageType. If no such value is found, the behavior is defined by theNotFoundReactionTypespecified during construction of thisDbConfigurationManager. The specifiedHierarchicalNamemust not benull. The specifiedStorageTypemust not benull.- Parameters:
- hierarchicalName-- HierarchicalName
- storageType-- StorageType
- Returns:
- the configuration value
- Throws:
- CommonAccessException- on errors during db-operations
- CommonAccessException extends java.lang.Exception
 
 - 
getLongpublic final java.lang.Long getLong(HierarchicalName hierarchicalName) throws CommonAccessException extends java.lang.Exception Gets the configuration value with the specifiedHierarchicalNameand converts it to aLong. The operation is executed according to the defaultStorageTypeconfigured during construction of thisDbConfigurationManager. If no such value is found, the behavior is defined by theNotFoundReactionTypespecified during construction of thisDbConfigurationManager. The specifiedHierarchicalNamemust not benull.- Parameters:
- hierarchicalName-- HierarchicalName
- Returns:
- the configuration value
- Throws:
- CommonAccessException- on errors during db-operations
- CommonAccessException extends java.lang.Exception
 
 - 
getDecimalpublic final Decimal getDecimal(HierarchicalName hierarchicalName, StorageType storageType) throws CommonAccessException extends java.lang.Exception Gets the configuration value with the specifiedHierarchicalNameand converts it to aDecimal. The operation is executed according to the specifiedStorageType. If no such value is found, the behavior is defined by theNotFoundReactionTypespecified during construction of thisDbConfigurationManager. The specifiedHierarchicalNamemust not benull. The specifiedStorageTypemust not benull.- Parameters:
- hierarchicalName-- HierarchicalName
- storageType-- StorageType
- Returns:
- the configuration value
- Throws:
- CommonAccessException- on errors during db-operations
- CommonAccessException extends java.lang.Exception
 
 - 
getDecimalpublic final Decimal getDecimal(HierarchicalName hierarchicalName) throws CommonAccessException extends java.lang.Exception Gets the configuration value with the specifiedHierarchicalNameand converts it to aDecimal. The operation is executed according to the defaultStorageTypeconfigured during construction of thisDbConfigurationManager. If no such value is found, the behavior is defined by theNotFoundReactionTypespecified during construction of thisDbConfigurationManager. The specifiedHierarchicalNamemust not benull.- Parameters:
- hierarchicalName-- HierarchicalName
- Returns:
- the configuration value
- Throws:
- CommonAccessException- on errors during db-operations
- CommonAccessException extends java.lang.Exception
 
 - 
getFloatpublic final java.lang.Float getFloat(HierarchicalName hierarchicalName, StorageType storageType) throws CommonAccessException extends java.lang.Exception Gets the configuration value with the specifiedHierarchicalNameand converts it to aFloat. The operation is executed according to the specifiedStorageType. If no such value is found, the behavior is defined by theNotFoundReactionTypespecified during construction of thisDbConfigurationManager. The specifiedHierarchicalNamemust not benull. The specifiedStorageTypemust not benull.- Parameters:
- hierarchicalName-- HierarchicalName
- storageType-- StorageType
- Returns:
- the configuration value
- Throws:
- CommonAccessException- on errors during db-operations
- CommonAccessException extends java.lang.Exception
 
 - 
getFloatpublic final java.lang.Float getFloat(HierarchicalName hierarchicalName) throws CommonAccessException extends java.lang.Exception Gets the configuration value with the specifiedHierarchicalNameand converts it to aFloat. The operation is executed according to the defaultStorageTypeconfigured during construction of thisDbConfigurationManager. If no such value is found, the behavior is defined by theNotFoundReactionTypespecified during construction of thisDbConfigurationManager. The specifiedHierarchicalNamemust not benull.- Parameters:
- hierarchicalName-- HierarchicalName
- Returns:
- the configuration value
- Throws:
- CommonAccessException- on errors during db-operations
- CommonAccessException extends java.lang.Exception
 
 - 
getDoublepublic final java.lang.Double getDouble(HierarchicalName hierarchicalName, StorageType storageType) throws CommonAccessException extends java.lang.Exception Gets the configuration value with the specifiedHierarchicalNameand converts it to aDouble. The operation is executed according to the specifiedStorageType. If no such value is found, the behavior is defined by theNotFoundReactionTypespecified during construction of thisDbConfigurationManager. The specifiedHierarchicalNamemust not benull. The specifiedStorageTypemust not benull.- Parameters:
- hierarchicalName-- HierarchicalName
- storageType-- StorageType
- Returns:
- the configuration value
- Throws:
- CommonAccessException- on errors during db-operations
- CommonAccessException extends java.lang.Exception
 
 - 
getDoublepublic final java.lang.Double getDouble(HierarchicalName hierarchicalName) throws CommonAccessException extends java.lang.Exception Gets the configuration value with the specifiedHierarchicalNameand converts it to aDouble. The operation is executed according to the defaultStorageTypeconfigured during construction of thisDbConfigurationManager. If no such value is found, the behavior is defined by theNotFoundReactionTypespecified during construction of thisDbConfigurationManager. The specifiedHierarchicalNamemust not benull.- Parameters:
- hierarchicalName-- HierarchicalName
- Returns:
- the configuration value
- Throws:
- CommonAccessException- on errors during db-operations
- CommonAccessException extends java.lang.Exception
 
 - 
getBooleanpublic final java.lang.Boolean getBoolean(HierarchicalName hierarchicalName, StorageType storageType) throws CommonAccessException extends java.lang.Exception Gets the configuration value with the specifiedHierarchicalNameand converts it to aBoolean. The operation is executed according to the specifiedStorageType. If no such value is found, the behavior is defined by theNotFoundReactionTypespecified during construction of thisDbConfigurationManager. The specifiedHierarchicalNamemust not benull. The specifiedStorageTypemust not benull.- Parameters:
- hierarchicalName-- HierarchicalName
- storageType-- StorageType
- Returns:
- the configuration value
- Throws:
- CommonAccessException- on errors during db-operations
- CommonAccessException extends java.lang.Exception
 
 - 
getBooleanpublic final java.lang.Boolean getBoolean(HierarchicalName hierarchicalName) throws CommonAccessException extends java.lang.Exception Gets the configuration value with the specifiedHierarchicalNameand converts it to aBoolean. The operation is executed according to the defaultStorageTypeconfigured during construction of thisDbConfigurationManager. If no such value is found, the behavior is defined by theNotFoundReactionTypespecified during construction of thisDbConfigurationManager. The specifiedHierarchicalNamemust not benull.- Parameters:
- hierarchicalName-- HierarchicalName
- Returns:
- the configuration value
- Throws:
- CommonAccessException- on errors during db-operations
- CommonAccessException extends java.lang.Exception
 
 - 
getDateTimepublic final java.util.Date getDateTime(HierarchicalName hierarchicalName, StorageType storageType) throws CommonAccessException extends java.lang.Exception Gets the configuration value with the specifiedHierarchicalNameand converts it to aDate. The operation is executed according to the specifiedStorageType. If no such value is found, the behavior is defined by theNotFoundReactionTypespecified during construction of thisDbConfigurationManager. The specifiedHierarchicalNamemust not benull. The specifiedStorageTypemust not benull.- Parameters:
- hierarchicalName-- HierarchicalName
- storageType-- StorageType
- Returns:
- the configuration value
- Throws:
- CommonAccessException- on errors during db-operations
- CommonAccessException extends java.lang.Exception
 
 - 
getDateTimepublic final java.util.Date getDateTime(HierarchicalName hierarchicalName) throws CommonAccessException extends java.lang.Exception Gets the configuration value with the specifiedHierarchicalNameand converts it to aDate. The operation is executed according to the defaultStorageTypeconfigured during construction of thisDbConfigurationManager. If no such value is found, the behavior is defined by theNotFoundReactionTypespecified during construction of thisDbConfigurationManager. The specifiedHierarchicalNamemust not benull.- Parameters:
- hierarchicalName-- HierarchicalName
- Returns:
- the configuration value
- Throws:
- CommonAccessException- on errors during db-operations
- CommonAccessException extends java.lang.Exception
 
 - 
getBinarypublic final Binary getBinary(HierarchicalName hierarchicalName, StorageType storageType) throws CommonAccessException extends java.lang.Exception Gets the configuration value with the specifiedHierarchicalNameand converts it to aBinary. The operation is executed according to the specifiedStorageType. If no such value is found, the behavior is defined by theNotFoundReactionTypespecified during construction of thisDbConfigurationManager. The specifiedHierarchicalNamemust not benull. The specifiedStorageTypemust not benull.- Parameters:
- hierarchicalName-- HierarchicalName
- storageType-- StorageType
- Returns:
- the configuration value
- Throws:
- CommonAccessException- on errors during db-operations
- CommonAccessException extends java.lang.Exception
 
 - 
getBinarypublic final Binary getBinary(HierarchicalName hierarchicalName) throws CommonAccessException extends java.lang.Exception Gets the configuration value with the specifiedHierarchicalNameand converts it to aBinary. The operation is executed according to the defaultStorageTypeconfigured during construction of thisDbConfigurationManager. If no such value is found, the behavior is defined by theNotFoundReactionTypespecified during construction of thisDbConfigurationManager. The specifiedHierarchicalNamemust not benull.- Parameters:
- hierarchicalName-- HierarchicalName
- Returns:
- the configuration value
- Throws:
- CommonAccessException- on errors during db-operations
- CommonAccessException extends java.lang.Exception
 
 - 
setpublic void set(HierarchicalName hierarchicalName, java.lang.Object value) throws CommonAccessException extends java.lang.Exception Sets the configuration value with the specifiedHierarchicalName. Saves it both in the database and in the in-memory cache. The object must be one of the following: The specifiedHierarchicalNamemust not benull.- Parameters:
- hierarchicalName-- HierarchicalName
- value- the configuration value
- Throws:
- CommonAccessException- on errors during db-operations
- CommonAccessException extends java.lang.Exception
 
 - 
setpublic void set(java.util.Map<HierarchicalName,java.lang.Object> mapHierarchicalName2Value) throws CommonAccessException extends java.lang.Exception Sets all the specified configuration values (values of the specified map) according to their specifiedHierarchicalNames (keys of the specified map. Saves them both in the database and in the in-memory cache. Every value-object must be one of the following: All the specifiedHierarchicalNames must not benull. The specifiedMapmust not benull.- Parameters:
- mapHierarchicalName2Value-- Mapof configuration values (key =- HierarchicalName, value = configuration value (- Object))
- Throws:
- CommonAccessException- on errors during db-operations
- CommonAccessException extends java.lang.Exception
 
 
- 
 
-