|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--org.gjt.tw.dbobjects.StorableObject
|
+--org.gjt.tw.dbobjects.test.generic.Customer
Test class containing data about a customer. ID is the primary key of this object. The id is genericly generated.
| Fields inherited from class org.gjt.tw.dbobjects.StorableObject |
isStoredInDatabase |
| Constructor Summary | |
Customer()
TestObject constructor comment. |
|
| Method Summary | |
Address[] |
getAddressList()
This method was created in VisualAge. |
static Customer |
getByName(java.lang.String name)
Searches for a customer in the database given the name of a customer. |
java.sql.Date |
getCreated()
This method was created in VisualAge. |
Address |
getCurrentAddress()
This method was created in VisualAge. |
long |
getCurrentAddressId()
This method was created in VisualAge. |
long |
getId()
This method was created in VisualAge. |
protected ObjectMapping |
getMapping()
Returns object mapping. |
java.lang.String |
getName()
Returns name of customer. |
java.lang.String |
getPassword()
Returns password of customer. |
static void |
init()
Initialization of object mapping. |
static void |
printAll()
BDM |
void |
setCreated(java.sql.Date newValue)
This method was created in VisualAge. |
void |
setCurrentAddress(Address address)
This method was created in VisualAge. |
void |
setCurrentAddressId(long newValue)
This method was created in VisualAge. |
void |
setId(long newValue)
This method was created in VisualAge. |
void |
setName(java.lang.String newValue)
Sets name of customer. |
void |
setPassword(java.lang.String newValue)
Sets password of customer. |
| Methods inherited from class org.gjt.tw.dbobjects.StorableObject |
delete, getDomTree, print, store, toXML |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Customer()
| Method Detail |
public void setCreated(java.sql.Date newValue)
newValue - java.sql.Datepublic void setCurrentAddress(Address address)
address - databasemanagement.test.Addresspublic void setCurrentAddressId(long newValue)
newValue - longpublic void setId(long newValue)
newValue - longpublic void setName(java.lang.String newValue)
newValue - java.lang.Stringpublic void setPassword(java.lang.String newValue)
newValue - java.lang.String
public Address[] getAddressList()
throws DatabaseException,
ObjectException
DatabaseException - Description of ExceptionObjectException - Description of Exceptionpublic java.sql.Date getCreated()
public Address getCurrentAddress()
throws DatabaseException,
ObjectException
DatabaseException - Description of ExceptionObjectException - Description of Exceptionpublic long getCurrentAddressId()
public long getId()
public java.lang.String getName()
public java.lang.String getPassword()
protected ObjectMapping getMapping()
getMapping in class StorableObject
public static Customer getByName(java.lang.String name)
throws DatabaseException,
ObjectException
name - name of a customerDatabaseException - Description of ExceptionObjectException - Description of Exception
public static void init()
throws ObjectException,
IncompleteDefinitionException
ObjectException - Description of ExceptionIncompleteDefinitionException - Description of Exception
public static void printAll()
throws DatabaseException,
ObjectException
DatabaseException - Description of ExceptionObjectException - Description of Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||