Package be.gaudry.bibliobrol.dao.derby
Class DerbyConfig
java.lang.Object
be.gaudry.bibliobrol.dao.derby.DerbyConfig
- All Implemented Interfaces:
IConfigDao
- Since:
- 1.0 28-mai-08
- Author:
- Steph GAUDRY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleandelete()If theStringis null or empty, images are stored into the database.If theStringis null or empty, images are stored into the database.Version of the persistent system schema.
If a new application version needs some modification on the schema, an update of the persistent system (add a table or a node, ...) may be done depending on the persistence version.intloadBrolTypeImage(BrolType brolType)loadConfigValue(EConfig eConfig)Loads a configuration value from the persistent system.
If a cache is maintained with theses values, pay attention to update cache into theIConfigDao.saveConfigValue(EConfig, String)method.booleanreset()saveConfigValue(EConfig eConfig, String newValue)Stores a configuration value into the persistent system.
If a cache is maintained with theses values, pay attention to update it.
-
Constructor Details
-
DerbyConfig
public DerbyConfig()
-
-
Method Details
-
loadBrolTypes
- Specified by:
loadBrolTypesin interfaceIConfigDao
-
delete
public boolean delete()- Specified by:
deletein interfaceIConfigDao- Returns:
-
reset
public boolean reset()- Specified by:
resetin interfaceIConfigDao
-
insertData
public int insertData()- Specified by:
insertDatain interfaceIConfigDao
-
getItemImageDirectory
Description copied from interface:IConfigDaoIf theStringis null or empty, images are stored into the database. Else the return value is the name of the sub-directory of theapplication data directory.
Implementation may use theDB_VAL_ITEM_IMG_DIR_NAMEkey to sore or retrieve the value.- Specified by:
getItemImageDirectoryin interfaceIConfigDao- Returns:
- the directory name to store the item's covers
-
loadConfigValue
Description copied from interface:IConfigDaoLoads a configuration value from the persistent system.
If a cache is maintained with theses values, pay attention to update cache into theIConfigDao.saveConfigValue(EConfig, String)method.- Specified by:
loadConfigValuein interfaceIConfigDao- Parameters:
eConfig- key to retrieve the value.- Returns:
- the corresponding value, or null if not found
-
saveConfigValue
Description copied from interface:IConfigDaoStores a configuration value into the persistent system.
If a cache is maintained with theses values, pay attention to update it.- Specified by:
saveConfigValuein interfaceIConfigDao- Parameters:
eConfig- key to sore the value.- Returns:
- the old value, or null if not found
-
getPersonImageDirectory
Description copied from interface:IConfigDaoIf theStringis null or empty, images are stored into the database. Else the return value is the name of the sub-directory of theapplication data directory.
Implementation may use theDB_VAL_PERSON_IMG_DIR_NAMEkey to sore or retrieve the value.- Specified by:
getPersonImageDirectoryin interfaceIConfigDao- Returns:
- the directory name to store the person's identity photos
-
getVersion
Description copied from interface:IConfigDaoVersion of the persistent system schema.
If a new application version needs some modification on the schema, an update of the persistent system (add a table or a node, ...) may be done depending on the persistence version.
Implementation may use theDB_VAL_PERSISTENCE_VERSIONkey to sore or retrieve the value.- Specified by:
getVersionin interfaceIConfigDao- Returns:
- the version
-
loadBrolTypeImage
- Specified by:
loadBrolTypeImagein interfaceIConfigDao
-