Examples of findByPrimaryKey()


Examples of com.calexo.openhra.interfaces.ejb.ConfigHome.findByPrimaryKey()

    ConfigHome cfgHome;
    String ret=null;
    try {
      //cfgHome = ConfigUtil.getHome(getInitialContextProps());
      cfgHome = ConfigUtil.getHome();
      ret =  ((Config)cfgHome.findByPrimaryKey(pId)).getConfigString();
    } catch (Exception e) {
      //e.printStackTrace();
      System.err.println("getConfig(" + pId + ") introuvable");
      return null;
    }
View Full Code Here

Examples of com.centraview.account.expense.ExpenseLocalHome.findByPrimaryKey()

    if (!CVUtility.isModuleVisible("Expense", userID, this.dataSource))
      throw new AuthorizationFailedException("Expense- deleteExpense");
    try {
      InitialContext ic = CVUtility.getInitialContext();
      ExpenseLocalHome home = (ExpenseLocalHome) ic.lookup("local/Expense");
      ExpenseLocal expense = home.findByPrimaryKey(new ExpensePK(expenseID, this.dataSource));
      expense.setDataSource(this.dataSource);
      expense.remove();
    } catch (RemoveException re) {
      throw new EJBException(re);
    } catch (FinderException fe) {
View Full Code Here

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

    if (!CVUtility.isModuleVisible("InvoiceHistory", userID, this.dataSource))
      throw new AuthorizationFailedException("Invoice- updateInvoice");
    try {
      InitialContext ic = CVUtility.getInitialContext();
      InvoiceLocalHome home = (InvoiceLocalHome) ic.lookup("local/Invoice");
      InvoiceLocal invoice = home.findByPrimaryKey(new InvoicePK(invoiceDetail.getInvoiceId(),
          this.dataSource));
      invoice.setDataSource(this.dataSource);
      invoice.setInvoiceVO(invoiceDetail, userID);
    } catch (Exception e) {
      logger.error("[updateInvoice]: Exception", e);
View Full Code Here

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

    if (!CVUtility.isModuleVisible("InvoiceHistory", userID, this.dataSource))
      throw new AuthorizationFailedException("Invoice- deleteInvoice");
    try {
      InitialContext ic = CVUtility.getInitialContext();
      InvoiceLocalHome home = (InvoiceLocalHome) ic.lookup("local/Invoice");
      InvoiceLocal invoice = home.findByPrimaryKey(new InvoicePK(invoiceId, this.dataSource));
      invoice.setDataSource(this.dataSource);
      invoice.remove();
    } catch (RemoveException re) {
      throw new EJBException(re);
    } catch (FinderException fe) {
View Full Code Here

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

      throw new AuthorizationFailedException("Invoice- getInvoiceVO");
    InvoiceVO invoiceVO = null;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      InvoiceLocalHome home = (InvoiceLocalHome) ic.lookup("local/Invoice");
      InvoiceLocal invoice = home.findByPrimaryKey(new InvoicePK(invoiceId, this.dataSource));
      invoice.setDataSource(this.dataSource);
      invoiceVO = invoice.getInvoiceVO();
    } catch (Exception e) {
      logger.error("[getInvoiceVO]: Exception", e);
    }
View Full Code Here

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

    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) {
View Full Code Here

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

    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);
    }
View Full Code Here

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

    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);
View Full Code Here

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

    if (!CVUtility.isModuleVisible("Payment", userID, this.dataSource))
      throw new AuthorizationFailedException("Payment- deletePayment");
    try {
      InitialContext ic = CVUtility.getInitialContext();
      PaymentLocalHome home = (PaymentLocalHome) ic.lookup("local/Payment");
      PaymentLocal payment = home.findByPrimaryKey(new PaymentPK(paymentID, this.dataSource));
      payment.setDataSource(this.dataSource);
      payment.remove();
    } catch (RemoveException re) {
      throw new EJBException(re);
    } catch (FinderException fe) {
View Full Code Here

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

      throw new AuthorizationFailedException("Payment- getPaymentVO");
    PaymentVO paymentVO = null;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      PaymentLocalHome home = (PaymentLocalHome) ic.lookup("local/Payment");
      PaymentLocal payment = home.findByPrimaryKey(new PaymentPK(paymentID, this.dataSource));
      payment.setDataSource(this.dataSource);
      paymentVO = payment.getPaymentVO();
    } catch (Exception e) {
      logger.error("[getPaymentVO]: Exception", e);
    }
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.