@Override
  public ArrayList<CartBean> getCartDetail() {

    String query = "Select * From cartdata";

    return cartdao.select(query);
  }
 @Override
 public void saveCartData(CartBean cartbean) {
   // TODO Auto-generated method stub
   String query =
       "Insert into cartdata(product,price,quantity,sum) values("
           + "'"
           + cartbean.getProduct()
           + "','"
           + cartbean.getPrice()
           + "','"
           + cartbean.getQuantity()
           + "','"
           + cartbean.getSum()
           + "')";
   cartdao.update(query);
 }
 @Override
 public void deleteCartData(CartBean cartbean) {
   // TODO Auto-generated method stub
   String query = "Delete * from cartdata";
   cartdao.update(query);
 }