Related to bug 29030: Code review.
authorUnai Martirena <unai.martirena@openbravo.com>
Tue, 24 Feb 2015 19:00:32 +0100
changeset 26069 f24821411d25
parent 26068 9b796d39efb6
child 26070 9645a99f1336
Related to bug 29030: Code review.

Fixed the copyright.
Add a clear on every 100 iterations of bankLinesSR Scrollable Results.
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/actionHandler/MatchStatementOnLoadActionHandler.java
--- a/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/actionHandler/MatchStatementOnLoadActionHandler.java	Tue Feb 24 18:56:03 2015 +0100
+++ b/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/actionHandler/MatchStatementOnLoadActionHandler.java	Tue Feb 24 19:00:32 2015 +0100
@@ -11,7 +11,7 @@
  * under the License.
  * The Original Code is Openbravo ERP.
  * The Initial Developer of the Original Code is Openbravo SLU
- * All portions are Copyright (C) 2014 Openbravo SLU
+ * All portions are Copyright (C) 2014-2015 Openbravo SLU
  * All Rights Reserved.
  * Contributor(s):  ______________________________________.
  ************************************************************************
@@ -130,6 +130,9 @@
       while (bankLinesSR.next()) {
         final FIN_BankStatementLine bankStatementLine = (FIN_BankStatementLine) bankLinesSR.get(0);
         bankLines.add(bankStatementLine.getId());
+        if ((i % 100) == 0) {
+          OBDal.getInstance().getSession().clear();
+        }
         i++;
       }
       bankLinesSR.close();