Package com.centraview.account.expense

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


      throw new AuthorizationFailedException("Expense- getExpense");
    ExpenseVO expenseVO = null;
    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);
      expenseVO = expense.getExpenseVO();
    } catch (Exception e) {
      logger.error("[getExpenseVO]: Exception", e);
    }
View Full Code Here

    if (!CVUtility.isModuleVisible("Expense", userID, this.dataSource))
      throw new AuthorizationFailedException("Expense- updateExpense");
    try {
      InitialContext ic = CVUtility.getInitialContext();
      ExpenseLocalHome home = (ExpenseLocalHome) ic.lookup("local/Expense");
      ExpenseLocal expense = home.findByPrimaryKey(new ExpensePK(expenseVO.getExpenseID(),
          this.dataSource));
      expense.setDataSource(this.dataSource);
      expense.setExpenseVO(expenseVO, userID);
    } catch (Exception e) {
      logger.error("[updateExpense]: 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.