Package org.europa.together.domain
Class ConfigurationDO
- java.lang.Object
-
- org.europa.together.domain.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 Summary
Fields Modifier and Type Field Description static String
TABLE_NAME
The name of the used database table for this domain object.
-
Constructor Summary
Constructors Constructor Description ConfigurationDO()
Constructor.ConfigurationDO(String key, String value, String modulName, String version)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getComment()
Get the comment.String
getConfigurationSet()
Get the configuration set.String
getDefaultValue()
Get the default value.String
getKey()
Get the key.String
getModulName()
Get Modulename.String
getUuid()
Get the UUID.String
getValue()
Get value.String
getVersion()
Get module version.int
hashCode()
boolean
isDepecated()
Show if entry is depecated.boolean
isMandatory()
Mark if an configuration entry is mandatory.void
prePersist()
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
setDepecated(boolean depecated)
Set if a entry is depecated.void
setKey(String key)
Set key.void
setMandatory(boolean mandatory)
Set if a entry is mandatory.void
setModulName(String modulName)
Set module“name.void
setUuid(String uuid)
Set the UUID.void
setValue(String value)
Set value.void
setVersion(String version)
Set version of module.String
toString()
-
-
-
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
-
-
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
-
-