Package org.apache.stonehenge.stocktrader.dal

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


  public CustomQuoteBean getQuoteForUpdate(String symbol) throws DAOException {
    if (logger.isDebugEnabled()) {
      logger.debug("OrderDAO.getQuoteForUpdate()\nSymbol :" + symbol);
    }

    DAOFactory fac = MSSQLDAOFactory.getInstance();
    MarketSummaryDAO marketSummaryDAO = fac.getMarketSummaryDAO();
    return marketSummaryDAO.getQuoteForUpdate(symbol);
  }
View Full Code Here


  public CustomHoldingBean getHoldingForUpdate(int orderId)
      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

  public void updateAccountBalance(int accountId, BigDecimal total)
      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

  public void updateStockPriceVolume(double quantity, CustomQuoteBean quote)
      throws DAOException {
    if (logger.isDebugEnabled()) {
      logger.debug("OrderDAO.updateStockPriceVolume(double,QuatedataModle)\nQuantity :" + quantity + "\nQuote\nSymbol" + quote.getSymbol());
    }
    DAOFactory fac = MSSQLDAOFactory.getInstance();
    MarketSummaryDAO marketSummaryDAO = fac.getMarketSummaryDAO();
    marketSummaryDAO.updateStockPriceVolume(quantity, quote);
  }
View Full Code Here

              + "\nCompletionDate :"
              + order.getCompletionDate());
    }

    try {
      DAOFactory factory = DAOFactory.getFacotry();

      orderDAO = factory.getOrderDAO();
      orderDAO.beginTransaction();

      BigDecimal total = null;
      int holdingId = -1;
View Full Code Here

  public CustomQuoteBean getQuoteForUpdate(String symbol) throws DAOException {
    if (logger.isDebugEnabled()) {
      logger.debug("OrderDAO.getQuoteForUpdate()\nSymbol :" + symbol);
    }

    DAOFactory fac = MSSQLDAOFactory.getInstance();
    MarketSummaryDAO marketSummaryDAO = fac.getMarketSummaryDAO();
    return marketSummaryDAO.getQuoteForUpdate(symbol);
  }
View Full Code Here

      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

    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

    if (logger.isDebugEnabled()) {
      logger
          .debug("OrderDAO.updateStockPriceVolume(double,QuatedataModle)\nQuantity :"
              + quantity + "\nQuote\nSymbol" + quote.getSymbol());
    }
    DAOFactory fac = MSSQLDAOFactory.getInstance();
    MarketSummaryDAO marketSummaryDAO = fac.getMarketSummaryDAO();
    marketSummaryDAO.updateStockPriceVolume(quantity, quote);
  }
View Full Code Here

              + "\nCompletionDate :"
              + order.getCompletionDate());
    }

    try {
      DAOFactory factory = DAOFactory
          .getFacotry();

      orderDAO = factory.getOrderDAO();
      orderDAO.beginTransaction();

      BigDecimal total = null;
      int holdingId = -1;
View Full Code Here

TOP

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

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.