| |
|
| jspPhoneBook.data.PersonDataStruct
PersonDataStruct | public class PersonDataStruct extends CoreDataStruct implements Cloneable,Serializable(Code) | | Data structure for DO class.
A container for data members of a DO class.
A DO class contains a reference to a DataStruct class. This reference
can be null (a DO whose data has not yet been retrieved from the database),
allowing a DO object to be a lightweight placeholder until its data is needed.
version: $Revision: 1.1 $ author: EnhydraTeam since: PhoneList; |
Field Summary | |
final public static int | COLUMN_FIRSTNAME Used for query caching. | final public static int | COLUMN_LASTNAME Used for query caching. | final public static int | COLUMN_OID Used for query caching. | final public static int | COLUMN_PHONENUMBER Used for query caching. | protected boolean | isEmpty Since originalData is being constructed for every DO, this flag
"knows" if DataStruct has any useful content. | public boolean | readOnly A DO refers to this DataStruct. |
COLUMN_FIRSTNAME | final public static int COLUMN_FIRSTNAME(Code) | | Used for query caching.
|
COLUMN_LASTNAME | final public static int COLUMN_LASTNAME(Code) | | Used for query caching.
|
COLUMN_OID | final public static int COLUMN_OID(Code) | | Used for query caching.
|
COLUMN_PHONENUMBER | final public static int COLUMN_PHONENUMBER(Code) | | Used for query caching.
|
isEmpty | protected boolean isEmpty(Code) | | Since originalData is being constructed for every DO, this flag
"knows" if DataStruct has any useful content.
|
readOnly | public boolean readOnly(Code) | | A DO refers to this DataStruct.
readOnly is set to true when the DO is stored in its class cache.
|
compareCond | public boolean compareCond(Condition cond)(Code) | | Compares whether this DataStruct object satisfies condition cond.
Parameters: cond - Condition of the query. true if this DataStruct object satisfies condition of this query,otherwise false. |
duplicate | public PersonDataStruct duplicate() throws DatabaseManagerException, ObjectIdException(Code) | | Create a copy of the guts of a DO.
Copied DataStruct object. exception: DatabaseManagerException - if createExisting() fails for a contained DO exception: ObjectIdException - if GenericDO has trouble obtaining a valid id. |
getOId | public ObjectId getOId()(Code) | | this object's identifier. |
getVersion | protected int getVersion()(Code) | | version |
get_CacheHandle | public String get_CacheHandle() throws DatabaseManagerException(Code) | | Returns this object's cache handle (String in the form:
".").
cache handle. exception: DatabaseManagerException - If a connection to the database cannot be established, etc. |
get_Database | public String get_Database()(Code) | | name of the logical database this DataStruct belongs to. |
get_Handle | public String get_Handle() throws DatabaseManagerException(Code) | | Returns this object's handle (identifier as a string).
This object's identifier as a string. exception: DatabaseManagerException - If a connection to the database cannot be established, etc. |
get_OId | public ObjectId get_OId()(Code) | | Returns this object's identifier.
this object's identifier. |
get_Version | protected int get_Version()(Code) | | version |
setFirstName | public void setFirstName(String _firstName)(Code) | | |
setOId | protected void setOId(ObjectId oId)(Code) | | Parameters: oId - this object's identifier. |
setPhoneNumber | public void setPhoneNumber(String _phoneNumber)(Code) | | |
setVersion | protected void setVersion(int v)(Code) | | version |
set_Database | public void set_Database(String dbName)(Code) | | Parameters: dbName - - name of the logical database this DataStruct should belong to. |
set_OId | protected void set_OId(ObjectId oId)(Code) | | Sets this object's identifier.
Parameters: oId - this object's identifier. |
set_Version | protected void set_Version(int v)(Code) | | Parameters: v - |
|
|
|