|
|||||||||
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.mysql.CustomerAddress
This class represents a n-m relation between customers and addresses. It doesn't have any attributes of its own right now, but could easily be enhanced.
Fields inherited from class org.gjt.tw.dbobjects.StorableObject |
isStoredInDatabase |
Constructor Summary | |
CustomerAddress()
CustomerAddress constructor comment. |
|
CustomerAddress(Customer customer,
Address address)
CustomerAddress constructor comment. |
Method Summary | |
long |
getAddressId()
This method was created in VisualAge. |
static CustomerAddress[] |
getByCustomer(Customer customer)
This method was created in VisualAge. |
java.lang.String |
getCustomerName()
This method was created in VisualAge. |
protected ObjectMapping |
getMapping()
Returns object mapping. |
static void |
init()
Initialization of object mapping. |
void |
setAddressId(long newValue)
This method was created in VisualAge. |
void |
setCustomerName(java.lang.String newValue)
This method was created in VisualAge. |
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 CustomerAddress()
public CustomerAddress(Customer customer, Address address)
customer
- Description of Parameteraddress
- Description of ParameterMethod Detail |
public void setAddressId(long newValue)
newValue
- longpublic void setCustomerName(java.lang.String newValue)
newValue
- java.lang.Stringpublic long getAddressId()
public java.lang.String getCustomerName()
protected ObjectMapping getMapping()
getMapping
in class StorableObject
public static CustomerAddress[] getByCustomer(Customer customer) throws DatabaseException, ObjectException
customer
- dbobjects.test.CustomerDatabaseException
- Description of ExceptionObjectException
- Description of Exceptionpublic 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 |