eShopper
Class List

java.lang.Object
  extended byeShopper.List

public class List
extends java.lang.Object

This is a recipe that is in the database but does not need the information associated with being in a shopping list.

Author:
Nathan

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

List

public List(int ID,
            java.lang.String name)
Explicit value constructor for a recipe.

Parameters:
ID - of the recipe
name - of the recipe
Method Detail

getID

public int getID()
Accessor method for the ID of the recipe.

Returns:
The recipe's ID.

getName

public java.lang.String getName()

toString

public java.lang.String toString()
Override of the toString function inherited from Object.

Returns:
name of the recipe

rename

public void rename(java.lang.String newName,
                   eShopperDB db)
Renames this list in the database


delete

public void delete(eShopperDB db)
Deletes this list from the database