|
||||||||||
| 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.examples.ExamplePerson
An example of an object that uses persistence. Relates to the ExampleEmployee class.
| Nested Class Summary |
| Nested classes inherited from class com.objectwave.persist.examples.DomainObject |
DomainObject.Test |
| Field Summary | |
static java.lang.reflect.Field |
_employee
|
static java.lang.reflect.Field |
_name
|
static java.util.Vector |
classDescriptor
|
ExampleEmployee |
employee
|
java.lang.String |
name
|
| Fields inherited from class com.objectwave.persist.examples.DomainObject |
adapt, editor, objectIdentifier, tableMap |
| Constructor Summary | |
ExamplePerson()
|
|
| Method Summary | |
ExampleEmployee |
getEmployee()
Gets the Employee attribute of the ExamplePerson object |
java.lang.String |
getName()
Generated accessors that route get and set methods through our ObjectEditor. |
void |
initDescriptor()
Describe how each attribute relates to the database. |
ObjectEditingView |
initializeObjectEditor()
Needed to define table name and the description of this class. |
void |
setEmployee(ExampleEmployee aValue)
Generated accessors that route get and set methods through our ObjectEditor. |
void |
setName(java.lang.String aValue)
Generated accessors that route get and set methods through our ObjectEditor. |
void |
update(boolean get,
java.lang.Object[] data,
java.lang.reflect.Field[] fields)
This method allows me to get arounds security problems with updating and object from a generic framework. |
| Methods inherited from class com.objectwave.persist.examples.DomainObject |
addDefaultPrimaryAttribute, createAdapter, delete, getAdapter, getBrokerName, getClassDescriptor, getEntry, getObjectEditor, getObjectIdentifier, getPrimaryKeyField, getPrimaryKeyFields, getSuperDescriptor, getTableName, getXmlDefinition, initDescription, initDescriptor, initializeObjectEditor, insert, isDirty, isRetrievedFromDatabase, isTransient, locateXmlMap, lock, markForDelete, save, setAsTransient, setBrokerName, setClassDescriptor, setEntry, setObjectEditor, setObjectIdentifier, setPrimaryKeyField, setPrintString, setRetrievedFromDatabase, setTableName, 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.util.Vector classDescriptor
public static java.lang.reflect.Field _name
public static java.lang.reflect.Field _employee
public java.lang.String name
public ExampleEmployee employee
| Constructor Detail |
public ExamplePerson()
| Method Detail |
public void setEmployee(ExampleEmployee aValue)
aValue - The new Employee valuepublic void setName(java.lang.String aValue)
aValue - The new Name valuepublic ExampleEmployee getEmployee()
public java.lang.String getName()
public void initDescriptor()
public ObjectEditingView initializeObjectEditor()
initializeObjectEditor in class DomainObject
public void update(boolean get,
java.lang.Object[] data,
java.lang.reflect.Field[] fields)
update in interface TransactionalObjectIFupdate in class DomainObjectget - data - fields -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||