Examples of create()


Examples of com.centraview.account.helper.AccountHelperLocalHome.create()

  {
    HashMap taxMartix = new HashMap();
    try {
      InitialContext ic = CVUtility.getInitialContext();
      AccountHelperLocalHome home = (AccountHelperLocalHome) ic.lookup("local/AccountHelper");
      AccountHelperLocal remote = home.create();
      remote.setDataSource(this.dataSource);
      taxMartix = remote.getTaxMartix();
    } catch (Exception e) {
      logger.error("[getTaxMartix]: Exception", e);
    }

Examples of com.centraview.account.inventory.InventoryLocalHome.create()

  public void deleteInventory(int individualID, int itemId) throws InventoryException,
      AuthorizationFailedException, NamingException, CreateException
  {
    InitialContext ic = CVUtility.getInitialContext();
    InventoryLocalHome home = (InventoryLocalHome) ic.lookup("local/Inventory");
    InventoryLocal invoice = home.create();
    invoice.setDataSource(this.dataSource);
    invoice.deleteInventory(individualID, itemId);
  }

  public void deleteItem(int individualID, int itemId) throws ItemException, NamingException,

Examples of com.centraview.account.invoice.InvoiceLocalHome.create()

      throw new AuthorizationFailedException("Invoice- createInvoice");
    InvoiceVO returnVO = null;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      InvoiceLocalHome home = (InvoiceLocalHome) ic.lookup("local/Invoice");
      InvoiceLocal remote = home.create(invoiceDetail, userID, this.dataSource);
      remote.setDataSource(this.dataSource);
      returnVO = remote.getInvoiceVO();
    } catch (Exception e) {
      logger.error("[createInvoice]: Exception", e);
    }

Examples of com.centraview.account.item.ItemLocalHome.create()

  public void deleteItem(int individualID, int itemId) throws ItemException, NamingException,
      CreateException
  {
    InitialContext ic = CVUtility.getInitialContext();
    ItemLocalHome home = (ItemLocalHome) ic.lookup("local/Item");
    ItemLocal invoice = home.create();
    invoice.setDataSource(this.dataSource);
    invoice.deleteItem(individualID, itemId);
  }

  public void deleteVendor(int entityID, int userID) throws NamingException, CreateException

Examples of com.centraview.account.order.OrderLocalHome.create()

    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);
    }

Examples of com.centraview.account.payment.PaymentLocalHome.create()

    if (!CVUtility.isModuleVisible("Payment", userID, this.dataSource))
      throw new AuthorizationFailedException("Payment- createPayment");
    try {
      InitialContext ic = CVUtility.getInitialContext();
      PaymentLocalHome home = (PaymentLocalHome) ic.lookup("local/Payment");
      PaymentLocal payment = home.create(paymentVO, userID, this.dataSource);
      payment.setDataSource(this.dataSource);
      paymentVO = payment.getPaymentVO();
    } catch (Exception e) {
      logger.error("[createPayment]: Exception", e);
    }

Examples of com.centraview.account.purchaseorder.PurchaseOrderLocalHome.create()

      throw new AuthorizationFailedException("PurchaseOrder- createPurchaseOrder");
    PurchaseOrderVO returnVO = null;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      PurchaseOrderLocalHome home = (PurchaseOrderLocalHome) ic.lookup("local/PurchaseOrder");
      PurchaseOrderLocal remote = home.create(poDetail, userID, this.dataSource);
      remote.setDataSource(this.dataSource);
      returnVO = remote.getPurchaseOrderVO();
    } catch (Exception e) {
      logger.error("[createPurchaseOrder]: Exception", e);
    }

Examples of com.centraview.activity.activityfacade.ActivityFacadeHome.create()

      //ejb call to update header 
      remote.updateHeader(userId,messageId,headerName,headerValue);
      remote = null;
      //ejb call to update activity
      ActivityFacadeHome afh = (ActivityFacadeHome)CVUtility.getHomeObject("com.centraview.activity.activityfacade.ActivityFacadeHome","ActivityFacade");
      ActivityFacade af = afh.create();
      af.setDataSource(dataSource);
      af.updateStatus(activityId,individualId,headerValue);
    }
    catch(Exception e)
    {

Examples of com.centraview.activity.activitylist.ActivityListLocalHome.create()

  {
    Vector rv = null;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      ActivityListLocalHome home = (ActivityListLocalHome)ic.lookup("local/ActivityList");
      ActivityListLocal remote = home.create();
      remote.setDataSource(dataSource);
      rv = remote.getAllResources();
    } catch (Exception e) {
      System.out.println("[Exception][ActivityFacadeEJB.getAllResources] Exception Thrown: " + e);
      e.printStackTrace();

Examples of com.centraview.activity.helper.ActivityHelperHome.create()

            || typeOfActivity.equals(ConstantKeys.NEXTACTION)
            || typeOfActivity.equals(ConstantKeys.TODO) || typeOfActivity.equals(ConstantKeys.TASK))) {
          ActivityHelperHome home = (ActivityHelperHome)CVUtility.getHomeObject(
              "com.centraview.activity.helper.ActivityHelperHome", "ActivityHelper");
          try {
            ActivityHelper remote = home.create();
            remote.setDataSource(dataSource);
            String findActivityId = request.getParameter("rowId");
            typeOfActivity = remote.getTypeOfActivity(Integer.parseInt(findActivityId))
                .toUpperCase();
          } catch (Exception e) {
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.