Package com.centraview.account.helper

Examples of com.centraview.account.helper.AccountHelperLocal


         {
           pvo = (PaymentMethodVO)it.next();
           ids.add(new Integer(pvo.getExternalID()));
         }

         AccountHelperLocal helperL = null;
         try
         {
           InitialContext ic = CVUtility.getInitialContext();
           AccountHelperLocalHome home = (AccountHelperLocalHome ) ic.lookup("local/AccountHelper");
           helperL = home.create();
           delIds = helperL.deleteObjects(modulename, ids);
           logger.info("PaymentMethods " + delIds +" objects deleted");
         }catch(Exception e)
         {
           logger.debug("Error in deleting PaymentMethod : "+e);
           e.printStackTrace();
View Full Code Here


        * @return boolean status of operation
        */
       public boolean addGLAccounts(ArrayList PVOs, int indId)
       {
         GLAccountVO avo = null;
         AccountHelperLocal helperL  = null;
         try
         {
           InitialContext ic = CVUtility.getInitialContext();
           AccountHelperLocalHome home = (AccountHelperLocalHome ) ic.lookup("local/AccountHelper");
           helperL = home.create();

           int size = PVOs.size();
           int cvid = 0;

           for ( int i=0;i<size;i++)
           {
             avo = (GLAccountVO)PVOs.get(i);
             cvid = this.getCVidForExtid("GLAccount",avo.getExternalID());
             if (cvid == 0){
               helperL.addGLAccount(avo);
             }
             logger.info("Added " + avo.getTitle() + " glaccount record");
           }
         }catch(Exception e)
         {
View Full Code Here

        */
       public ArrayList getGLAccounts(HashMap params)
       {
         Vector glaArl = new Vector();
         ArrayList arl = new ArrayList();
         AccountHelperLocal helperL = null;
         try
         {
           InitialContext ic = CVUtility.getInitialContext();
           AccountHelperLocalHome home = (AccountHelperLocalHome ) ic.lookup("local/AccountHelper");
           helperL = home.create();
           glaArl = helperL.getNewGLAccounts();

           Iterator it = glaArl.iterator();
           while(it.hasNext())
           {
             arl.add(it.next());
View Full Code Here

         {
           pvo = (GLAccountVO)it.next();
           ids.add(new Integer(pvo.getExternalID()));
         }

         AccountHelperLocal helperL = null;
         try
         {
           InitialContext ic = CVUtility.getInitialContext();
           AccountHelperLocalHome home = (AccountHelperLocalHome ) ic.lookup("local/AccountHelper");
           helperL = home.create();
           delIds = helperL.deleteObjects(modulename, ids);
           logger.info("GLAccount " + delIds +" objects deleted");
         }catch(Exception e)
         {
           logger.debug("Error in deleting GL Accounts : "+e);
           e.printStackTrace();
View Full Code Here

        */
       public ArrayList getPaymentMethods(HashMap params)
       {
         Vector pmethodsArl = new Vector();
         ArrayList arl = new ArrayList();
         AccountHelperLocal helperL = null;
         try
         {
           InitialContext ic = CVUtility.getInitialContext();
           AccountHelperLocalHome home = (AccountHelperLocalHome ) ic.lookup("local/AccountHelper");
           helperL = home.create();
           pmethodsArl = helperL.getNewPaymentMethods();

           Iterator it = pmethodsArl.iterator();
           while(it.hasNext())
           {
             arl.add(it.next());
View Full Code Here

        * @return boolean status of operation
        */
       public boolean addPaymentMethods(ArrayList PVOs, int indId)
       {
         PaymentMethodVO pvo = null;
         AccountHelperLocal helperL  = null;
         try
         {
           InitialContext ic = CVUtility.getInitialContext();
           AccountHelperLocalHome home = (AccountHelperLocalHome ) ic.lookup("local/AccountHelper");
           helperL = home.create();

           int size = PVOs.size();
           int cvid = 0;

           for ( int i=0;i<size;i++)
           {
             pvo = (PaymentMethodVO)PVOs.get(i);
             cvid = this.getCVidForExtid("PaymentMethod",pvo.getExternalID());
             if (cvid == 0){
               helperL.savePaymentMethod(pvo);
             }
             logger.info("Added " + pvo.getTitle() + " paymentmethod record");
           }
         }catch(Exception e)
         {
View Full Code Here

TOP

Related Classes of com.centraview.account.helper.AccountHelperLocal

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.