Class MsAccessConfig

java.lang.Object
be.gaudry.bibliobrol.dao.msaccess.MsAccessConfig
All Implemented Interfaces:
IConfigDao

public class MsAccessConfig extends Object implements IConfigDao
Since:
1.0 23-sept-08
Author:
Steph GAUDRY
  • Constructor Details

    • MsAccessConfig

      public MsAccessConfig()
  • Method Details

    • loadBrolTypes

      public List<BrolType> loadBrolTypes()
      Specified by:
      loadBrolTypes in interface IConfigDao
    • delete

      public boolean delete()
      Specified by:
      delete in interface IConfigDao
      Returns:
    • reset

      public boolean reset()
      Specified by:
      reset in interface IConfigDao
    • insertData

      public int insertData()
      Specified by:
      insertData in interface IConfigDao
    • getItemImageDirectory

      public String getItemImageDirectory()
      Description copied from interface: IConfigDao
      If the String is null or empty, images are stored into the database. Else the return value is the name of the sub-directory of the application data directory.
      Implementation may use the DB_VAL_ITEM_IMG_DIR_NAME key to sore or retrieve the value.
      Specified by:
      getItemImageDirectory in interface IConfigDao
      Returns:
      the directory name to store the item's covers
    • loadConfigValue

      public String loadConfigValue(EConfig eConfig)
      Description copied from interface: IConfigDao
      Loads a configuration value from the persistent system.
      If a cache is maintained with theses values, pay attention to update cache into the IConfigDao.saveConfigValue(EConfig, String) method.
      Specified by:
      loadConfigValue in interface IConfigDao
      Parameters:
      eConfig - key to retrieve the value.
      Returns:
      the corresponding value, or null if not found
    • getPersonImageDirectory

      public String getPersonImageDirectory()
      Description copied from interface: IConfigDao
      If the String is null or empty, images are stored into the database. Else the return value is the name of the sub-directory of the application data directory.
      Implementation may use the DB_VAL_PERSON_IMG_DIR_NAME key to sore or retrieve the value.
      Specified by:
      getPersonImageDirectory in interface IConfigDao
      Returns:
      the directory name to store the person's identity photos
    • getVersion

      public String getVersion()
      Description copied from interface: IConfigDao
      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.
      Implementation may use the DB_VAL_PERSISTENCE_VERSION key to sore or retrieve the value.
      Specified by:
      getVersion in interface IConfigDao
      Returns:
      the version
    • saveConfigValue

      public String saveConfigValue(EConfig config, String newValue)
      Description copied from interface: IConfigDao
      Stores a configuration value into the persistent system.
      If a cache is maintained with theses values, pay attention to update it.
      Specified by:
      saveConfigValue in interface IConfigDao
      Parameters:
      config - key to sore the value.
      Returns:
      the old value, or null if not found
    • loadBrolTypeImage

      public Icon loadBrolTypeImage(BrolType brolType)
      Specified by:
      loadBrolTypeImage in interface IConfigDao