com.objectwave.persist.examples
Class ExampleEmployee

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

public class ExampleEmployee
extends DomainObject

An example of a persistent business object that extends from DomainObject.

Version:
$Id: ExampleEmployee.java,v 2.1 2001/07/05 13:23:40 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 _boss
           
static java.lang.reflect.Field _company
           
static java.lang.reflect.Field _emailAddress
           
static java.lang.reflect.Field _person
           
static java.lang.reflect.Field _title
           
static java.lang.reflect.Field _workers
           
 ExampleEmployee boss
           
static java.util.Vector classDescriptor
           
 ExampleCompany company
           
 java.lang.String emailAddress
           
 ExamplePerson person
           
 java.lang.String title
           
 java.util.Vector workers
           
 
Fields inherited from class com.objectwave.persist.examples.DomainObject
adapt, editor, objectIdentifier, tableMap
 
Constructor Summary
ExampleEmployee()
           
 
Method Summary
 ExampleEmployee getBoss()
          Gets the Boss attribute of the ExampleEmployee object
 ExampleCompany getCompany()
          Gets the Company attribute of the ExampleEmployee object
 java.lang.String getEmailAddress()
          Generated accessors that route get and set methods through our ObjectEditor.
 ExamplePerson getPerson()
          Gets the Person attribute of the ExampleEmployee object
 java.lang.String getTitle()
          Generated accessors that route get and set methods through our ObjectEditor.
 java.util.Vector getWorkers()
          Gets the Workers attribute of the ExampleEmployee object
 void initDescriptor()
          Describe how each attribute relates to the database.
 ObjectEditingView initializeObjectEditor()
          Needed to define table name and the description of this class.
static void main(java.lang.String[] args)
           
 void setBoss(ExampleEmployee aValue)
          Sets the Boss attribute of the ExampleEmployee object
 void setCompany(ExampleCompany aValue)
          Sets the Company attribute of the ExampleEmployee object
 void setEmailAddress(java.lang.String aValue)
          Generated accessors that route get and set methods through our ObjectEditor.
 void setPerson(ExamplePerson aValue)
          Sets the Person attribute of the ExampleEmployee object
 void setTitle(java.lang.String aValue)
          Generated accessors that route get and set methods through our ObjectEditor.
 void setWorkers(java.util.Vector aValue)
          Sets the Workers attribute of the ExampleEmployee object
 
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, update, 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

_title

public static java.lang.reflect.Field _title

_person

public static java.lang.reflect.Field _person

_emailAddress

public static java.lang.reflect.Field _emailAddress

_boss

public static java.lang.reflect.Field _boss

_workers

public static java.lang.reflect.Field _workers

_company

public static java.lang.reflect.Field _company

title

public java.lang.String title

emailAddress

public java.lang.String emailAddress

person

public ExamplePerson person

boss

public ExampleEmployee boss

workers

public java.util.Vector workers

company

public ExampleCompany company
Constructor Detail

ExampleEmployee

public ExampleEmployee()
Method Detail

main

public static void main(java.lang.String[] args)
Parameters:
args - The command line arguments

setEmailAddress

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

Parameters:
aValue - The new EmailAddress value

setPerson

public void setPerson(ExamplePerson aValue)
Sets the Person attribute of the ExampleEmployee object

Parameters:
aValue - The new Person value

setBoss

public void setBoss(ExampleEmployee aValue)
Sets the Boss attribute of the ExampleEmployee object

Parameters:
aValue - The new Boss value

setCompany

public void setCompany(ExampleCompany aValue)
Sets the Company attribute of the ExampleEmployee object

Parameters:
aValue - The new Company value

setWorkers

public void setWorkers(java.util.Vector aValue)
Sets the Workers attribute of the ExampleEmployee object

Parameters:
aValue - The new Workers value

setTitle

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

Parameters:
aValue - The new Title value

getEmailAddress

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

Returns:
The EmailAddress value

getPerson

public ExamplePerson getPerson()
Gets the Person attribute of the ExampleEmployee object

Returns:
The Person value

getBoss

public ExampleEmployee getBoss()
Gets the Boss attribute of the ExampleEmployee object

Returns:
The Boss value

getCompany

public ExampleCompany getCompany()
Gets the Company attribute of the ExampleEmployee object

Returns:
The Company value

getWorkers

public java.util.Vector getWorkers()
Gets the Workers attribute of the ExampleEmployee object

Returns:
The Workers value

getTitle

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

Returns:
The Title 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: