Examples of create()


Examples of com.centraview.administration.user.UserHome.create()

      {
        typeOfSave = request.getParameter("buttonpress");
      }

      UserHome uhome = (UserHome)CVUtility.getHomeObject("com.centraview.administration.user.UserHome", "User");
      User uRemote = (User)uhome.create();
      uRemote.setDataSource(dataSource);
      String oldPassword = "", newPassword = "";
      // TODO integrate password change with RememberMe functionallity.
      if (uRemote != null)
      {

Examples of com.centraview.advancedsearch.AdvancedSearchHome.create()

      adhocReportForm.set("moduleId", new Integer(moduleId));

      AdvancedSearch remoteAdvancedSearch = null;
      try {
        AdvancedSearchHome advancedSearchHome = (AdvancedSearchHome)CVUtility.getHomeObject("com.centraview.advancedsearch.AdvancedSearchHome", "AdvancedSearch");
        remoteAdvancedSearch = advancedSearchHome.create();
        remoteAdvancedSearch.setDataSource(dataSource);
      } catch (Exception e) {
        System.out.println("[Exception][SearchForm.execute] Exception Thrown getting EJB connection: " + e);
        throw new ServletException(e);
      }

Examples of com.centraview.advancedsearch.AdvancedSearchLocalHome.create()

      String fieldValue = (String) replaceInfo.get("fieldValue");
      String fieldName = (String) replaceInfo.get("fieldName");

      InitialContext ic = CVUtility.getInitialContext();
      AdvancedSearchLocalHome home = (AdvancedSearchLocalHome) ic.lookup("local/AdvancedSearch");
      AdvancedSearchLocal remote = (AdvancedSearchLocal) home.create();
      remote.setDataSource(dataSource);
      ArrayList resultsIDs = new ArrayList();
      resultsIDs.addAll(remote.performSearch(individualID,searchVO));

      //Parse out the field Information which are fieldtableid, fieldID and fieldType

Examples of com.centraview.alert.AlertHome.create()

  private void deleteAlert(int individualID, int alertID, String dataSource)
  {
    try
    {
      AlertHome ah = (AlertHome)CVUtility.getHomeObject("com.centraview.alert.AlertHome", "Alert");
      Alert remote = ah.create();
      remote.setDataSource(dataSource);
      remote.deleteAlert(alertID, individualID);
    }catch(Exception e){
      logger.error("[AlertServlet] Exception thrown in deleteAlert(): ", e);
    }

Examples of com.centraview.calendar.CvCalendarHome.create()

      }

      try {
        CvCalendarHome ch = (CvCalendarHome)CVUtility.getHomeObject(
            "com.centraview.calendar.CvCalendarHome", "CvCalendar");
        CvCalendar cr = ch.create();
        cr.setDataSource(dataSource);
        userActivities = cr.getAvailibility(1, userId, startDate, endDate);
      } catch (Exception e) {
        logger.error("[execute]: Exception", e);
      }

Examples of com.centraview.chart.ChartHome.create()

    // get the data from the EJB
    ChartHome chartHome = (ChartHome)CVUtility.getHomeObject("com.centraview.chart.ChartHome", "Chart");
    Chart chartRemote = null;
    try
    {
      chartRemote = chartHome.create();
    }catch(CreateException e){
      logger.error("[execute] Exception thrown.", e);
      throw new ServletException(e);
    }
    chartRemote.setDataSource(dataSource);

Examples of com.centraview.common.helper.CommonHelperHome.create()

      Vector locationsVector = accHelper.getLocations();
      this.put("AccountingLocations", locationsVector);

      CommonHelperHome commonHelperHome = (CommonHelperHome)CVUtility.getHomeObject(
          "com.centraview.common.helper.CommonHelperHome", "CommonHelper");
      CommonHelper commonRemote = commonHelperHome.create();
      commonRemote.setDataSource(this.dataSource);

      allSource = commonRemote.getAllSource();
      this.put("AllSource", allSource);

Examples of com.centraview.common.helper.CommonHelperLocalHome.create()

    ArrayList folderPathList = new ArrayList();
    try
    {
      InitialContext ic = CVUtility.getInitialContext();
      CommonHelperLocalHome contactHelperHome = (CommonHelperLocalHome)ic.lookup("local/CommonHelper");
      CommonHelperLocal contactHelperRemote =  contactHelperHome.create();
      contactHelperRemote.setDataSource(this.dataSource);
      folderPathList = contactHelperRemote.getFolderFullPath(folderID, "emailfolder");
    }catch(Exception e){
      logger.error("[getFolderFullPath] Exception thrown.", e);
    }

Examples of com.centraview.common.source.SourceLocalHome.create()

  {
    try
    {
      InitialContext ic = CVUtility.getInitialContext();
      SourceLocalHome home = (SourceLocalHome)ic.lookup("local/Source");
      SourceLocal remote =  home.create(svo,this.dataSource);
    }catch(Exception e){
      System.out.println("[Exception][ContactFacadeEJB.createSource] Exception Thrown: "+e);
      //e.printStackTrace();
    }
  }

Examples of com.centraview.contact.contactfacade.ContactFacadeHome.create()

        vecSend = emailVecSend;
        vecAll = (Vector)hm.get(Constants.VIEWSENDEMAIL);
      }

      ContactFacadeHome facadeHome = (ContactFacadeHome)CVUtility.getHomeObject("com.centraview.contact.contactfacade.ContactFacadeHome", "ContactFacade");
      ContactFacade cfremote = (ContactFacade) facadeHome.create();
      cfremote.setDataSource(dataSource);

      // get the records from the database
      Collection sqlResults = cfremote.getEmployeeListCollection(individualId);
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.