Package com.centraview.contact.individual

Examples of com.centraview.contact.individual.IndividualLocalHome.create()


      InitialContext ic = CVUtility.getInitialContext();
      IndividualLocalHome home = (IndividualLocalHome)ic.lookup("local/Individual");

      ctx.getUserTransaction().begin();

      IndividualLocal remote =  home.create(indDetail,actionUserId,this.dataSource);
      IndividualVO vo = remote.getIndividualVOBasic();
      indID = vo.getContactID();

      ctx.getUserTransaction().commit();
View Full Code Here


      IndividualVO individualVO = entityVO.getIndividualVO();
      if (individualVO != null && individualVO.getContactID() <= 0) {
        IndividualLocalHome ih = (IndividualLocalHome)ic.lookup("local/Individual");
        individualVO.setEntityID(newEntityID);
        ih.create(individualVO, individualID, dataSource);
      }
      // Save CustomFields from the Form (which is only the 3 on the form)
      CustomFieldLocalHome custHome = (CustomFieldLocalHome)ic.lookup("local/CustomField");
      CustomFieldLocal custRemote = custHome.create();
      custRemote.setDataSource(dataSource);
View Full Code Here

        if (newInd != null) {
          if (newInd.getContactID() == 0) {
            // if the ID is zero there wasn't a primary contact for this entity, so create one.
            IndividualLocalHome ih = (IndividualLocalHome)ic.lookup("local/Individual");
            newInd.setEntityID(entId);
            ih.create(newInd, modBy, this.dataSource);
          } else {
            // otherwise the changePrimaryContact method does a bunch of stuff.
            this.changePrimaryContact();
          }
        }
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.