Package com.centraview.account.accountfacade

Examples of com.centraview.account.accountfacade.AccountFacadeLocal


        */
       public ArrayList getPayments(HashMap params, int indId)
       {
         PaymentVO paymentVO = null;
         ArrayList payments = new ArrayList();
         AccountFacadeLocal paymentL = null;

         try
         {
           String syncDatePrKeyField[] = {""};
           Timestamp lastSyncDate = (Timestamp)params.get("lastSyncDate");
           String operation = (String)params.get("Operation");
           InitialContext ic = CVUtility.getInitialContext();
           AccountFacadeLocalHome home = (AccountFacadeLocalHome)ic.lookup("local/AccountFacade");
           paymentL = home.create();
           paymentL.setDataSource(this.dataSource);

           Collection col = getList("Payment",lastSyncDate,operation,syncDatePrKeyField);
           Object ids[] = col.toArray();
           HashMap hm = new HashMap();
           int size = ids.length;

           for(int i=0;i<size;i++)
           {
             hm = (HashMap)ids[i];
             paymentVO = paymentL.getPaymentVO(((Long)hm.get(syncDatePrKeyField[0])).intValue(),indId);
             payments.add(paymentVO);
           }
         }catch(Exception e)
         {
           logger.debug("Error in getting PaymentVos : "+e);
View Full Code Here


        * @return boolean status of operation
        */
       public boolean addPayments(ArrayList PVOs, int indId)
       {
         PaymentVO pvo = null;
         AccountFacadeLocal paymentL = null;

         try
         {
           InitialContext ic = CVUtility.getInitialContext();
           AccountFacadeLocalHome home = (AccountFacadeLocalHome)ic.lookup("local/AccountFacade");
           paymentL = home.create();
           paymentL.setDataSource(this.dataSource);

           int size = PVOs.size();

           for ( int i=0;i<size;i++)
           {
             pvo = (PaymentVO) PVOs.get(i);
             pvo = paymentL.createPayment(pvo,indId);
             logger.info("Added " + pvo.getPaymentID() + " payment record");
           }
         }catch(Exception e)
         {
           logger.debug("Error in adding Payments : "+e);
View Full Code Here

         String extId = "";
         int intId = 0;

         Iterator it = arl.iterator();

         AccountFacadeLocal helperL = null;
         try
         {
           InitialContext ic = CVUtility.getInitialContext();
           AccountFacadeLocalHome home = (AccountFacadeLocalHome ) ic.lookup("local/AccountFacade");
           helperL = home.create();

           while(it.hasNext())
           {
             ivo = (PaymentVO)it.next();
             extId = ivo.getExternalID();
             intId = this.getCVidForExtid(modulename,extId);
             helperL.deleteInvoice(indId, intId);
             logger.info("Payment " + intId +" object deleted");
           }

         }catch(Exception e)
         {
View Full Code Here

TOP

Related Classes of com.centraview.account.accountfacade.AccountFacadeLocal

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.