Package org.apache.stonehenge.stocktrader.dal

Examples of org.apache.stonehenge.stocktrader.dal.CustomerDAO


    factory = DAOFactory.getFacotry();
  }

  public CustomAccountBean login(String userId, String password)
      throws DAOException {
    CustomerDAO customerDAO = factory.getCustomerDAO();
    return customerDAO.login(userId, password);
  }
View Full Code Here


    CustomerDAO customerDAO = factory.getCustomerDAO();
    return customerDAO.login(userId, password);
  }

  public void logout(String userId) throws DAOException {
    CustomerDAO customerDAO = factory.getCustomerDAO();
    customerDAO.logoutUser(userId);
  }
View Full Code Here

    CustomerDAO customerDAO = factory.getCustomerDAO();
    customerDAO.logoutUser(userId);
  }

  public CustomAccountBean getAccountData(String userId) throws DAOException {
    CustomerDAO customerDAO = factory.getCustomerDAO();
    return customerDAO.getCustomerByUserId(userId);
  }
View Full Code Here

    return customerDAO.getCustomerByUserId(userId);
  }

  public CustomAccountProfileBean getAccountProfileData(String userId)
      throws DAOException {
    CustomerDAO customerDAO = factory.getCustomerDAO();
    return customerDAO.getAccountProfileData(userId);
  }
View Full Code Here

    CustomerDAO customerDAO = factory.getCustomerDAO();
    return customerDAO.getAccountProfileData(userId);
  }

  public List<CustomOrderBean> getOrders(String userId) throws DAOException {
    CustomerDAO customerDAO = factory.getCustomerDAO();
    return customerDAO.getOrders(userId, false,
        StockTraderUtility.MAX_QUERY_TOP_ORDERS,
        StockTraderUtility.MAX_QUERY_ORDERS);
  }
View Full Code Here

        StockTraderUtility.MAX_QUERY_ORDERS);
  }

  public List<CustomOrderBean> getTopOrders(String userId)
      throws DAOException {
    CustomerDAO customerDAO = factory.getCustomerDAO();
    return customerDAO.getOrders(userId, true,
        StockTraderUtility.MAX_QUERY_TOP_ORDERS,
        StockTraderUtility.MAX_QUERY_ORDERS);
  }
View Full Code Here

        StockTraderUtility.MAX_QUERY_ORDERS);
  }

  public List<CustomOrderBean> getClosedOrders(String userId)
      throws DAOException {
    CustomerDAO customerDAO = factory.getCustomerDAO();
    return customerDAO.getClosedOrders(userId);
  }
View Full Code Here

//    return customer;
//  }

  public CustomAccountProfileBean updateAccountProfile(
      CustomAccountProfileBean customAccountProfile) throws DAOException {
    CustomerDAO customerDAO = factory.getCustomerDAO();
    return customerDAO.update(customAccountProfile);
  }
View Full Code Here

    return order;
  }

  public CustomHoldingBean getHolding(String userID, int holdingID)
      throws DAOException {
    CustomerDAO customerDAO = factory.getCustomerDAO();
    return customerDAO.getHolding(userID, holdingID);
  }
View Full Code Here

    return customerDAO.getHolding(userID, holdingID);
  }

  public List<CustomHoldingBean> getHoldings(String userID)
      throws DAOException {
    CustomerDAO customerDAO = factory.getCustomerDAO();
    return customerDAO.getHoldings(userID);
  }
View Full Code Here

TOP

Related Classes of org.apache.stonehenge.stocktrader.dal.CustomerDAO

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.