|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--de.ix.jspTutorial.model.Pizza
This class to represents a base pizza withou any ingredients.
| Field Summary | |
static java.lang.String |
vcid
version of the source |
| Fields inherited from interface de.ix.jspTutorial.database.I_DatabaseObject |
vcid |
| Constructor Summary | |
Pizza()
Constructor for an empty pizza. |
|
Pizza(long id,
java.lang.String name,
java.lang.String size,
double basePrice)
Constructor for a real base pizza |
|
| Method Summary | |
double |
getBasePrice()
Getter method for the attribute basePrice |
DatabaseGenericObject |
getGenericObject()
Method to create a generic object |
long |
getId()
Getter method for the attribute id |
java.lang.String |
getName()
Getter method for the attribute name |
java.lang.String |
getSize()
Getter method for the attribute size |
void |
setBasePrice(double newBasePrice)
Setter method for the attribute basePrice |
void |
setId(long newId)
Setter method for the attribute id |
void |
setName(java.lang.String newName)
Setter method for the attribute name |
void |
setSize(java.lang.String newSize)
Setter method for the attribute size |
java.lang.String |
toString()
Build a string out of the order 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 Pizza()
public Pizza(long id,
java.lang.String name,
java.lang.String size,
double basePrice)
id - unique id of the base pizzaname - name of the base pizzasize - size of the badse pizzabasePrice - price of the base pizza| Method Detail |
public DatabaseGenericObject getGenericObject()
DatabaseGenericModifier.create(I_DatabaseGenericObject,String)public void setName(java.lang.String newName)
namenewName - new value for the attribute namegetName()public java.lang.String getName()
namesetName(String)public void setBasePrice(double newBasePrice)
basePricenewbasePrice - new value for the attribute basePricegetBasePrice()public double getBasePrice()
basePricesetBasePrice(double)public void setId(long newId)
idnewId - new value for the attribute idgetId()public long getId()
idsetId(long)public void setSize(java.lang.String newSize)
sizenewSize - new value for the attribute sizegetSize()public java.lang.String getSize()
sizesetSize(String)public java.lang.String toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||