Package com.centraview.contact.helper

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


    try
    {
      InitialContext ic = CVUtility.getInitialContext();
      ContactHelperLocalHome home = (ContactHelperLocalHome)ic.lookup("local/ContactHelper");
      ContactHelperLocal remote =  home.create();
      remote.setDataSource(this.dataSource);
      // Transaction not required cause even if adding member fails its ok.
      avo  = remote.getAddress(addressId);
    }catch(Exception e){
      System.out.println("[Exception][ContactFacadeEJB.getAddress] Exception Thrown: "+e);
View Full Code Here


    try
    {
      InitialContext ic = CVUtility.getInitialContext();
      ContactHelperLocalHome home = (ContactHelperLocalHome)ic.lookup("local/ContactHelper");
      ContactHelperLocal remote =  home.create();
      remote.setDataSource(this.dataSource);
      // Transaction not required cause even if adding member fails its ok.
      avo  = remote.getRelatedAddress(addressId, contactType, contactID);
    }catch(Exception e){
      System.out.println("[Exception][ContactFacadeEJB.getAddress] Exception Thrown: "+e);
View Full Code Here

    try
    {
      InitialContext ic = CVUtility.getInitialContext();
      ContactHelperLocalHome home = (ContactHelperLocalHome)ic.lookup("local/ContactHelper");
      ContactHelperLocal remote =  home.create();
      remote.setDataSource(this.dataSource);
      // Transaction not required cause even if adding member fails its ok.
      mvo  = remote.getMoc(mocId);
    }catch(Exception e){
      System.out.println("[Exception][ContactFacadeEJB.getMOC] Exception Thrown: "+e);
View Full Code Here

    int entityID = 0;
    try
    {
      InitialContext ic = CVUtility.getInitialContext();
      ContactHelperLocalHome home = (ContactHelperLocalHome)ic.lookup("local/ContactHelper");
        ContactHelperLocal remote =  home.create();
        remote.setDataSource(this.dataSource);
        entityID  = remote.getEntityIDForIndividual(individualID);
    }catch(Exception e){
        System.out.println("[Exception][ContactFacadeEJB.getEntityIDForIndividual] Exception Thrown: "+e);
        //e.printStackTrace();
View Full Code Here

    boolean isUser = false;
    try
    {
      InitialContext ic = CVUtility.getInitialContext();
      ContactHelperLocalHome home = (ContactHelperLocalHome)ic.lookup("local/ContactHelper");
      ContactHelperLocal remote =  home.create();
      remote.setDataSource(this.dataSource);
      isUser  = remote.isIndividualAUser(individualID);
    }catch(Exception e){
      System.out.println("[Exception][ContactFacadeEJB.getEntityIDForIndividual] Exception Thrown: "+e);
      //e.printStackTrace();
View Full Code Here

    String emailAddress = null;
    try
    {
      InitialContext ic = CVUtility.getInitialContext();
      ContactHelperLocalHome home = (ContactHelperLocalHome)ic.lookup("local/ContactHelper");
      ContactHelperLocal remote =  home.create();
      remote.setDataSource(this.dataSource);
      emailAddress  = remote.getPrimaryEmailAddress(contactID,contactType);
    }catch(Exception e){
      System.out.println("[Exception][ContactFacadeEJB.getPrimaryEmailAddress] Exception Thrown: "+e);
      //e.printStackTrace();
View Full Code Here

  public EntityVO getEntityVOWithBasicReferences()
  {
    try {
      InitialContext ic = CVUtility.getInitialContext();
      ContactHelperLocalHome home = (ContactHelperLocalHome)ic.lookup("local/ContactHelper");
      ContactHelperLocal remote = home.create();
      remote.setDataSource(this.dataSource);

      int cntType = 1;
      int cntId = this.envo.getContactID();
View Full Code Here

      CVUtility.addHistoryRecord(historyInfo, ds);

      // Create the address.
      AddressVO addVO = individualDetail.getPrimaryAddress();
      ContactHelperLocalHome home = (ContactHelperLocalHome)ic.lookup("local/ContactHelper");
      ContactHelperLocal remote = home.create();
      remote.setDataSource(ds);
      // if there is no address filled in, automatically fill in the address
      // from the associated entity.
      if ((addVO.getCity() == null || addVO.getCity().equals("")) &&
          (addVO.getCountryName() == null || addVO.getCountryName().equals("")) &&
View Full Code Here

    newEntityID = dl.getAutoGeneratedKey();

    try {
      ContactHelperLocalHome home = (ContactHelperLocalHome)ic.lookup("local/ContactHelper");
      ContactHelperLocal remote =  home.create();
      remote.setDataSource(dataSource);

      int contactType = entityVO.getContactType();

      if (entityVO.getPrimaryAddress() != null) {
View Full Code Here

            custRemote.updateCustomField(custFieldVO);
          }
        }

        ContactHelperLocalHome home = (ContactHelperLocalHome)ic.lookup("local/ContactHelper");
        ContactHelperLocal remote = home.create();
        remote.setDataSource(this.dataSource);

        int cntType = this.indVo.getContactType();
        AddressVO av = this.indVo.getPrimaryAddress();
        if (av != null) {
View Full Code Here

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.