Package com.centraview.contact.helper

Examples of com.centraview.contact.helper.ContactHelperLocalHome


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


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

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

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

    AddressVO avo = null;

    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

    AddressVO avo = null;

    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

    MethodOfContactVO mvo = null;

    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

  public boolean isIndividualAUser(int individualID){
    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

  public String getPrimaryEmailAddress(int contactID,int contactType){
    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

TOP

Related Classes of com.centraview.contact.helper.ContactHelperLocalHome

Copyright © 2018 www.massapicom. 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.