Package org.apache.stonehenge.stocktrader.dal

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


    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

    CustomerDAO customerDAO = factory.getCustomerDAO();
    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

    CustomerDAO customerDAO = factory.getCustomerDAO();
    return customerDAO.getOrders(userId, false, StockTraderUtility.MAX_QUERY_TOP_ORDERS, 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

    CustomerDAO customerDAO = factory.getCustomerDAO();
    return customerDAO.getOrders(userId, true, StockTraderUtility.MAX_QUERY_TOP_ORDERS, StockTraderUtility.MAX_QUERY_ORDERS);
  }

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

  }

  public CustomAccountBean addNewRegisteredUser(String userId,
      String password, String fullName, String address, String email,
      String creditcard, BigDecimal openBalance) throws DAOException {
    CustomerDAO customerDAO = factory.getCustomerDAO();
    CustomAccountProfileBean customerProfile = new CustomAccountProfileBean(
        userId, password, fullName, address, email, creditcard);
    customerDAO.insertAccountProfile(customerProfile);
    CustomAccountBean customer = new CustomAccountBean(0, userId, Calendar
        .getInstance(), openBalance, 0, openBalance, Calendar
        .getInstance(), 0);
    return customer;
  }
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.