|
|||||||||
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 | |
private double |
basePrice
base price of the pizza |
private long |
id
unique id |
private java.lang.String |
name
pizzas name |
private java.lang.String |
size
pizzas size |
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 |
|
Field Detail |
public static java.lang.String vcid
private java.lang.String name
private double basePrice
private long id
private java.lang.String size
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 pizzaMethod Detail |
public DatabaseGenericObject getGenericObject()
DatabaseGenericModifier.create(I_DatabaseGenericObject,String)
public void setName(java.lang.String newName)
name
newName
- new value for the attribute namegetName()
public java.lang.String getName()
name
setName(String)
public void setBasePrice(double newBasePrice)
basePrice
newbasePrice
- new value for the attribute basePricegetBasePrice()
public double getBasePrice()
basePrice
setBasePrice(double)
public void setId(long newId)
id
newId
- new value for the attribute idgetId()
public long getId()
id
setId(long)
public void setSize(java.lang.String newSize)
size
newSize
- new value for the attribute sizegetSize()
public java.lang.String getSize()
size
setSize(String)
public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |