Examples of CustomerDAO


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

    return customer;
  }

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

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

    return order;
  }

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

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

    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

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

      throws DAOException {
    if (logger.isDebugEnabled()) {
      logger.debug("HoldingDataModel.getHoldingForUpdate()\nOrder ID :" + orderId);
    }
    DAOFactory fac = MSSQLDAOFactory.getInstance();
    CustomerDAO customerDAO = fac.getCustomerDAO();
    return customerDAO.getHoldingForUpdate(orderId);
  }
View Full Code Here

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

      throws DAOException {
    if (logger.isDebugEnabled()) {
      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 CustomerDAO getCustomerDAO() throws DAOException {
    logger.debug("MSSQLDAOFactory.getOrderDAO");
    try {
      CustomerDAO customerDAO = new MSSQLCustomerDAO(getConnection());
      return customerDAO;
    } catch (SQLException e) {
      logger.debug("", e);
      throw new DAOException("Exception was thrown when instantiating a MSSQLCustomerDAO", e);
    }
View Full Code Here

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

  }

  public CustomerDAO getCustomerDAO() throws DAOException {
    logger.debug("MySQLDAOFactory.getCustomerDAO");
    try {
      CustomerDAO customerDAO = new MySQLCustomerDAO(getConnection());
      return customerDAO;
    } catch (SQLException e) {
      logger.debug("", e);
      throw new DAOException("Exception was thrown when instantiating a MySQLCustomerDAO",e);
    }
View Full Code Here

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

  public TraderServiceManager() {
    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

  }

  public CustomerDAO getCustomerDAO() throws DAOException {
    logger.debug("MySQLDAOFactory.getCustomerDAO");
    try {
      CustomerDAO customerDAO = new MySQLCustomerDAO(getConnection());
      return customerDAO;
    } catch (SQLException e) {
      logger.debug("", e);
      throw new DAOException("Exception was thrown when instantiating a MySQLCustomerDAO",e);
    }
View Full Code Here

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

    if (logger.isDebugEnabled()) {
      logger.debug("HoldingDataModel.getHoldingForUpdate()\nOrder ID :"
          + orderId);
    }
    DAOFactory fac = MSSQLDAOFactory.getInstance();
    CustomerDAO customerDAO = fac.getCustomerDAO();
    return customerDAO.getHoldingForUpdate(orderId);
  }
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.