Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.flexstor.common.data.ejb
Class SettingData  view SettingData download SettingData.java

java.lang.Object
  extended bycom.flexstor.common.data.ejb.Data
      extended bycom.flexstor.common.data.ejb.SettingData
All Implemented Interfaces:
java.io.Serializable

public class SettingData
extends Data

Abstact superclass for all "setting" dataobjects. Each setting has a name which is also its primary key in the database. key is an oracle byte array which identifies one record in the database. editable indicates if the setting can be modified

Version:
3.0

Field Summary
protected  boolean bIsEditable
           
static int EMAIL_ADDRESS
          Setting type e-mail address
static int FTP_ADDRESS
          Setting type FTP address
static int IMPORT
          Setting type ImportSetting
protected  com.flexstor.common.keys.ejb.SettingKey key
           
static int SEND
          Setting type SendSetting
(package private) static long serialVersionUID
           
protected  java.lang.String sName
           
protected  java.sql.Timestamp timeStamp
           
 
Fields inherited from class com.flexstor.common.data.ejb.Data
DELETE, DELETED, derived, htModifiedStates, htOptions, MODIFY, modTime, NEW_ENTRY, presentState, prevState, UNCHANGED, UPDATED, WARN_BEFORE_DELETE
 
Constructor Summary
SettingData()
          Creates a SettingData object with the editable flag set to false.
SettingData(SettingData original)
          Creates a SettingData object based on an orginal SettingData object.
 
Method Summary
 com.flexstor.common.keys.ejb.SettingKey getKey()
          Returns the oracle key for this object if it is persisted.
 java.lang.String getName()
          Return the name of the person or group reponsible for this address
 java.sql.Timestamp getTimestamp()
          Return the timestamp of this object in database when the object was retrieved
 boolean isEditable()
          Returns true if this object is editable.
 void setEditable(boolean bIsEditable)
          Sets the editable flag.
 void setName(java.lang.String aName)
          The name of the setting
 void setTimestamp(java.sql.Timestamp aTimeStamp)
          Assign the current timestamp of the object
 void synchronize(SettingData original)
          Copies all members from the argument into the current object.
 
Methods inherited from class com.flexstor.common.data.ejb.Data
assertEquals, changed, fillCloneInfo, getDateModTime, getModTime, getPresentState, getPreviousState, initializeState, isDeleted, isDerived, isModified, isModified, isObjectPersist, isOptionAllowed, resetModifiedStates, rollBackState, setDeleted, setDerived, setModifiedState, setModTime, setModTime, setNewEntry, setOption, setPerisistState, setPreviousState, setState, setUpdated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

SEND

public static final int SEND
Setting type SendSetting

See Also:
Constant Field Values

IMPORT

public static final int IMPORT
Setting type ImportSetting

See Also:
Constant Field Values

EMAIL_ADDRESS

public static final int EMAIL_ADDRESS
Setting type e-mail address

See Also:
Constant Field Values

FTP_ADDRESS

public static final int FTP_ADDRESS
Setting type FTP address

See Also:
Constant Field Values

key

protected com.flexstor.common.keys.ejb.SettingKey key

timeStamp

protected java.sql.Timestamp timeStamp

sName

protected java.lang.String sName

bIsEditable

protected boolean bIsEditable
Constructor Detail

SettingData

public SettingData()
Creates a SettingData object with the editable flag set to false.


SettingData

public SettingData(SettingData original)
Creates a SettingData object based on an orginal SettingData object. This constructor is intended to be used when duplicating this object.

Method Detail

getKey

public com.flexstor.common.keys.ejb.SettingKey getKey()
Returns the oracle key for this object if it is persisted. For new objects it is null;


setTimestamp

public void setTimestamp(java.sql.Timestamp aTimeStamp)
Assign the current timestamp of the object


getTimestamp

public java.sql.Timestamp getTimestamp()
Return the timestamp of this object in database when the object was retrieved


isEditable

public boolean isEditable()
Returns true if this object is editable.


setEditable

public void setEditable(boolean bIsEditable)
Sets the editable flag.


setName

public void setName(java.lang.String aName)
The name of the setting


getName

public java.lang.String getName()
Return the name of the person or group reponsible for this address


synchronize

public void synchronize(SettingData original)
Copies all members from the argument into the current object. This methods is used when the server returns an updated object to synchronize the client instance. Subclasses should overwrite this method, call super.synchronoze() and copy additional members they may have.