com.objectwave.persist.examples
Class TestPerson

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

public class TestPerson
extends DomainObject

Version:
$Id: TestPerson.java,v 2.0 2001/06/11 16:00:04 dave_hoag Exp $
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 _annualIncome
           
static java.lang.reflect.Field _entityType
           
static java.lang.reflect.Field _fax
           
static java.lang.reflect.Field _name
           
static java.lang.reflect.Field _phone
           
static java.lang.reflect.Field _title
           
 double annualIncome
           
static java.util.Vector classDescriptor
           
 int entityType
           
 java.lang.String fax
           
 java.lang.String name
           
 java.lang.String phone
           
 java.lang.String title
           
 
Fields inherited from class com.objectwave.persist.examples.DomainObject
adapt, editor, objectIdentifier, tableMap
 
Constructor Summary
TestPerson()
           
 
Method Summary
 double getAnnualIncome()
           
 java.lang.String getFax()
           
 java.lang.String getName()
           
 java.lang.String getPhone()
           
 java.lang.String getTitle()
           
 void initDescriptor()
          Describe how this class relates to the relational database.
 ObjectEditingView initializeObjectEditor()
          Needed to define table name and the description of this class.
static void main(java.lang.String[] args)
           
 void setAnnualIncome(double aValue)
           
 void setFax(java.lang.String aValue)
           
 void setName(java.lang.String aValue)
           
 void setPhone(java.lang.String aValue)
           
 void setTitle(java.lang.String aValue)
           
 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

entityType

public transient int entityType

name

public java.lang.String name

phone

public java.lang.String phone

fax

public java.lang.String fax

title

public java.lang.String title

annualIncome

public double annualIncome

classDescriptor

public static java.util.Vector classDescriptor

_entityType

public static java.lang.reflect.Field _entityType

_name

public static java.lang.reflect.Field _name

_phone

public static java.lang.reflect.Field _phone

_fax

public static java.lang.reflect.Field _fax

_title

public static java.lang.reflect.Field _title

_annualIncome

public static java.lang.reflect.Field _annualIncome
Constructor Detail

TestPerson

public TestPerson()
Method Detail

getAnnualIncome

public double getAnnualIncome()

getFax

public java.lang.String getFax()

getName

public java.lang.String getName()

getPhone

public java.lang.String getPhone()

getTitle

public java.lang.String getTitle()

initDescriptor

public void initDescriptor()
Describe how this class relates to the relational database.


initializeObjectEditor

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

Overrides:
initializeObjectEditor in class DomainObject
Returns:

setAnnualIncome

public void setAnnualIncome(double aValue)

setFax

public void setFax(java.lang.String aValue)

setName

public void setName(java.lang.String aValue)

setPhone

public void setPhone(java.lang.String aValue)

setTitle

public void setTitle(java.lang.String aValue)

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.

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

main

public static void main(java.lang.String[] args)