com.objectwave.persist.examples
Class ExamplePerson

java.lang.Object
  |
  +--com.objectwave.persist.examples.DomainObject
        |
        +--com.objectwave.persist.examples.ExamplePerson
All Implemented Interfaces:
Persistence, java.io.Serializable, TransactionalObjectIF

public class ExamplePerson
extends DomainObject

An example of an object that uses persistence. Relates to the ExampleEmployee class.

Version:
$Id: ExamplePerson.java,v 2.0 2001/06/11 16:00:04 dave_hoag Exp $
Author:
dhoag
See Also:
Serialized Form

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

classDescriptor

public static java.util.Vector classDescriptor

_name

public static java.lang.reflect.Field _name

_employee

public static java.lang.reflect.Field _employee

name

public java.lang.String name

employee

public ExampleEmployee employee
Constructor Detail

ExamplePerson

public ExamplePerson()
Method Detail

setEmployee

public void setEmployee(ExampleEmployee aValue)
Generated accessors that route get and set methods through our ObjectEditor.

Parameters:
aValue - The new Employee value

setName

public void setName(java.lang.String aValue)
Generated accessors that route get and set methods through our ObjectEditor.

Parameters:
aValue - The new Name value

getEmployee

public ExampleEmployee getEmployee()
Gets the Employee attribute of the ExamplePerson object

Returns:
The Employee value

getName

public java.lang.String getName()
Generated accessors that route get and set methods through our ObjectEditor.

Returns:
The Name value

initDescriptor

public void initDescriptor()
Describe how each attribute relates to the database.


initializeObjectEditor

public ObjectEditingView initializeObjectEditor()
Needed to define table name and the description of this class.

Overrides:
initializeObjectEditor in class DomainObject
Returns:

update

public 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. This will change with the JDK1.2 version.

Specified by:
update in interface TransactionalObjectIF
Overrides:
update in class DomainObject
Parameters:
get -
data -
fields -