Class ConfigurationDO

  • All Implemented Interfaces:
    Serializable

    @Entity
    @FeatureToggle(featureID="CM-0005.DO01")
    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:
    Serialized Form
    • Field Detail

      • TABLE_NAME

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

      • 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 Detail

      • prePersist

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

        public boolean isDepecated()
        Show if entry is depecated.
        Returns:
        true if is depecated
      • 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
      • setDepecated

        public void setDepecated​(boolean depecated)
        Set if a entry is depecated.
        Parameters:
        depecated - 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object