Package com.centraview.contact.helper

Examples of com.centraview.contact.helper.ContactHelperLocalHome


  public void updateAddress(int contactId,  AddressVO addressDet)
  {
    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);
    }
View Full Code Here


  public void updateRelateAddress(AddressVO addressVO, int contactType, 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.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.
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);
View Full Code Here

  public void createMOC(int contactId,  int contactType, MethodOfContactVO mocDet, int individualId)
  {
    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);
View Full Code Here

  public void updateMOC(MethodOfContactVO contactMethod, 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.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.
View Full Code Here

    HashMap  individualList = new HashMap();

    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);
View Full Code Here

    HashMap  entityList = new HashMap();

    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);
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);
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();
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();
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.