Package com.centraview.account.order

Examples of com.centraview.account.order.OrderLocal


    OrderForm returnForm = null;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      OrderLocalHome home = (OrderLocalHome) ic.lookup("local/Order");
      OrderLocal order = home.create(orderDetail, userID, this.dataSource);
      order.setDataSource(this.dataSource);
      returnForm = order.getOrderForm();
    } catch (Exception e) {
      logger.error("[createOrder]: Exception", e);
    }
    return returnForm;
  }// end of createOrder
View Full Code Here


    if (!CVUtility.isModuleVisible("OrderHistory", userID, this.dataSource))
      throw new AuthorizationFailedException("Order- deleteOrder");
    try {
      InitialContext ic = CVUtility.getInitialContext();
      OrderLocalHome home = (OrderLocalHome) ic.lookup("local/Order");
      OrderLocal order = home.findByPrimaryKey(new OrderPK(orderId, this.dataSource));
      order.setDataSource(this.dataSource);
      order.remove();
    } catch (RemoveException re) {
      throw new EJBException(re);
    } catch (FinderException fe) {
      throw new EJBException(fe);
    }
View Full Code Here

    OrderForm orderForm = null;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      OrderLocalHome home = (OrderLocalHome) ic.lookup("local/Order");
      OrderLocal order = home.findByPrimaryKey(new OrderPK(orderId, this.dataSource));
      order.setDataSource(this.dataSource);
      orderForm = order.getOrderForm();
    } catch (Exception e) {
      logger.error("[getOrderForm]: Exception", e);
    }
    return orderForm;
  }// end of getOrderForm
View Full Code Here

    if (!CVUtility.isModuleVisible("OrderHistory", userID, this.dataSource))
      throw new AuthorizationFailedException("Order- updateOrder");
    try {
      InitialContext ic = CVUtility.getInitialContext();
      OrderLocalHome home = (OrderLocalHome) ic.lookup("local/Order");
      OrderLocal order = home.findByPrimaryKey(new OrderPK(orderform.getOrderIdValue(),
          this.dataSource));
      order.setDataSource(this.dataSource);
      order.setOrderForm(orderform, userID);
    } catch (FinderException fe) {
      logger.error("[updateOrder]: Exception", fe);
    }

  }// end of deleteOrder
View Full Code Here

TOP

Related Classes of com.centraview.account.order.OrderLocal

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.