Package net.sf.basedb.core.data
Class SettingData
- java.lang.Object
-
- net.sf.basedb.core.data.BasicData
-
- net.sf.basedb.core.data.SettingData
-
- All Implemented Interfaces:
IdentifiableData
- Direct Known Subclasses:
ClientDefaultSettingData
,GlobalDefaultSettingData
,UserClientSettingData
,UserDefaultSettingData
public abstract class SettingData extends BasicData
- Version:
- 2.0
- Author:
- enell
- See Also:
Setting
, Developer documentation: Client, session and settings
-
-
Field Summary
Fields Modifier and Type Field Description static int
MAX_NAME_LENGTH
The maximum length of the name of the setting that can be stored in the database.static int
MAX_VALUE_LENGTH
The maximum length of the value of the setting that can be stored in the database.private String
name
private String
value
-
Constructor Summary
Constructors Constructor Description SettingData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
Used by Hibernate to link with setting name.String
getValue()
Get the value of this setting.void
setName(String name)
void
setValue(String value)
-
Methods inherited from class net.sf.basedb.core.data.BasicData
equals, getId, getVersion, hashCode, setId, setVersion, toString
-
-
-
-
Field Detail
-
MAX_NAME_LENGTH
public static final int MAX_NAME_LENGTH
The maximum length of the name of the setting that can be stored in the database.- See Also:
setName(String)
, Constant Field Values
-
name
private String name
-
MAX_VALUE_LENGTH
public static final int MAX_VALUE_LENGTH
The maximum length of the value of the setting that can be stored in the database.- See Also:
setValue(String)
, Constant Field Values
-
value
private String value
-
-
Method Detail
-
getName
public String getName()
Used by Hibernate to link with setting name. NOTE! Must be mapped in each of the subclasses to make unique-key settings unique.
-
setName
public void setName(String name)
-
getValue
public String getValue()
Get the value of this setting.- Hibernate: property
- column="`value`" type="text" not-null="true"
-
setValue
public void setValue(String value)
-
-