|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.objectwave.persist.examples.DomainObject | +--com.objectwave.persist.xml.test.Person
A simple persistent object defined by the Person.xml file.
Nested Class Summary | |
static class |
Person.Test
|
Nested classes inherited from class com.objectwave.persist.examples.DomainObject |
DomainObject.Test |
Field Summary | |
static java.lang.reflect.Field |
_age
|
static java.lang.reflect.Field |
_firstname
|
static java.lang.reflect.Field |
_lastname
|
static java.lang.reflect.Field |
_personPhone
|
static java.lang.reflect.Field |
_personPhone2
|
Fields inherited from class com.objectwave.persist.examples.DomainObject |
adapt, editor, objectIdentifier, tableMap |
Constructor Summary | |
Person()
Constructor for the Person object |
Method Summary | |
int |
getAge()
Gets the Age attribute of the Person object |
protected java.util.Vector |
getClassDescriptor()
Use an instance method to access a static variable. |
java.lang.String |
getFirstName()
Gets the FirstName attribute of the Person object |
java.lang.String |
getLastName()
Gets the LastName attribute of the Person object |
java.util.Vector |
getPersonPhone()
Gets the PersonPhone attribute of the Person object |
PersonPhone |
getPersonPhone2()
Gets the PersonPhone2 attribute of the Person object |
protected java.lang.String |
getTableName()
Use an instance method to access a static variable. |
void |
setAge(int aValue)
Sets the Age attribute of the Person object |
protected void |
setClassDescriptor(java.util.Vector v)
Use an instance method to access a static variable. |
void |
setFirstName(java.lang.String aValue)
Sets the FirstName attribute of the Person object |
void |
setLastName(java.lang.String aValue)
Sets the LastName attribute of the Person object |
void |
setPersonPhone(java.util.Vector aValue)
Sets the PersonPhone attribute of the Person object |
void |
setPersonPhone2(PersonPhone aValue)
Sets the PersonPhone2 attribute of the Person object |
protected void |
setTableName(java.lang.String table)
Use an instance method to access a static variable. |
void |
update(boolean get,
java.lang.Object[] data,
java.lang.reflect.Field[] fields)
Method no longer does anything since setAccessible solves our need for this behavior. |
Methods inherited from class com.objectwave.persist.examples.DomainObject |
addDefaultPrimaryAttribute, createAdapter, delete, getAdapter, getBrokerName, getEntry, getObjectEditor, getObjectIdentifier, getPrimaryKeyField, getPrimaryKeyFields, getSuperDescriptor, getXmlDefinition, initDescription, initDescriptor, initializeObjectEditor, initializeObjectEditor, insert, isDirty, isRetrievedFromDatabase, isTransient, locateXmlMap, lock, markForDelete, save, setAsTransient, setBrokerName, setEntry, setObjectEditor, setObjectIdentifier, setPrimaryKeyField, setPrintString, setRetrievedFromDatabase, toString, unlock, usesAdapter |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static java.lang.reflect.Field _age
public static java.lang.reflect.Field _firstname
public static java.lang.reflect.Field _lastname
public static java.lang.reflect.Field _personPhone
public static java.lang.reflect.Field _personPhone2
Constructor Detail |
public Person() throws java.lang.Exception
java.lang.Exception
Method Detail |
public int getAge()
protected java.util.Vector getClassDescriptor()
getClassDescriptor
in class DomainObject
public java.lang.String getFirstName()
public java.lang.String getLastName()
public java.util.Vector getPersonPhone()
public PersonPhone getPersonPhone2()
protected java.lang.String getTableName()
getTableName
in class DomainObject
public void setAge(int aValue)
aValue
- The new Age valueprotected void setClassDescriptor(java.util.Vector v)
setClassDescriptor
in class DomainObject
v
- The new ClassDescriptor valuepublic void setFirstName(java.lang.String aValue)
aValue
- The new FirstName valuepublic void setLastName(java.lang.String aValue)
aValue
- The new LastName valuepublic void setPersonPhone(java.util.Vector aValue)
aValue
- The new PersonPhone valuepublic void setPersonPhone2(PersonPhone aValue)
aValue
- The new PersonPhone2 valueprotected void setTableName(java.lang.String table)
setTableName
in class DomainObject
table
- The new TableName valuepublic void update(boolean get, java.lang.Object[] data, java.lang.reflect.Field[] fields)
DomainObject
update
in interface TransactionalObjectIF
update
in class DomainObject
get
- data
- fields
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |