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

Quick Search    Search Deep

com.flexstor.common.data.ejb.address
Class AddressData  view AddressData download AddressData.java

java.lang.Object
  extended bycom.flexstor.common.data.ejb.Data
      extended bycom.flexstor.common.data.ejb.SettingData
          extended bycom.flexstor.common.data.ejb.address.AddressData
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
EmailAddressData, FtpAddressData

public class AddressData
extends com.flexstor.common.data.ejb.SettingData

This is the class that supports EmailAddressData and FtpAddressData

Since:
FLEXSTOR.db 3.0
Version:
1.0, 4/16/99

Field Summary
static java.lang.String IDENTIFIER
           
protected  java.lang.String sAddress
           
protected  java.lang.String sDescription
           
 
Fields inherited from class com.flexstor.common.data.ejb.SettingData
bIsEditable, EMAIL_ADDRESS, FTP_ADDRESS, IMPORT, key, SEND, sName, 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
AddressData()
          Default constructor for the AddressData class
AddressData(AddressData original)
          Creates a AddressData object based on an orginal AddressData object.
AddressData(java.lang.String aName)
          Constructor for the AddressData class
 
Method Summary
 com.flexstor.common.data.ejb.SettingData cloneObject()
          Copies all members from the this into a new object.
 boolean equals(java.lang.Object o)
          Determine if these two objects are equal, i.e.
 java.lang.String getAddress()
          Return the address of the respective address type
 java.lang.String getDescription()
          Return the description of the email address if not apparent
 java.lang.String getName()
          Return the name of the person or group reponsible for this address
 int hashcode()
          Overwrite required by PureJava Checker
private  boolean isAddressEqual(java.lang.String anAddress)
          Checks whether two address strings have equal values.
private  boolean isDescriptionEqual(java.lang.String aDescription)
          Checks whether two description strings have equal values.
private  boolean isNameEqual(java.lang.String aName)
          Checks whether two name strings have equal values.
 void setAddress(java.lang.String anEmailAddress)
          The email address in name@domain.TLD
 void setDescription(java.lang.String aDescription)
          A description of the email address if not apparent
 void setKey(com.flexstor.common.keys.ejb.SettingKey key)
          Sets the key for the object
 void setName(java.lang.String aName)
          The name of the person or group reponsible for this address
 void synchronize(AddressData original)
          Copies all members from the argument into the current object.
 java.lang.String toString()
          Return the contents of the instance as a String.
 
Methods inherited from class com.flexstor.common.data.ejb.SettingData
getKey, getTimestamp, isEditable, setEditable, setTimestamp, synchronize
 
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, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

IDENTIFIER

public static final java.lang.String IDENTIFIER
See Also:
Constant Field Values

sAddress

protected java.lang.String sAddress

sDescription

protected java.lang.String sDescription
Constructor Detail

AddressData

public AddressData()
Default constructor for the AddressData class


AddressData

public AddressData(java.lang.String aName)
Constructor for the AddressData class

Warning Any objects created with this constructor are not updatable (insertable, but not updatable) to the database


AddressData

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

Method Detail

cloneObject

public com.flexstor.common.data.ejb.SettingData cloneObject()
Copies all members from the this into a new object.


setKey

public void setKey(com.flexstor.common.keys.ejb.SettingKey key)
Sets the key for the object


synchronize

public void synchronize(AddressData 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.


equals

public boolean equals(java.lang.Object o)
Determine if these two objects are equal, i.e. their attributes are equal. This method will not test the equality of references to other objects


getAddress

public java.lang.String getAddress()
Return the address of the respective address type


getDescription

public java.lang.String getDescription()
Return the description of the email address if not apparent


getName

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


hashcode

public int hashcode()
Overwrite required by PureJava Checker


isAddressEqual

private boolean isAddressEqual(java.lang.String anAddress)
Checks whether two address strings have equal values.


isDescriptionEqual

private boolean isDescriptionEqual(java.lang.String aDescription)
Checks whether two description strings have equal values.


isNameEqual

private boolean isNameEqual(java.lang.String aName)
Checks whether two name strings have equal values.


setAddress

public void setAddress(java.lang.String anEmailAddress)
The email address in name@domain.TLD


setDescription

public void setDescription(java.lang.String aDescription)
A description of the email address if not apparent


setName

public void setName(java.lang.String aName)
The name of the person or group reponsible for this address


toString

public java.lang.String toString()
Return the contents of the instance as a String. This method is strictly for use by testing classes
and should not be called by business objects