Examples of create()


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

    if (individualId != 0) {
      userObj.setIndividualID(individualId);
      try {
        InitialContext ic = CVUtility.getInitialContext();
        ContactFacadeLocalHome home = (ContactFacadeLocalHome) ic.lookup("local/ContactFacade");
        ContactFacadeLocal remote = home.create();
        remote.setDataSource(this.dataSource);
        int entityID = remote.getEntityIDForIndividual(individualId);
        EntityVO entityVO = remote.getEntity(entityID);
        AddressVO primaryAdd = entityVO.getPrimaryAddress();
        userObj.setEntityName(entityVO.getName());

Examples of com.centraview.contact.contactlist.ContactListLocalHome.create()

    AddressList  addressList = null;
    try
    {
      InitialContext ic = CVUtility.getInitialContext();
      ContactListLocalHome home = (ContactListLocalHome)ic.lookup("local/ContactList");
      ContactListLocal remote =  home.create();
      remote.setDataSource(this.dataSource);
      // TODO userId HARDCODED
      addressList = remote.getAddressList(1, contactId,contactType);
    }catch(Exception e){
      System.out.println("[Exception][ContactFacadeEJB.getAllAddresses] Exception Thrown: "+e);

Examples of com.centraview.contact.entity.EntityLocalHome.create()

    int entityID = 0;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      EntityLocalHome home = (EntityLocalHome)ic.lookup("local/Entity");
      ctx.getUserTransaction().begin();
      EntityLocal remote =  home.create(entityDetails, ActionUserId, this.dataSource);
      EntityVO evo = remote.getEntityVOBasic();
      ctx.getUserTransaction().commit();

      entityID = evo.getContactID();

Examples of com.centraview.contact.group.GroupLocalHome.create()

    Vector v = null ;
    try
    {
      InitialContext ic = CVUtility.getInitialContext();
      GroupLocalHome home = (GroupLocalHome)ic.lookup("local/Group");
      GroupLocal remote = home.create();
      remote.setDataSource(dataSource);
      v = remote.getGroupMemberIDs(userID,groupId );
    }catch(Exception e){
      System.out.println("[Exception][ContactFacadeEJB.getGroupMemberIDs] Exception Thrown: "+e);
      //e.printStackTrace();

Examples of com.centraview.contact.helper.ContactHelperHome.create()

        ownerid = "";
      }
      String ownerName="";
      if (ownerid != null && !ownerid.equals("")) {
        ContactHelperHome contactHome = (ContactHelperHome)CVUtility.getHomeObject("com.centraview.contact.helper.ContactHelperHome", "ContactHelper");
        ContactHelper contactRemote =  contactHome.create();
        contactRemote.setDataSource(dataSource);
        ownerName = contactRemote.getIndividualName(Integer.parseInt(ownerid));
      }

      int sizeOfAccountList = accountList.size();

Examples of com.centraview.contact.helper.ContactHelperLocalHome.create()

      MailMessageVO mailMessageVO = new MailMessageVO();
      ArrayList toList = new ArrayList();

      InitialContext ic = CVUtility.getInitialContext();
      ContactHelperLocalHome contactHome = (ContactHelperLocalHome)ic.lookup("local/ContactHelper");
      ContactHelperLocal contactRemote = (ContactHelperLocal)contactHome.create();
      contactRemote.setDataSource(dataSource);
      toList = contactRemote.getEmailContactForIndividuals(individualIDs);
      String fromAddress = contactRemote.getPrimaryEmailAddress(individualID,2);

      if (fromAddress != null && !fromAddress.equals("") && toList != null && toList.size() != 0)

Examples of com.centraview.contact.individual.IndividualLocalHome.create()

      InitialContext ic = CVUtility.getInitialContext();
      IndividualLocalHome home = (IndividualLocalHome)ic.lookup("local/Individual");

      ctx.getUserTransaction().begin();

      IndividualLocal remote =  home.create(indDetail,actionUserId,this.dataSource);
      IndividualVO vo = remote.getIndividualVOBasic();
      indID = vo.getContactID();

      ctx.getUserTransaction().commit();

Examples of com.centraview.customfield.CustomFieldHome.create()

  {
    int elementID = Integer.parseInt(key);
    CustomFieldHome customFieldHome =(CustomFieldHome)CVUtility.getHomeObject("com.centraview.customfield.CustomFieldHome","CustomField");//call to CustomFieldEJB
    try
    {
      CustomField remote=(CustomField)customFieldHome.create();
      remote.setDataSource(this.dataSource);
      remote.deleteCustomField(indvID,elementID);
    }
    catch(Exception e)
    {

Examples of com.centraview.customfield.CustomFieldLocalHome.create()

    ArrayList validFields = new ArrayList();
    try
    {
      InitialContext ic = CVUtility.getInitialContext();
      CustomFieldLocalHome home = (CustomFieldLocalHome)ic.lookup("local/CustomField");
      CustomFieldLocal remote = home.create();
      remote.setDataSource(this.dataSource);

      if (fieldType.equals("Both") || fieldType.equals("Individual"))
      {
        // Collections of hashmaps

Examples of com.centraview.cvattic.CvAtticHome.create()

    CvAtticHome cvAtticHome =(CvAtticHome)CVUtility.getHomeObject("com.centraview.cvattic.CvAtticHome","CvAttic");
    try
    {
      //call to EJB server
      CvAttic remote=(CvAttic)cvAtticHome.create();
      remote.setDataSource(this.dataSource);
      for (int i=0; i<recordID.length; i++)
      {
        if(recordID[i] != null && !recordID[i].equals("")){
          int elementID = Integer.parseInt(recordID[i]);
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.