Package com.centraview.account.invoice

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


    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

      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

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.