|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object eShopper.List
This is a recipe that is in the database but does not need the information associated with being in a shopping list.
Constructor Summary | |
List(int ID,
java.lang.String name)
Explicit value constructor for a recipe. |
Method Summary | |
void |
delete(eShopperDB db)
Deletes this list from the database |
int |
getID()
Accessor method for the ID of the recipe. |
java.lang.String |
getName()
|
void |
rename(java.lang.String newName,
eShopperDB db)
Renames this list in the database |
java.lang.String |
toString()
Override of the toString function inherited from Object. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public List(int ID, java.lang.String name)
ID
- of the recipename
- of the recipeMethod Detail |
public int getID()
public java.lang.String getName()
public java.lang.String toString()
public void rename(java.lang.String newName, eShopperDB db)
public void delete(eShopperDB db)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |