Package javax.ejb

Examples of javax.ejb.EJBException


      PurchaseOrderLocal invoice = home
          .findByPrimaryKey(new PurchaseOrderPK(poID, this.dataSource));
      invoice.setDataSource(this.dataSource);
      invoice.remove();
    } catch (RemoveException re) {
      throw new EJBException(re);
    } catch (FinderException fe) {
      throw new EJBException(fe);
    }
  }// end of deletePurchaseOrder
View Full Code Here


      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) {
      throw new EJBException(fe);
    }
  }
View Full Code Here

      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) {
      throw new EJBException(fe);
    }
  }
View Full Code Here

      Method buildOpportunityQuery = thisClass.getMethod("buildOpportunityQuery", methodParameters);
      opportunityData = this.getData(individualId, parameters, "opportunity", "opportunityId",
          "activity.owner", "activityId", this, buildOpportunityQuery, type, 30);
    } catch (NoSuchMethodException e) {
      logger.error("[getOpportunityData] Exception thrown.", e);
      throw new EJBException(e);
    }
    return opportunityData;
  } // end getOpportunityData
View Full Code Here

      Method buildTicketQuery = thisClass.getMethod("buildTicketQuery", methodParameters);
      opportunityData = this.getData(individualId, parameters, "ticket", "ticketId", "owner", null,
          this, buildTicketQuery, type, 39);
    } catch (NoSuchMethodException e) {
      logger.error("[getOpportunityData] Exception thrown.", e);
      throw new EJBException(e);
    }
    return opportunityData;
  } // end getOpportunityData
View Full Code Here

      }
    } catch (SQLException se) {
      logger.error("[getTemplateValueList] Exception getting Template count.", se);
      // well if I can't get a count of records, I sure as hell won't be able
      // to get the records themselves. Lets just call it a day.
      throw new EJBException(se);
    } finally {
      // close the result set.
      try {
        countRS.close();
      } catch (SQLException e) {
View Full Code Here

        cvdl.setSqlQuery("DROP TABLE listfilter");
        cvdl.executeUpdate();
      }
    } catch (SQLException e) {
      logger.error("[getIndividualValueList] Exception thrown.", e);
      throw new EJBException(e);
    } finally {
      cvdl.destroy();
      cvdl = null;
    }
    return new ValueListVO(list, parameters);
View Full Code Here

      AuthorizationLocal remote = home.create();
      remote.setDataSource(dataSource);
      remote.deleteRecordFromPublic("76", folderId);
    } catch (Exception e) {
      logger.error("[deleteFolder] Exception thrown.", e);
      throw new EJBException(e);
    } finally {
      dl.destroy();
    }
  }
View Full Code Here

        int intId = ((Number)record.get("folderId")).intValue();
        id = new Integer(intId);
      }
    } catch (Exception e) {
      logger.error("[getPublicFolderId]: Exception", e);
      throw new EJBException(e);
    } finally {
      cvdl.destroy();
    }
    return id;
  }
View Full Code Here

          HashMap hm = (HashMap) it.next();
          taxRate = ((Double) hm.get("TaxRate")).floatValue();
      }
    } catch (Exception e) {
      e.printStackTrace();
      throw new EJBException(e);
    } finally {
      dl.destroy();
    }
    return taxRate;
  } // end of getTax
View Full Code Here

TOP

Related Classes of javax.ejb.EJBException

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.