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
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 |
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
TestCompany
public TestCompany()
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
-