Examples of create()


Examples of com.centraview.support.faq.FaqLocalHome.create()

  public int addFaq(int userId, FaqVO fvo)
  {
    try {
      InitialContext ic = CVUtility.getInitialContext();
      FaqLocalHome home = (FaqLocalHome) ic.lookup("local/Faq");
      FaqLocal remote = home.create();
      remote.setDataSource(this.dataSource);
      return remote.addFaq(userId, fvo);
    } catch (Exception e) {
      logger.error("[addFaq]: Exception", e);
    }

Examples of com.centraview.support.helper.SupportHelperHome.create()

    // schedule a job to check support email every x minutes
    int supportInterval = 0;
    try {
      SupportHelperHome supportHome = (SupportHelperHome)CVUtility.getHomeObject("com.centraview.support.helper.SupportHelperHome", "SupportHelper");
      SupportHelper supportRemote = supportHome.create();
      supportRemote.setDataSource(dataSource);
      supportInterval = supportRemote.getSupportEmailCheckInterval();
    } catch (Exception e) { }

    if (supportInterval > 0) {

Examples of com.centraview.support.helper.SupportHelperLocalHome.create()

  {
    Vector vec = null;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      SupportHelperLocalHome home = (SupportHelperLocalHome) ic.lookup("local/SupportHelper");
      SupportHelperLocal remote = home.create();
      remote.setDataSource(this.dataSource);
      vec = remote.getAllStatus();
    } catch (Exception e) {
      logger.error("[getStatusList]: Exception", e);
    }

Examples of com.centraview.support.knowledgebase.KnowledgeBaseLocalHome.create()

  {
    int cat = 0;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      KnowledgeBaseLocalHome home = (KnowledgeBaseLocalHome) ic.lookup("local/KnowledgeBase");
      KnowledgeBaseLocal remote = home.create();
      remote.setDataSource(this.dataSource);
      ctx.getUserTransaction().begin();
      cat = remote.insertCategory(userId, catinfo);
      ctx.getUserTransaction().commit();
    } catch (Exception e) {

Examples of com.centraview.support.supportfacade.SupportFacadeHome.create()

      tVO.setPriorityId(Integer.parseInt((dynaForm.get("priority")).toString()));
      tVO.setCreatedBy(individualID);
      tVO.setOwner(individualID);
     
      SupportFacadeHome sfh = (SupportFacadeHome)CVUtility.getHomeObject("com.centraview.support.supportfacade.SupportFacadeHome", "SupportFacade");
      SupportFacade remote = (SupportFacade) sfh.create();
      remote.setDataSource(dataSource);
     
      remote.addThread(individualID, tVO);
     
      String closeornew = (String) request.getParameter("closeornew");

Examples of com.centraview.support.supportlist.SupportListLocalHome.create()

  {
    TicketList ticketlist = null;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      SupportListLocalHome home = (SupportListLocalHome) ic.lookup("local/SupportList");
      SupportListLocal remote = home.create();
      remote.setDataSource(this.dataSource);
      ticketlist = remote.getTicketList(userID, hashmap);
    } catch (Exception e) {
      logger.error("[getTicketList]: Exception", e);
    }

Examples of com.centraview.support.ticket.TicketHome.create()

     
      TicketVO ticketVO = new TicketVO();
      TicketForm dynaForm = (TicketForm)form;

      TicketHome th = (TicketHome)CVUtility.getHomeObject("com.centraview.support.ticket.TicketHome", "Ticket");
      Ticket t = th.create();
      t.setDataSource(dataSource);

      TicketVO tVO = t.getTicketBasicRelations(individualId, ticketId);

      SupportFacadeHome supFacade = (SupportFacadeHome)CVUtility.getHomeObject("com.centraview.support.supportfacade.SupportFacadeHome", "SupportFacade");

Examples of com.centraview.support.ticket.TicketLocalHome.create()

  public void duplicateTicket(int userId, TicketVO tv)
  {
    try {
      InitialContext ic = CVUtility.getInitialContext();
      TicketLocalHome home = (TicketLocalHome) ic.lookup("local/Ticket");
      TicketLocal remote = home.create();
      remote.setDataSource(this.dataSource);
      ctx.getUserTransaction().begin();
      remote.duplicateTicket(userId, tv);
      ctx.getUserTransaction().commit();
    } catch (Exception e) {

Examples of com.centraview.syncfacade.SyncFacadeHome.create()

        // if yes, then associate this invidivual with that entity
        // if no, then create a new entity, and associate this individual with
        // that entity
        SyncFacadeHome syncHome = (SyncFacadeHome)CVUtility.getHomeObject(
            "com.centraview.syncfacade.SyncFacadeHome", "SyncFacade");
        com.centraview.syncfacade.SyncFacade sfremote = syncHome.create();
        sfremote.setDataSource(dataSource);
        int newEntityID = sfremote.findCompanyNameMatch(entityName, userId);
        activityVO.setEntityID(newEntityID);
      }
      ActivityFacade remote = activityFacade.create();

Examples of com.centraview.valuelist.ValueListHome.create()

   
    // Get the list!
    ValueListHome valueListHome = (ValueListHome)CVUtility.getHomeObject("com.centraview.valuelist.ValueListHome", "ValueList");
    ValueList valueList = null;
    try {
      valueList = valueListHome.create();
    } catch (CreateException e) {
      logger.error("[execute] Exception thrown.", e);
      throw new ServletException(e);
    }
    valueList.setDataSource(dataSource);
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.