Package com.centraview.contact.helper

Examples of com.centraview.contact.helper.ContactHelperLocal


  {
    try
    {
      InitialContext ic = CVUtility.getInitialContext();
      ContactHelperLocalHome home = (ContactHelperLocalHome)ic.lookup("local/ContactHelper");
      ContactHelperLocal remote =  home.create();
      remote.setDataSource(this.dataSource);
      remote.updateAddress(addressDet, contactId, 1,true);
    }catch(Exception e){
      System.out.println("[Exception][ContactFacadeEJB.updateAddress] Exception Thrown: "+e);
    }
  }   // end  updateAddress() method
View Full Code Here


  {
    try
    {
      InitialContext ic = CVUtility.getInitialContext();
      ContactHelperLocalHome home = (ContactHelperLocalHome)ic.lookup("local/ContactHelper");
      ContactHelperLocal remote =  home.create();
      remote.setDataSource(this.dataSource);
      remote.updateRelateAddress(addressVO, contactType, contactId);
      // When a contact method or address is updated, it must alter the modified
      // time of the individual or entity record with which it is associated to the current
      // time.  If this does not happen, sync is broken.
      remote.updateModified("address", contactId, userId, addressVO.getAddressID());
    }catch(Exception e){
      System.out.println("[Exception][ContactFacadeEJB.updateRelatedAddress] Exception Thrown: "+e);
      //e.printStackTrace();
    }
  }   // end  updateAddress() method
View Full Code Here

  public void deleteAddress(int addressId, int contactId, int userId)
  {
    try{
      InitialContext ic = CVUtility.getInitialContext();
      ContactHelperLocalHome home = (ContactHelperLocalHome)ic.lookup("local/ContactHelper");
      ContactHelperLocal remote =  home.create();
      remote.setDataSource(this.dataSource);
      remote.deleteAddress(addressId,  contactId,  userId,true);
      remote.updateModified("address", contactId, userId, addressId);
    }catch(NamingException re){
      throw new EJBException(re);
    }catch(CreateException ce){
      throw new EJBException(ce);
    }
View Full Code Here

  {
    try
    {
      InitialContext ic = CVUtility.getInitialContext();
      ContactHelperLocalHome home = (ContactHelperLocalHome)ic.lookup("local/ContactHelper");
      ContactHelperLocal remote =  home.create();
      remote.setDataSource(this.dataSource);
      remote.addMOC(mocDet, contactId, contactType, individualId,true);
      // TODO: userId HARDCODED
    }catch(Exception e){
      System.out.println("[Exception][ContactFacadeEJB.createMOC] Exception Thrown: "+e);
      //e.printStackTrace();
    }
View Full Code Here

  {
    try
    {
      InitialContext ic = CVUtility.getInitialContext();
      ContactHelperLocalHome home = (ContactHelperLocalHome)ic.lookup("local/ContactHelper");
      ContactHelperLocal remote =  home.create();
      remote.setDataSource(this.dataSource);
      remote.updateMOC(contactMethod, contactId, userId,true);
      // When a contact method or address is updated, it must alter the modified
      // time of the individual or entity record with which it is associated to the current
      // time.  If this does not happen, sync is broken.
      remote.updateModified("moc", contactId, userId,contactMethod.getMocID());
    }catch(Exception e){
      System.out.println("[Exception][ContactFacadeEJB.updateMOC] Exception Thrown: " + e);
    }
  }   // end updateMOC() method
View Full Code Here

    try
    {
      InitialContext ic = CVUtility.getInitialContext();
      ContactHelperLocalHome home = (ContactHelperLocalHome)ic.lookup("local/ContactHelper");
      ContactHelperLocal remote =  home.create();
      remote.setDataSource(this.dataSource);
      individualList = remote.getEmployeeList();
    }catch(Exception e){
      System.out.println("[Exception][ContactFacadeEJB] Exception thrown in getAllIndividualList(): " + e);
      return(null);
    }
    return(individualList);
View Full Code Here

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

      entityList = remote.getEntityList(listId);
    }catch(Exception e){
      System.out.println("[Exception][ContactFacadeEJB] Exception thrown in getAllIndividualList(): " + e);
      return(null);
    }
    return(entityList);
View Full Code Here

  public void deleteMOC(int mocId, int contactId, int userId)
  {
    try{
      InitialContext ic = CVUtility.getInitialContext();
      ContactHelperLocalHome home = (ContactHelperLocalHome)ic.lookup("local/ContactHelper");
      ContactHelperLocal remote =  home.create();
      remote.setDataSource(this.dataSource);
      remote.deleteMOC(mocId,  contactId,  userId,true);
      remote.updateModified("moc", contactId, userId, mocId);
    }catch(NamingException re){
      throw new EJBException(re);
    }catch(CreateException ce){
      throw new EJBException(ce);
    }
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.getStates();
    }catch(Exception e){
      System.out.println("[Exception][ContactFacadeEJB.getStates] Exception Thrown: "+e);
      //e.printStackTrace();
    }
    return col;
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.getCountry();
    }catch(Exception e){
      System.out.println("[Exception][ContactFacadeEJB.getCountry] Exception Thrown: "+e);
      //e.printStackTrace();
    }
    return col;
View Full Code Here

TOP

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

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.