com.objectwave.persist.examples
Class TestCompany

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

public class TestCompany
extends DomainObject

Version:
$Id: TestCompany.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.util.Vector classDescriptor
           
 java.lang.String fax
           
 java.lang.String moodyRating
           
 java.lang.String name
           
 int numEmployees
           
 java.lang.String phone
           
 TestPerson primaryContact
           
 
Fields inherited from class com.objectwave.persist.examples.DomainObject
adapt, editor, objectIdentifier, tableMap
 
Constructor Summary
TestCompany()
           
 
Method Summary
 java.lang.String getFax()
           
 java.lang.String getMoodyRating()
           
 java.lang.String getName()
           
 int getNumEmployees()
           
 java.lang.String getPhone()
           
 TestPerson getPrimaryContact()
           
 void initDescriptor()
          Describe how this class relates to the relational database.
 ObjectEditingView initializeObjectEditor()
          Needed to define table name and the description of this class.
 void setFax(java.lang.String aValue)
           
 void setMoodyRating(java.lang.String aValue)
           
 void setName(java.lang.String aValue)
           
 void setNumEmployees(int aValue)
           
 void setPhone(java.lang.String aValue)
           
 void setPrimaryContact(TestPerson value)
           
 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

name

public java.lang.String name

phone

public java.lang.String phone

fax

public java.lang.String fax

moodyRating

public java.lang.String moodyRating

numEmployees

public int numEmployees

primaryContact

public TestPerson primaryContact

classDescriptor

public static java.util.Vector classDescriptor
Constructor Detail

TestCompany

public TestCompany()
Method Detail

getFax

public java.lang.String getFax()

getMoodyRating

public java.lang.String getMoodyRating()

getName

public java.lang.String getName()

getNumEmployees

public int getNumEmployees()

getPhone

public java.lang.String getPhone()

getPrimaryContact

public TestPerson getPrimaryContact()
Returns:
com.objectwave.persist.TestPerson

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:

setFax

public void setFax(java.lang.String aValue)

setMoodyRating

public void setMoodyRating(java.lang.String aValue)

setName

public void setName(java.lang.String aValue)

setNumEmployees

public void setNumEmployees(int aValue)

setPhone

public void setPhone(java.lang.String aValue)

setPrimaryContact

public void setPrimaryContact(TestPerson value)
Parameters:
value - com.objectwave.persist.TestPerson

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 -