Last update: 2011-06-23

org.proteios.core.data
Class SettingData

java.lang.Object
  extended by org.proteios.core.data.BasicData
      extended by org.proteios.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, Session and client overview

Field Summary
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.
 
Constructor Summary
SettingData()
           
 
Method Summary
 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 org.proteios.core.data.BasicData
equals, getId, getVersion, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MAX_NAME_LENGTH

public static int MAX_NAME_LENGTH
The maximum length of the name of the setting that can be stored in the database.

See Also:
setName(String)

MAX_VALUE_LENGTH

public static int MAX_VALUE_LENGTH
The maximum length of the value of the setting that can be stored in the database.

See Also:
setValue(String)
Constructor Detail

SettingData

public SettingData()
Method Detail

getName

public String getName()
Used by Hibernate to link with setting name.

Hibernate: property
type="string"
Hibernate: column
name="`name`" length="255" not-null="true" unique-key="uniquesetting"

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)

Last update: 2011-06-23