Package africa.absa.inception.config
Class Config
java.lang.Object
africa.absa.inception.config.Config
- All Implemented Interfaces:
Serializable
The Config class stores the key, value and description for the config.
- Author:
- Marcus Portmann
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.Returns the date and time the config was created.Returns the description for the config.getKey()Returns the key for the config.Returns the date and time the config was last updated.getValue()Returns the value for the config.inthashCode()Returns a hash code value for the object.protected voidonCreate()The Java Persistence callback method invoked before the entity is created in the database.protected voidonUpdate()The Java Persistence callback method invoked before the entity is updated in the database.voidsetDescription(String description) Set the description for the config.voidSet the key for the config.voidSet the value for the config.
-
Constructor Details
-
Config
public Config()Constructs a new Config.
-
-
Method Details
-
equals
Indicates whether some other object is "equal to" this one. -
getCreated
Returns the date and time the config was created.- Returns:
- the date and time the config was created
-
getDescription
Returns the description for the config.- Returns:
- the description for the config
-
getKey
Returns the key for the config.- Returns:
- the key for the config
-
getUpdated
Returns the date and time the config was last updated.- Returns:
- the date and time the config was last updated
-
getValue
Returns the value for the config.- Returns:
- the value for the config
-
hashCode
public int hashCode()Returns a hash code value for the object. -
setDescription
Set the description for the config.- Parameters:
description- the description for the config
-
setKey
Set the key for the config.- Parameters:
key- the key for the config
-
setValue
Set the value for the config.- Parameters:
value- the value for the config
-
onCreate
protected void onCreate()The Java Persistence callback method invoked before the entity is created in the database. -
onUpdate
protected void onUpdate()The Java Persistence callback method invoked before the entity is updated in the database.
-