Examples of create()


Examples of com.centraview.license.LicenseHome.create()

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

      LicenseHome lh = (LicenseHome)CVUtility.getHomeObject("com.centraview.license.LicenseHome", "License");
      License remote = (License) lh.create();
      remote.setDataSource(dataSource);

      LicenseVO licenseVO = remote.getPrimaryLicense();

      if (typeOfSave.equals("save"))

Examples of com.centraview.login.LoginHome.create()

    HashMap hm = null;
    getPATH();
    try {
      InitialContext ic = CVUtility.getInitialContext();
      LoginHome lh = (LoginHome) ic.lookup("Login");
      Login remote = (Login) lh.create();
      remote.setDataSource(dataSource);
      hm = (HashMap) remote.authenticateUser(userName, passwd);
      //checking hashmap
      if (hm != null && hm.get("userid")!= null && hm.get("individualid")!= null && hm.get("lastName")!= null && hm.get("firstName")!= null ) {
        session.set("authenticateUserHashMap", hm);

Examples of com.centraview.mail.MailHome.create()

    DynaActionForm accountForm = (DynaActionForm)form;

    MailHome home = (MailHome)CVUtility.getHomeObject("com.centraview.mail.MailHome", "Mail");

    try {
      Mail remote = (Mail)home.create();
      remote.setDataSource(dataSource);

      // build a MailAccountVO
      MailAccountVO accountVO = new MailAccountVO();

Examples of com.centraview.mail.MailImportHome.create()

    int newIndividualID = -1;

    try
    {
      MailImportHome importHome = (MailImportHome)CVUtility.getHomeObject("com.centraview.mail.MailImportHome", "MailImport");
      MailImport mailRemote = (MailImport)importHome.create();
      mailRemote.setDataSource(dataSource);

      // first, get the list of valid fields from the database.
      // loop through that list, and get the form parameter value
      // for each valid field. Stick that value in a hashmap for

Examples of com.centraview.mail.MailLocalHome.create()

   */
  public boolean simpleMessage(int individualID, MailMessageVO mailMessageVO) throws NamingException,CreateException, SendFailedException, MessagingException
  {
      InitialContext ic = CVUtility.getInitialContext();
      MailLocalHome home = (MailLocalHome)ic.lookup("local/Mail");
      MailLocal remote = (MailLocal)home.create();
      remote.setDataSource(dataSource);
      boolean sendFlag = remote.simpleMessage(individualID,mailMessageVO);
      return sendFlag;
  } // end public

Examples of com.centraview.marketing.List.ListLocalHome.create()

  {
    HashMap messageMap = new HashMap();
    try {
      InitialContext ic = CVUtility.getInitialContext();
      ListLocalHome home = (ListLocalHome)ic.lookup("local/List");
      ListLocal remote = home.create();
      remote.setDataSource(this.dataSource);
      messageMap = remote.getImportList(importList, headerRow, listid, indvID, CustomEntList,
          CustomIndList, tabDelimiter, lineDelimiter, headLine);
    } catch (Exception e) {
      System.out.println("Failed in getting EventList");

Examples of com.centraview.marketing.events.EventsLocalHome.create()

      throw new AuthorizationFailedException("Event - getEventDetails");
    int result = 0;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      EventsLocalHome home = (EventsLocalHome)ic.lookup("local/Events");
      EventsLocal local = home.create();
      local.setDataSource(this.dataSource);
      result = local.addEvent(mapEvent, userId);
    } catch (Exception exe) {
      exe.printStackTrace();
      result = 1;

Examples of com.centraview.marketing.literature.LiteratureLocalHome.create()

  {
    int result = 0;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      LiteratureLocalHome home = (LiteratureLocalHome)ic.lookup("local/Literature");
      LiteratureLocal local = home.create();
      local.setDataSource(this.dataSource);
      result = local.deleteLiterature(elementid, userid);
    } catch (CreateException ce) {
      throw new EJBException(ce);
    } catch (NamingException re) {

Examples of com.centraview.marketing.marketingfacade.MarketingFacadeHome.create()

   
    String rowId[] = request.getParameterValues("rowId");
    MarketingFacadeHome marketingFacadeHome = (MarketingFacadeHome)CVUtility.getHomeObject("com.centraview.marketing.marketingfacade.MarketingFacadeHome","MarketingFacade");
    try
    {
      MarketingFacade remote = (MarketingFacade)marketingFacadeHome.create();
      remote.setDataSource(dataSource);
      for (int i=0; i<rowId.length; i++)
      {
        if(rowId[i] != null && !rowId[i].equals(""))
        {         

Examples of com.centraview.marketing.marketinglist.MarketingListLocalHome.create()

    EventList eventlist = null;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      MarketingListLocalHome home = (MarketingListLocalHome)ic.lookup("local/MarketingList");
      MarketingListLocal local = home.create();
      local.setDataSource(this.dataSource);
      eventlist = (EventList)local.getEventList(userId, info);
    } catch (Exception e) {
      System.out.println("Failed in getting EventList");
      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.