Examples of findByPrimaryKey()


Examples of com.centraview.hr.hrexpenses.HrExpensesLocalHome.findByPrimaryKey()

    ExpenseFormVO expenseFormVO = null;
      try
      {
        InitialContext ic = CVUtility.getInitialContext();
        HrExpensesLocalHome home = (HrExpensesLocalHome)ic.lookup("local/HrExpense");
        HrExpensesLocal hrexpense = home.findByPrimaryKey(new ExpenseFormPK(ExpenseFormID,this.dataSource));
        hrexpense.setDataSource(this.dataSource);
        expenseFormVO = hrexpense.getExpenseFormVO();
      }
      catch(Exception e)
      {
View Full Code Here

Examples of com.centraview.hr.hrexpenses.HrExpensesLocalHome.findByPrimaryKey()

    try
    {
      InitialContext ic = CVUtility.getInitialContext();
      HrExpensesLocalHome home = (HrExpensesLocalHome)ic.lookup("local/HrExpense");
      HrExpensesLocal hrexpense = home.findByPrimaryKey(new ExpenseFormPK(expenseFormVO.getExpenseFormID(),this.dataSource));
      hrexpense.setDataSource(this.dataSource);
      hrexpense.setHrExpenseVO(expenseFormVO,userID);
    }
    catch(Exception e)
    {
View Full Code Here

Examples of com.centraview.hr.hrexpenses.HrExpensesLocalHome.findByPrimaryKey()

  {
    try
    {
      InitialContext ic = CVUtility.getInitialContext();
      HrExpensesLocalHome home = (HrExpensesLocalHome)ic.lookup("local/HrExpense");
      HrExpensesLocal hrexpense = home.findByPrimaryKey(new ExpenseFormPK(expenseFormID,this.dataSource));
      hrexpense.setDataSource(this.dataSource);
      //hrexpense.remove();
      hrexpense.deleteExpenseForm(expenseFormID);
    }catch(FinderException fe)
    {
View Full Code Here

Examples of com.centraview.report.ejb.entity.ReportLocalHome.findByPrimaryKey()

      ReportLocal report = null;
      int index = 0;
      try {
        for (int i = 0; i < reportIds.length; i++) {
          index = reportIds[i];
          report = reportHome.findByPrimaryKey(new ReportPK(index, this.dataSource));
          report.remove();
        }
      } catch (ObjectNotFoundException e) {
        throw new EJBException("Report object not found, id = " + index);
      }
View Full Code Here

Examples of com.centraview.report.ejb.entity.ReportLocalHome.findByPrimaryKey()

  {
    try {
      ReportVO reportVO = new ReportVO();
      ReportLocalHome reportHome = EntityHomeFactory.getReportLocalHome();
      ReportContentLocalHome reportContentHome = EntityHomeFactory.getReportContentLocalHome();
      ReportLocal reportLocal = reportHome.findByPrimaryKey(new ReportPK(reportId, this.dataSource));

      reportVO.setDescription(reportLocal.getDescription());
      reportVO.setModuleId(reportLocal.getModuleId());
      reportVO.setName(reportLocal.getName());
      reportVO.setReportId(reportId);
View Full Code Here

Examples of com.centraview.report.ejb.entity.ReportLocalHome.findByPrimaryKey()

  public int updateStandardReport(int userId, ReportVO reportVO, boolean saveName)
  {
    try {
      int reportId = 0;
      ReportLocalHome reportHome = EntityHomeFactory.getReportLocalHome();
      ReportLocal reportLocal = reportHome.findByPrimaryKey(new ReportPK(reportVO.getReportId(), this.dataSource));

      if (saveName) {
        reportLocal.setDescription(reportVO.getDescription());
        reportLocal.setModuleId(reportVO.getModuleId());
        reportLocal.setName(reportVO.getName());
View Full Code Here

Examples of com.centraview.report.ejb.entity.ReportLocalHome.findByPrimaryKey()

    ArrayList resultLine = null;
    CVDal dataAccessLayer = new CVDal(this.dataSource);
    ResultSet resultSet = null;
    try {
      ReportLocalHome reportHome = EntityHomeFactory.getReportLocalHome();
      ReportLocal reportLocal = reportHome.findByPrimaryKey(new ReportPK(reportId, this.dataSource));
      reportResult.setReportId(reportLocal.getReportId());
      reportResult.setModuleId(reportLocal.getModuleId());
      reportResult.setName(reportLocal.getName());
      reportResult.setSearchCriteria(getSearchCriteriaString(userId, reportId));
      Date dateFrom = reportLocal.getDateFrom();
View Full Code Here

Examples of com.centraview.report.ejb.entity.ReportLocalHome.findByPrimaryKey()

          com.centraview.advancedsearch.AdvancedSearchLocalHome.class);
      AdvancedSearchLocal localAdvancedSearch = (AdvancedSearchLocal) cfh.create();
      localAdvancedSearch.setDataSource(this.dataSource);

      ReportLocalHome reportHome = EntityHomeFactory.getReportLocalHome();
      ReportLocal reportLocal = reportHome.findByPrimaryKey(new ReportPK(reportId, this.dataSource));
      resultVO.setReportId(reportLocal.getReportId());
      resultVO.setModuleId(reportLocal.getModuleId());
      resultVO.setName(reportLocal.getName());
      resultVO.setSearchCriteria(getSearchCriteriaString(userId, reportId));
      // get report dates
View Full Code Here

Examples of com.ibm.demo.entity.CustomerHomeRemote.findByPrimaryKey()

    //loop through all customers
    CustomerRemote customer = null;
    for (int i = 1; ; i++){
      Integer pk = new Integer(i);
      try{
        customer = customerHome.findByPrimaryKey(pk);
      } catch(FinderException fe){
        System.out.println("Find Exception: " + fe.getMessage());
        break;
      } catch(RemoteException re){
        System.out.println("Remote Exception: " + re.getMessage());
View Full Code Here

Examples of com.sun.ebank.ejb.customer.CustomerHome.findByPrimaryKey()

             throw new EJBException("customerExists: " +
                 ex.getMessage());
        }

        try {
            customerHome.findByPrimaryKey(customerId);
            return true;
        } catch (Exception ex) {
            return false;
        }
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.