Examples of create()


Examples of com.centraview.marketing.promotion.PromotionLocalHome.create()

  {
    PromotionVO promotionVO = null;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      PromotionLocalHome home = (PromotionLocalHome)ic.lookup("local/Promotion");
      PromotionLocal remote = home.create();
      remote.setDataSource(this.dataSource);
      promotionVO = (PromotionVO)remote.getPromotion(userId, data);
    } catch (Exception e) {
      e.printStackTrace();
      return null;

Examples of com.centraview.note.NoteHome.create()

      if (newIndividualID != 0)
      {
        if (addNote)
        {
          NoteHome noteHome = (NoteHome)CVUtility.getHomeObject("com.centraview.note.NoteHome", "Note");
          Note noteRemote = (Note)noteHome.create();
          noteRemote.setDataSource(dataSource);

          NoteVO noteVO = new NoteVO();

          // the "title" of the note will be the first 22 characters of the content,

Examples of com.centraview.preference.PreferenceHome.create()

    Vector indIdVec = new Vector();

    try {
      PreferenceHome hm = (PreferenceHome) CVUtility.getHomeObject("com.centraview.preference.PreferenceHome",
          "Preference");
      Preference remote = hm.create();
      remote.setDataSource(dataSource);

      if (typeofModule.equals(Constants.ACTIVITYMODULE)) {
        moduleName = Constants.ACTIVITYMODULE;
      } else if (typeofModule.equals(Constants.ACTIVITYMODULE)) {

Examples of com.centraview.preference.PreferenceLocalHome.create()

  {
    UserPrefererences up = new UserPrefererences();
    try {
      InitialContext ic = CVUtility.getInitialContext();
      PreferenceLocalHome home = (PreferenceLocalHome) ic.lookup("local/Preference");
      PreferenceLocal remote = home.create();
      remote.setDataSource(this.dataSource);
      up = remote.getUserPreferences(individualId);
    } catch (Exception e) {
      logger.error("[getUserObject]: Exception", e);
    }

Examples of com.centraview.printtemplate.PrintTemplateHome.create()

      }

      PrintTemplateHome PTHome = (PrintTemplateHome) CVUtility.getHomeObject(
          "com.centraview.printtemplate.PrintTemplateHome", "Printtemplate");
      PrintTemplate PTRemote = PTHome.create();
      PTRemote.setDataSource(dataSource);

      PrintTemplateVO ptVO = PTRemote.getPrintTemplate(3);

      String ticketTemplate = ptVO.getPtData();

Examples of com.centraview.projects.helper.ProjectsHelperHome.create()

  private ProjectsHelperList()
  {
    try {
      ProjectsHelperHome phh = (ProjectsHelperHome)CVUtility.getHomeObject("com.centraview.projects.helper.ProjectsHelperHome", "ProjectsHelper");
      ProjectsHelper remote = (ProjectsHelper) phh.create();
      remote.setDataSource(ProjectsHelperList.dataSource);

      Vector statusCol = remote.getProjectStatusList();
      this.put("ProjectStatus", statusCol);
    } catch (Exception e) {

Examples of com.centraview.projects.helper.ProjectsHelperLocalHome.create()

  {
    Vector projectStatus = new Vector();
    try {
      InitialContext ic = CVUtility.getInitialContext();
      ProjectsHelperLocalHome home = (ProjectsHelperLocalHome)ic.lookup("local/ProjectsHelper");
      ProjectsHelperLocal remote = (ProjectsHelperLocal)home.create();
      remote.setDataSource(this.dataSource);
      projectStatus = remote.getProjectStatusList();
    } catch (Exception e) {
      System.out.println("[Exception][ProjectFacadeEJB.getProjectStatusList] Exception Thrown: "
          + e);

Examples of com.centraview.projects.project.ProjectLocalHome.create()

  public void deleteProject(int indvID, int projectID) throws AuthorizationFailedException
  {
    try {
      InitialContext ic = CVUtility.getInitialContext();
      ProjectLocalHome home = (ProjectLocalHome)ic.lookup("local/Project");
      ProjectLocal remote = (ProjectLocal)home.create();
      remote.setDataSource(this.dataSource);
      remote.deleteProject(indvID, projectID);
    } catch (CreateException ce) {
      throw new EJBException(ce);
    } catch (NamingException re) {

Examples of com.centraview.projects.projectfacade.ProjectFacadeHome.create()

    ProjectFacadeHome aa = (ProjectFacadeHome)
      CVUtility.getHomeObject("com.centraview.projects.projectfacade.ProjectFacadeHome", "ProjectFacade");

    try
    {
      ProjectFacade remote = (ProjectFacade) aa.create();
      remote.setDataSource(dataSource);
      remote.addTimeSlip(indvID, timeSlipVO);
    }
    catch (Exception e)
    {

Examples of com.centraview.projects.projectlist.ProjectListsLocalHome.create()

  {
    ProjectList projectList = null;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      ProjectListsLocalHome home = (ProjectListsLocalHome)ic.lookup("local/ProjectLists");
      ProjectListsLocal remote = (ProjectListsLocal)home.create();
      remote.setDataSource(this.dataSource);
      projectList = (ProjectList)remote.getProjectList(userID, info);
    } catch (Exception e) {
      System.out.println("[Exception][ProjectFacadeEJB.getProjectList] Exception Thrown: " + e);
      e.printStackTrace();
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.