|
|||||||||
| 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.Address
Test class containing data of an address. 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 | |
Address()
Address constructor comment. |
|
| Method Summary | |
static Address |
getById(long addressId)
This method was created in VisualAge. |
java.lang.String |
getCity()
Returns name of the city. |
java.lang.String |
getCountry()
Returns name of the country. |
long |
getId()
Returns values of id. |
protected ObjectMapping |
getMapping()
Returns object mapping. |
java.lang.String |
getZip()
Returns zip code as string. |
static void |
init()
Initialization of object mapping. |
void |
setCity(java.lang.String newValue)
Sets name of the city. |
void |
setCountry(java.lang.String newValue)
Sets name of the city. |
void |
setId(long newValue)
Sets value of id. |
void |
setZip(java.lang.String newValue)
Sets the value of the zip code. |
| 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 Address()
| Method Detail |
public void setCity(java.lang.String newValue)
newValue - java.lang.Stringpublic void setCountry(java.lang.String newValue)
newValue - java.lang.Stringpublic void setId(long newValue)
newValue - longpublic void setZip(java.lang.String newValue)
newValue - java.lang.Stringpublic java.lang.String getCity()
public java.lang.String getCountry()
public long getId()
public java.lang.String getZip()
protected ObjectMapping getMapping()
getMapping in class StorableObject
public static Address getById(long addressId)
throws DatabaseException,
ObjectException
addressId - longDatabaseException - Description of ExceptionObjectException - Description of Exception
public static void init()
throws ObjectException,
IncompleteDefinitionException
ObjectException - Description of ExceptionIncompleteDefinitionException - Description of Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||