Package com.centraview.contact.helper

Examples of com.centraview.contact.helper.ContactHelperLocal.deleteMOC()


    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


              // updating that record at this time.
              remote.addMOC(mocObj, entId, cntType, modBy, false);
            } else if (mocObj.isUpdated()) {
              remote.updateMOC(mocObj, entId, modBy, false); // don't update
            } else if (mocObj.isDelete()) {
              remote.deleteMOC(mocID, entId, modBy, false); // don't update
            }
          }
        } // end if (mocVOs != null)

        IndividualVO newInd = this.envo.getIndividualVO();
View Full Code Here

            remote.updateMOC(mocObj, indVo.getContactID(), indVo.getModifiedBy(), false);
          } else if (mocObj.isDelete()) {
            // We are passing the Extra boolean value to the method. if the
            // boolean value is false then we wil not update the individual
            // table
            remote.deleteMOC(mocID, indVo.getContactID(), indVo.getModifiedBy(), false);
          }
        }

        //this is to fill all the system fields like created on and modified on
        // date
View Full Code Here

        Iterator mi = this.indVo.getMOC().iterator();
        while (mi.hasNext()) {
          MethodOfContactVO mocVO = (MethodOfContactVO)mi.next();
          // We are passing the Extra boolean value to the method. if the
          // boolean value is false then we wil not update the individual table
          remote.deleteMOC(mocVO.getMocID(), this.indVo.getContactID(), this.operationIndividualId, false);
        }
        //ALLSQL.put("contact.deleteindividual", "delete from individual where
        // individualID = ? ");

        //Delete Custom Field
View Full Code Here

      {
        MethodOfContactVO mocVO = (MethodOfContactVO)mi.next();
        // The boolean value false tells the ContactHelperEJB to NOT
        // update the 'entity.Modified' field, since we are already
        // updating that record at this time.
        remote.deleteMOC(mocVO.getMocID(), this.envo.getContactID(), 1, false);
      }


      dl.setSqlQuery("SELECT IndividualID AS id FROM individual WHERE individual.Entity = ?");
      dl.setInt(1,this.envo.getContactID());
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.