Examples of CustomerDAO


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

      logger
          .debug("OrderDAO.updateAccountBalance(int,BigDecimal)\nAccount ID :"
              + accountId + "\nTotal :" + total);
    }
    DAOFactory fac = MSSQLDAOFactory.getInstance();
    CustomerDAO customerDAO = fac.getCustomerDAO();
    customerDAO.updateAccountBalance(accountId, total);
  }
View Full Code Here

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

    public boolean validate(PasswordValidationCallback.Request request) throws
            PasswordValidationCallback.PasswordValidationException {
        PasswordValidationCallback.PlainTextPasswordRequest plainTextRequest =
                (PasswordValidationCallback.PlainTextPasswordRequest) request;
        try {
            CustomerDAO user = DAOFactory.getFacotry().getCustomerDAO();
            CustomAccountProfileBean profileBean = user.getAccountProfileData(plainTextRequest.getUsername());
            if (profileBean != null && profileBean.getPassword().equals(plainTextRequest.getPassword())) {
                return true;
            }
        } catch (DAOException e) {
            e.printStackTrace();
View Full Code Here

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

    public boolean validate(PasswordValidationCallback.Request request) throws
            PasswordValidationCallback.PasswordValidationException {
        PasswordValidationCallback.PlainTextPasswordRequest plainTextRequest =
                (PasswordValidationCallback.PlainTextPasswordRequest) request;
        try {
            CustomerDAO user = DAOFactory.getFacotry().getCustomerDAO();
            CustomAccountProfileBean profileBean = user.getAccountProfileData(plainTextRequest.getUsername());
            if (profileBean != null && profileBean.getPassword().equals(plainTextRequest.getPassword())) {
                return true;
            }
        } catch (DAOException e) {
            e.printStackTrace();
View Full Code Here

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

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

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

    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

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

    return customerDAO.getCustomerByUserId(userId);
  }

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

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

    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

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

        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

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

        StockTraderUtility.MAX_QUERY_ORDERS);
  }

  public List<CustomOrderBean> getClosedOrders(String userId)
      throws DAOException {
    CustomerDAO customerDAO = factory.getCustomerDAO();
    return customerDAO.getClosedOrders(userId);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.