|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectDatabaseCommunication.CustomerManager
| Field Summary | |
private java.sql.Connection |
con
|
| Constructor Summary | |
CustomerManager()
This is the constructor for CustomerManager.java |
|
| Method Summary | |
private boolean |
insertCoffeePreference(Customer_Data customer)
This method is being used for inserting the coffee preference that a customer has. |
boolean |
insertCustomer(Customer_Data customer)
This method is being used for inserting new Customers into the application database. |
private boolean |
readCoffeePreference(Customer_Data customer)
This method is being used for reading particular coffeepreference details given a customer. |
boolean |
readCustomer(Customer_Data customer)
This method is being used for reading particular customer details given a Customer_Data with a matching username. |
boolean |
updateCoffeePreference(Customer_Data customer)
This method is being used for updating the coffee preference for a particular customer. |
boolean |
updateCustomer(Customer_Data customer)
This method is being used for updating the given customer's account balances. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private java.sql.Connection con
| Constructor Detail |
public CustomerManager()
| Method Detail |
private boolean insertCoffeePreference(Customer_Data customer)
customer - The customer whose coffee preference is to added to the
application database.
public boolean insertCustomer(Customer_Data customer)
customer - The customer that is to added to the application database.
private boolean readCoffeePreference(Customer_Data customer)
customer - The customer whose coffee preference is to be retrieved.
public boolean readCustomer(Customer_Data customer)
customer - The customer whose details are to be retrieved from the
application database.
public boolean updateCoffeePreference(Customer_Data customer)
customer - The customer whose coffee preference is to be updated.
public boolean updateCustomer(Customer_Data customer)
customer - The customer whose account details are to be updated.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||