|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.ix.jspTutorial.model.Customer
Definition of a pizza online shop customer
Field Summary | |
static java.lang.String |
vcid
version of the source |
Fields inherited from interface de.ix.jspTutorial.database.I_DatabaseObject |
vcid |
Constructor Summary | |
Customer()
Constructor sets the id to -1 an all strings to the empty string. |
|
Customer(long id,
java.lang.String firstname,
java.lang.String lastname,
java.lang.String address1,
java.lang.String address2,
java.lang.String zip,
java.lang.String town,
java.lang.String eMail)
Constructor to set all attributes of the customer. |
Method Summary | |
java.lang.String |
getAddress1()
Getter method for the attribute address1 |
java.lang.String |
getAddress2()
Getter method for the attribute address2 |
java.lang.String |
getEMail()
Getter method for the attribute eMail |
java.lang.String |
getFirstname()
Getter method for the attribute firstname |
DatabaseGenericObject |
getGenericObject()
Method to create a generic object |
long |
getId()
Getter method for the attribute id |
java.lang.String |
getLastname()
Getter method for the attribute lastname |
java.lang.String |
getTown()
Getter method for the attribute town |
java.lang.String |
getZip()
Getter method for the attribute zip |
void |
set(Customer newCustomerValue)
Set all attributes to the values of a second customer object. |
void |
setAddress1(java.lang.String newAddress1)
Setter method for the attribute address1 |
void |
setAddress2(java.lang.String newAddress2)
Setter method for the attribute address2 |
void |
setEmail(java.lang.String newEMail)
|
void |
setEMail(java.lang.String newEMail)
Setter method for the attribute eMail |
void |
setFirstname(java.lang.String newFirstname)
Setter method for the attribute firstname |
void |
setId(long newId)
Setter method for the attribute id |
void |
setLastname(java.lang.String newLastname)
Setter method for the attribute lastname |
void |
setTown(java.lang.String newTown)
Setter method for the attribute town |
void |
setZip(java.lang.String newZip)
Setter method for the attribute zip |
java.lang.String |
toString()
Build a string out of the customer attributes. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static java.lang.String vcid
Constructor Detail |
public Customer()
public Customer(long id, java.lang.String firstname, java.lang.String lastname, java.lang.String address1, java.lang.String address2, java.lang.String zip, java.lang.String town, java.lang.String eMail)
firstname
- Firstnamelastname
- Lastnameaddress1
- First row of the addressaddress2
- Second row of the addresszip
- zip codetown
- towneMail
- current e-mail addressid
- unique idMethod Detail |
public void set(Customer newCustomerValue)
newCustomerValue
- new values for the customerpublic DatabaseGenericObject getGenericObject()
DatabaseGenericModifier.create(I_DatabaseGenericObject,String)
public void setFirstname(java.lang.String newFirstname)
firstname
newFirstname
- new value for the attribute firstnamegetFirstname()
public java.lang.String getFirstname()
firstname
setFirstname(String)
public void setLastname(java.lang.String newLastname)
lastname
newLastname
- new value for the attribute lastnamegetLastname()
public java.lang.String getLastname()
lastname
setLastname(String)
public void setAddress1(java.lang.String newAddress1)
address1
newFirstname
- new value for the attribute address1getAddress1()
public java.lang.String getAddress1()
address1
setAddress1(String)
public void setAddress2(java.lang.String newAddress2)
address2
newAddress
- new value for the attribute address2getAddress2()
public java.lang.String getAddress2()
address2
setAddress2(String)
public void setZip(java.lang.String newZip)
zip
newZip
- new value for the attribute zipgetZip()
public java.lang.String getZip()
zip
setZip(String)
public void setTown(java.lang.String newTown)
town
newTown
- new value for the attribute towngetTown()
public java.lang.String getTown()
town
setTown(String)
public void setEmail(java.lang.String newEMail)
public void setEMail(java.lang.String newEMail)
eMail
newEMail
- new value for the attribute eMailgetEMail()
public java.lang.String getEMail()
eMail
setEMail(String)
public void setId(long newId)
id
newId
- new value for the attribute idgetId()
public long getId()
id
setId(long)
public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |