Package com.centraview.contact.helper

Examples of com.centraview.contact.helper.ContactHelperLocalHome


   */
  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


    dl.executeUpdate();

    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

      historyInfo.put("recordName", individualDetail.getFirstName() + " " + individualDetail.getMiddleName() + " " + individualDetail.getLastName());
      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

          } else {
            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

      }
      dl.clearParameters();

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

        if (!basicReferanceFilled) {
          getIndividualVOWithBasicReferences();
        }
View Full Code Here

          CustomFieldVO custFieldVO = (CustomFieldVO)custfieldVec.get(i);
          custFieldVO.setRecordID(entId);
          custRemote.updateCustomField(custFieldVO);
        }

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

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

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

      // Getting AddressVO from Contact Helper Ejb //
      // (userID,contactID,contactType
      // TODO: Hardcoded UserId to be removed Later (use
View Full Code Here

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

      // TODO: HARDCODED USER ID!!! (use this.operationIndividualID)
      Vector addVOs = remote.getCustomerPrimaryAddressForContact(1, this.indVo.getContactID(), this.indVo.getContactType());
      //this.indVo.setPrimaryAddress(addVO);
View Full Code Here

    CVDal dl = new CVDal(dataSource);

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

      if (! basicReferencesFilled)
      {
        getEntityVOWithBasicReferences();
View Full Code Here

   */
  public void setJurisdictionForAddress(int addressID, int jurisdictionID)
  {
    try {
      InitialContext ic = CVUtility.getInitialContext();
      ContactHelperLocalHome home = (ContactHelperLocalHome)ic.lookup("local/ContactHelper");
      ContactHelperLocal remote = home.create();
      remote.setDataSource(this.dataSource);
      remote.setJurisdictionForAddress(addressID, jurisdictionID);
    } catch (Exception e) {
      System.out
          .println("[Exception][AccountFacadeEJB.setJurisdictionForAddress] Exception Thrown: " + e);
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.