Package org.europa.together.domain
Class ConfigurationDO
java.lang.Object
org.europa.together.domain.ConfigurationDO
- All Implemented Interfaces:
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 Summary
Modifier and TypeFieldDescriptionstatic final String
The name of the used database table for this domain object. -
Constructor Summary
ConstructorDescriptionConstructor.ConfigurationDO
(String key, String value, String modulName, String version) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Get the comment.Get the configuration set.Get the default value.getKey()
Get the key.Get Modulename.getUuid()
Get the UUID.getValue()
Get value.Get module version.int
hashCode()
boolean
Show if entry is deprecated.boolean
Mark if an configuration entry is mandatory.void
Actions who have to performed before objects get persisted.void
setComment
(String comment) Set the comment.void
setConfigurationSet
(String configurationSet) Set the configuration set.void
setDefaultValue
(String defaultValue) Set the default value.void
setDeprecated
(boolean deprecated) Set if a entry is deprecated.void
Set key.void
setMandatory
(boolean mandatory) Set if a entry is mandatory.void
setModulName
(String modulName) Set moduleĀ“name.void
Set the UUID.void
Set value.void
setVersion
(String version) Set version of module.toString()
-
Field Details
-
TABLE_NAME
The name of the used database table for this domain object.- See Also:
-
-
Constructor Details
-
ConfigurationDO
public ConfigurationDO()Constructor. -
ConfigurationDO
Constructor.- Parameters:
key
- as Stringvalue
- as StringmodulName
- as Stringversion
- 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
Set the comment.- Parameters:
comment
- as String
-
setConfigurationSet
Set the configuration set.- Parameters:
configurationSet
- as String
-
setDefaultValue
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
Set key.- Parameters:
key
- as String
-
setModulName
Set moduleĀ“name.- Parameters:
modulName
- as String
-
setUuid
Set the UUID.- Parameters:
uuid
- as String
-
setValue
Set value.- Parameters:
value
- as String
-
setVersion
Set version of module.- Parameters:
version
- as String
-
getComment
Get the comment.- Returns:
- comment as String
-
getConfigurationSet
Get the configuration set.- Returns:
- ConfigurationSet as String.
-
getDefaultValue
Get the default value.- Returns:
- dafaultValue as String
-
getKey
Get the key.- Returns:
- key as String
-
getModulName
Get Modulename.- Returns:
- modulename as String
-
getUuid
Get the UUID.- Returns:
- UUID as String
-
getValue
Get value.- Returns:
- value as String
-
getVersion
Get module version.- Returns:
- moduleversion as String
-
equals
-
hashCode
public int hashCode() -
toString
-