Class ConfigurationDO

java.lang.Object
org.europa.together.domain.ConfigurationDO
All Implemented Interfaces:
Serializable

@Entity public class ConfigurationDO extends Object implements Serializable
Application wide configuration with key=value entries. For an easier maintenance are entries with module-name, module-version and a deprecated marker extended.
See Also:
  • Field Details

    • TABLE_NAME

      public static final String TABLE_NAME
      The name of the used database table for this domain object.
      See Also:
  • Constructor Details

    • ConfigurationDO

      public ConfigurationDO()
      Constructor.
    • ConfigurationDO

      public ConfigurationDO(String key, String value, String modulName, String version)
      Constructor.
      Parameters:
      key - as String
      value - as String
      modulName - as String
      version - as String
  • Method Details

    • prePersist

      public void prePersist()
      Actions who have to performed before objects get persisted. e.g. cerate default entries in the database.
    • isDeprecated

      public boolean isDeprecated()
      Show if entry is deprecated.
      Returns:
      true if is deprecated
    • isMandatory

      public boolean isMandatory()
      Mark if an configuration entry is mandatory.
      Returns:
      true if is mandatory
    • setComment

      public void setComment(String comment)
      Set the comment.
      Parameters:
      comment - as String
    • setConfigurationSet

      public void setConfigurationSet(String configurationSet)
      Set the configuration set.
      Parameters:
      configurationSet - as String
    • setDefaultValue

      public void setDefaultValue(String defaultValue)
      Set the default value.
      Parameters:
      defaultValue - as String
    • setDeprecated

      public void setDeprecated(boolean deprecated)
      Set if a entry is deprecated.
      Parameters:
      deprecated - as boolean
    • setMandatory

      public void setMandatory(boolean mandatory)
      Set if a entry is mandatory.
      Parameters:
      mandatory - as boolean
    • setKey

      public void setKey(String key)
      Set key.
      Parameters:
      key - as String
    • setModulName

      public void setModulName(String modulName)
      Set moduleĀ“name.
      Parameters:
      modulName - as String
    • setUuid

      public void setUuid(String uuid)
      Set the UUID.
      Parameters:
      uuid - as String
    • setValue

      public void setValue(String value)
      Set value.
      Parameters:
      value - as String
    • setVersion

      public void setVersion(String version)
      Set version of module.
      Parameters:
      version - as String
    • getComment

      public String getComment()
      Get the comment.
      Returns:
      comment as String
    • getConfigurationSet

      public String getConfigurationSet()
      Get the configuration set.
      Returns:
      ConfigurationSet as String.
    • getDefaultValue

      public String getDefaultValue()
      Get the default value.
      Returns:
      dafaultValue as String
    • getKey

      public String getKey()
      Get the key.
      Returns:
      key as String
    • getModulName

      public String getModulName()
      Get Modulename.
      Returns:
      modulename as String
    • getUuid

      public String getUuid()
      Get the UUID.
      Returns:
      UUID as String
    • getValue

      public String getValue()
      Get value.
      Returns:
      value as String
    • getVersion

      public String getVersion()
      Get module version.
      Returns:
      moduleversion as String
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object