Enum Class EConfig

java.lang.Object
java.lang.Enum<EConfig>
be.gaudry.model.bibliobrol.config.EConfig
All Implemented Interfaces:
Serializable, Comparable<EConfig>, Constable

public enum EConfig extends Enum<EConfig>
Since:
1.0 22-août-08
Author:
Steph GAUDRY Each BiblioBrolDAO must provide a "config" table or node to store some specific configuration info like persistence version, etc.
EConfig gives keys to access to the data (in a table, we may have two fields, one for the name - the key -, and one for the value)
  • Enum Constant Details

    • DB_VAL_PERSISTENCE_VERSION

      public static final EConfig DB_VAL_PERSISTENCE_VERSION
    • DB_VAL_PERSON_IMG_DIR_NAME

      public static final EConfig DB_VAL_PERSON_IMG_DIR_NAME
      Key to access to the name of the directory (sub-directory of the data directory) storing the persons identity photos.
    • DB_VAL_ITEM_IMG_DIR_NAME

      public static final EConfig DB_VAL_ITEM_IMG_DIR_NAME
      Key to access to the name of the directory (sub-directory of the data directory) storing the item's covers.
  • Method Details

    • values

      public static EConfig[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static EConfig valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • toString

      public String toString()
      Overrides:
      toString in class Enum<EConfig>
      Returns:
      key to access to the corresponding value in the persistent system
      See Also:
      Enum.toString()