public OrderEntryService() {
    Customer customer = dao.addCustomer("David Hurng");
    Customer customer2 = dao.addCustomer("Michelle Cady");
    Product product = dao.addProduct("apples", 12);
    Product product2 = dao.addProduct("bananas", 6.25);

    Cart cart = dao.addOrder(customer, product);
  }
 public void updatePrice(int id, double price) {
   dao.updatePrice(id, price);
 }
 public Product searchProductID(int id) {
   return dao.searchProductID(id);
 }
 public Cart getSpecOrder(int id) {
   return dao.getSpecOrder(id);
 }
 public void addToCart(Cart cart, String prodName) {
   dao.addToCart(cart, prodName);
 }
 public Cart searchCart(int id) {
   return dao.searchCart(id);
 }
 public Cart addOrder(Customer customer, Product product) {
   return dao.addOrder(customer, product);
 }
 public Cart getCart(int id) {
   Cart cart = dao.getSpecOrder(id);
   return cart;
 }
 public Customer searchCustomer(String name) {
   return dao.searchCustomer(name);
 }
Esempio n. 10
0
 public Customer searchCustomerID(int customerID) {
   return dao.searchCustomerID(customerID);
 }
Esempio n. 11
0
 public Product addProduct(String name, double price) {
   return dao.addProduct(name, price);
 }
Esempio n. 12
0
 public Customer addCustomer(String name) {
   return dao.addCustomer(name);
 }
Esempio n. 13
0
 public void updateOrder(Cart cart) {
   dao.updateCart(cart);
 }
Esempio n. 14
0
 public void submitOrder(Cart cart) {
   dao.submitOrder(cart);
 }
Esempio n. 15
0
 public void updateTotal(Cart cart) {
   dao.updateTotal(cart);
 }
Esempio n. 16
0
 public Product searchProduct(String name) {
   return dao.searchProduct(name);
 }
Esempio n. 17
0
 public void deleteCart(int id) {
   dao.deleteCart(id);
 }
Esempio n. 18
0
 public List<Cart> getCart() {
   List<Cart> orders = dao.getOrders();
   return orders;
 }