Examples of create()


Examples of com.centraview.email.sendmail.SendMailLocalHome.create()

    try
    {
      InitialContext ic = CVUtility.getInitialContext();
      SendMailLocalHome home = (SendMailLocalHome)ic.lookup("local/SendMail");
      SendMailLocal remote =  home.create();
      remote.setDataSource(this.dataSource);
      result = remote.sendMailMessage(userId ,  mailmessage );
    }catch(Exception e){
      System.out.println("[Exception][EmailFacadeBean.sendMailMessage] Exception Thrown: "+e);
      e.printStackTrace();

Examples of com.centraview.email.syncemail.SyncMailLocalHome.create()

  }
    try
    {
      InitialContext ic = CVUtility.getInitialContext();
      SyncMailLocalHome home = (SyncMailLocalHome)ic.lookup("local/SyncMail");
      SyncMailLocal remote =  home.create();
      remote.setDataSource(this.dataSource);
      return(remote.editEmailFunction(editDetails));
    }catch(Exception e){
      System.out.println("[Exception][EmailFacadeBean.editEmailFunction] Exception Thrown: "+e);
      //e.printStackTrace();

Examples of com.centraview.file.CvFileHome.create()

    listParameters.setColumns(columns);
   
    CvFolderVO folder = null;
    try {
      CvFileHome home = (CvFileHome)CVUtility.getHomeObject("com.centraview.file.CvFileHome", "CvFile");
      CvFile remote = (CvFile)home.create();
      remote.setDataSource(dataSource);
      folder = remote.getFolderByName(individualId, 2, "CV_EMPLOYEEHANDBOOK_DEFAULT_FOLDER");
    } catch (Exception e) {
      logger.error("Exception thrown in EmployeeHandbookValueListAction");
      e.printStackTrace();

Examples of com.centraview.file.CvFileLocalHome.create()

   

    try {
      InitialContext ic = new InitialContext();
      CvFileLocalHome home = (CvFileLocalHome)ic.lookup("local/CvFile");
      CvFileLocal remote =  home.create();
      remote.setDataSource(this.dataSource);

      CvFolderVO homeFolderVO = remote.getHomeFolder(individualID);

      try {

Examples of com.centraview.hr.hremployee.EmployeeLocalHome.create()

    ArrayList employeeList = null;
    try
    {
      InitialContext ic       = CVUtility.getInitialContext();
      EmployeeLocalHome home     =(EmployeeLocalHome)ic.lookup("local/Employee");
      EmployeeLocal local      =(EmployeeLocal)home.create();
      local.setDataSource(this.dataSource);
      employeeList = (ArrayList)local.getEmployeeIds();
    }
    catch(Exception e)
    {

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

    try
    {
      InitialContext ic = CVUtility.getInitialContext();

      HrExpensesLocalHome home = (HrExpensesLocalHome)ic.lookup("local/HrExpense");
      HrExpensesLocal hrexpense = (HrExpensesLocal) home.create(expenseFormVO,userID,this.dataSource);
      hrexpense.setDataSource(this.dataSource);
      expenseFormVO = hrexpense.getExpenseFormVO();
    }
    catch(Exception e)
    {

Examples of com.centraview.hr.hrfacade.HrFacadeHome.create()

    //call to EJB server
    int elementID = Integer.parseInt(key);
    HrFacadeHome hrFacadeHome = (HrFacadeHome)CVUtility.getHomeObject("com.centraview.hr.hrfacade.HrFacadeHome","HrFacade");
    try
    {
      HrFacade remote =(HrFacade)hrFacadeHome.create();
      remote.setDataSource(this.dataSource);
      remote.deleteTimeSheet(indvID,elementID);
      // TODO deleteTimeSheet user-rignts?
      this.setDirtyFlag(true);
      ListGenerator lg = ListGenerator.getListGenerator(dataSource);

Examples of com.centraview.hr.hrfacade.HrFacadeLocalHome.create()

           ContactFacadeLocalHome home = (ContactFacadeLocalHome)ic.lookup("local/ContactFacade");
           indL = home.create();
           indL.setDataSource(this.dataSource);

           HrFacadeLocalHome emplhome = (HrFacadeLocalHome)ic.lookup("local/HrFacade");
           empL = (HrFacadeLocal)emplhome.create();
           empL.setDataSource(this.dataSource);

           int size = IVOs.size();

           for ( int i=0;i<size;i++)

Examples of com.centraview.hr.hrlist.HrListsLocalHome.create()

    EmployeeList employeeList = null;
    try
    {
      InitialContext ic       = CVUtility.getInitialContext();
      HrListsLocalHome home     =(HrListsLocalHome)ic.lookup("local/HrLists");
      HrListsLocal remote     =(HrListsLocal)home.create();
      remote.setDataSource(this.dataSource);
      employeeList        = (EmployeeList)remote.getEmployeeDetailList(userID,info);
    }
    catch(Exception e)
    {

Examples of com.centraview.hr.timesheet.TimeSheetLocalHome.create()

  {
    try
    {
      InitialContext ic = CVUtility.getInitialContext();
      TimeSheetLocalHome home = (TimeSheetLocalHome)ic.lookup("local/TimeSheet");
      TimeSheetLocal remote = (TimeSheetLocal) home.create();
      remote.setDataSource(this.dataSource);
      remote.deleteTimeSlip(individualID,timeSlipIds);
    }catch(CreateException ce)
    {
      throw new EJBException(ce);
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.