Examples of findByPrimaryKey()


Examples of com.centraview.account.payment.PaymentLocalHome.findByPrimaryKey()

    if (!CVUtility.isModuleVisible("Payment", userID, this.dataSource))
      throw new AuthorizationFailedException("Payment- updatePayment");
    try {
      InitialContext ic = CVUtility.getInitialContext();
      PaymentLocalHome home = (PaymentLocalHome) ic.lookup("local/Payment");
      PaymentLocal payment = home.findByPrimaryKey(new PaymentPK(paymentVO.getPaymentID(),
          this.dataSource));
      payment.setDataSource(this.dataSource);
      payment.setPaymentVO(paymentVO, userID);
    } catch (Exception e) {
      logger.error("[updatePayment]: Exception", e);
View Full Code Here

Examples of com.centraview.account.purchaseorder.PurchaseOrderLocalHome.findByPrimaryKey()

    if (!CVUtility.isModuleVisible("PurchaseOrder", userID, this.dataSource))
      throw new AuthorizationFailedException("PurchaseOrder- updatePurchaseOrder");
    try {
      InitialContext ic = CVUtility.getInitialContext();
      PurchaseOrderLocalHome home = (PurchaseOrderLocalHome) ic.lookup("local/PurchaseOrder");
      PurchaseOrderLocal invoice = home.findByPrimaryKey(new PurchaseOrderPK(poDetail
          .getPurchaseOrderId(), this.dataSource));
      invoice.setDataSource(this.dataSource);
      invoice.setPurchaseOrderVO(poDetail, userID);
    } catch (Exception e) {
      logger.error("[updatePurchaseOrder]: Exception", e);
View Full Code Here

Examples of com.centraview.account.purchaseorder.PurchaseOrderLocalHome.findByPrimaryKey()

    if (!CVUtility.isModuleVisible("PurchaseOrder", userID, this.dataSource))
      throw new AuthorizationFailedException("PurchaseOrder- deletePurchaseOrder");
    try {
      InitialContext ic = CVUtility.getInitialContext();
      PurchaseOrderLocalHome home = (PurchaseOrderLocalHome) ic.lookup("local/PurchaseOrder");
      PurchaseOrderLocal invoice = home
          .findByPrimaryKey(new PurchaseOrderPK(poID, this.dataSource));
      invoice.setDataSource(this.dataSource);
      invoice.remove();
    } catch (RemoveException re) {
      throw new EJBException(re);
View Full Code Here

Examples of com.centraview.account.purchaseorder.PurchaseOrderLocalHome.findByPrimaryKey()

      throw new AuthorizationFailedException("PurchaseOrder- getPurchaseOrder");
    PurchaseOrderVO invoiceVO = null;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      PurchaseOrderLocalHome home = (PurchaseOrderLocalHome) ic.lookup("local/PurchaseOrder");
      PurchaseOrderLocal invoice = home
          .findByPrimaryKey(new PurchaseOrderPK(poID, this.dataSource));
      invoice.setDataSource(this.dataSource);
      invoiceVO = invoice.getPurchaseOrderVO();
    } catch (Exception e) {
      logger.error("[getPurchaseOrderVO]: Exception", e);
View Full Code Here

Examples of com.centraview.common.source.SourceLocalHome.findByPrimaryKey()

  {
    try
    {
      InitialContext ic = CVUtility.getInitialContext();
      SourceLocalHome home = (SourceLocalHome)ic.lookup("local/Source");
      SourceLocal remote =  home.findByPrimaryKey(new SourcePK(sourceId,this.dataSource));
      remote.setSourceVO(svo);
    }catch(Exception e){
      System.out.println("[Exception][ContactFacadeEJB.updateSource] Exception Thrown: "+e);
      //e.printStackTrace();
    }
View Full Code Here

Examples of com.centraview.common.source.SourceLocalHome.findByPrimaryKey()

  public void deleteSource(int sourceId)
  {
    try{
      InitialContext ic = CVUtility.getInitialContext();
      SourceLocalHome home = (SourceLocalHome)ic.lookup("local/Source");
      SourceLocal remote =  home.findByPrimaryKey(new SourcePK(sourceId,this.dataSource));
      remote.remove();
    }catch(NamingException re){
      throw new EJBException(re);
    }catch(FinderException fe){
      System.out.println("[Exception][ContactFacadeEJB.deleteSource] Exception Thrown: "+fe);
View Full Code Here

Examples of com.centraview.contact.entity.EntityLocalHome.findByPrimaryKey()

    EntityVO ev = null;
    try
    {
      InitialContext ic = CVUtility.getInitialContext();
      EntityLocalHome home = (EntityLocalHome)ic.lookup("local/Entity");
      EntityLocal remote =  home.findByPrimaryKey(new EntityPK(entId,this.dataSource));
      CommonHelperLocalHome chhome= (CommonHelperLocalHome)ic.lookup("local/CommonHelper");
      CommonHelperLocal commonhelper= chhome.create();
      // Explicitly set the dataSource on the stateless Session Bean.
      commonhelper.setDataSource(this.dataSource);
      ev = remote.getEntityVOWithBasicReferences();
View Full Code Here

Examples of com.centraview.contact.entity.EntityLocalHome.findByPrimaryKey()

      throw new AuthorizationFailedException("Entity - updateEntity");
    }
    try {
        InitialContext ic = CVUtility.getInitialContext();
        EntityLocalHome home = (EntityLocalHome)ic.lookup("local/Entity");
        EntityLocal remote = home.findByPrimaryKey(new EntityPK(entityDetail.getContactID(), this.dataSource));
 
        ctx.getUserTransaction().begin();
        remote.setEntityVO(entityDetail);
        ctx.getUserTransaction().commit();
 
View Full Code Here

Examples of com.centraview.contact.entity.EntityLocalHome.findByPrimaryKey()

    }

    try{
      InitialContext ic = CVUtility.getInitialContext();
      EntityLocalHome home = (EntityLocalHome)ic.lookup("local/Entity");
      EntityLocal remote =  home.findByPrimaryKey(new EntityPK(entityId,this.dataSource));

      EntityVO ev = remote.getEntityVOWithBasicReferences();

      HashMap hmDetails=new HashMap();
      hmDetails.put("title",ev.getName());
View Full Code Here

Examples of com.centraview.contact.entity.EntityLocalHome.findByPrimaryKey()

        {
          HashMap entityList = (HashMap)iter.next();
          if (entityList != null)
          {
            int entityId = ((Number)entityList.get("EntityID")).intValue();
            EntityLocal remote =  home.findByPrimaryKey(new EntityPK(entityId,this.dataSource));
            ctx.getUserTransaction().begin();
            remote.remove();
            ctx.getUserTransaction().commit();
          }
        }
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.