Package africa.absa.inception.config
Class Config
- java.lang.Object
-
- africa.absa.inception.config.Config
-
- All Implemented Interfaces:
Serializable
@Entity public class Config extends Object implements Serializable
The Config class stores the key, value and description for the config.- Author:
- Marcus Portmann
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Config()Constructs a new Config.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object object)Indicates whether some other object is "equal to" this one.LocalDateTimegetCreated()Returns the date and time the config was created.StringgetDescription()Returns the description for the config.StringgetKey()Returns the key for the config.LocalDateTimegetUpdated()Returns the date and time the config was last updated.StringgetValue()Returns the value for the config.inthashCode()Returns a hash code value for the object.protected voidonCreate()protected voidonUpdate()voidsetDescription(String description)Set the description for the config.voidsetKey(String key)Set the key for the config.voidsetValue(String value)Set the value for the config.
-
-
-
Method Detail
-
equals
public boolean equals(Object object)
Indicates whether some other object is "equal to" this one.
-
getCreated
public LocalDateTime getCreated()
Returns the date and time the config was created.- Returns:
- the date and time the config was created
-
getDescription
public String getDescription()
Returns the description for the config.- Returns:
- the description for the config
-
getKey
public String getKey()
Returns the key for the config.- Returns:
- the key for the config
-
getUpdated
public LocalDateTime getUpdated()
Returns the date and time the config was last updated.- Returns:
- the date and time the config was last updated
-
getValue
public String 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
public void setDescription(String description)
Set the description for the config.- Parameters:
description- the description for the config
-
setKey
public void setKey(String key)
Set the key for the config.- Parameters:
key- the key for the config
-
setValue
public void setValue(String value)
Set the value for the config.- Parameters:
value- the value for the config
-
onCreate
protected void onCreate()
-
onUpdate
protected void onUpdate()
-
-