details: https://code.openbravo.com/erp/devel/pi/rev/1d904ddc173b
changeset: 24229:1d904ddc173b
user: Unai Martirena <unai.martirena <at> openbravo.com>
date: Mon Aug 04 10:17:18 2014 +0200
summary: Fixes bug 27269: Compilation of modulescripts fails in APRM module
diffstat:
modules/org.openbravo.advpaymentmngt/src-util/modulescript/src/src/org/openbravo/advpaymentmngt/modulescript/UpdateReconciliationStatementProcessedValueData.java
| 46 +---------
1 files changed, 2 insertions(+), 44 deletions(-)
diffs (116 lines):
diff -r 5051c9b57bb4 -r 1d904ddc173b
modules/org.openbravo.advpaymentmngt/src-util/modulescript/src/src/org/openbravo/advpaymentmngt/modulescript/UpdateReconciliationStatementProcessedValueData.java
---
a/modules/org.openbravo.advpaymentmngt/src-util/modulescript/src/src/org/openbravo/advpaymentmngt/modulescript/UpdateReconciliationStatementProcessedValueData.java
Mon Aug 11 14:02:52 2014 +0200
+++
b/modules/org.openbravo.advpaymentmngt/src-util/modulescript/src/src/org/openbravo/advpaymentmngt/modulescript/UpdateReconciliationStatementProcessedValueData.java
Mon Aug 04 10:17:18 2014 +0200
@@ -10,8 +10,6 @@
import org.openbravo.data.FieldProvider;
import org.openbravo.database.ConnectionProvider;
import org.openbravo.data.UtilSql;
-import org.openbravo.service.db.QueryTimeOutUtil;
-import org.openbravo.database.SessionInfo;
import java.util.*;
class UpdateReconciliationStatementProcessedValueData implements FieldProvider
{
@@ -33,18 +31,10 @@
}
public static UpdateReconciliationStatementProcessedValueData[]
select(ConnectionProvider connectionProvider) throws ServletException {
- return select((String)null, connectionProvider, 0, 0);
- }
-
- public static UpdateReconciliationStatementProcessedValueData[]
select(String queryType, ConnectionProvider connectionProvider) throws
ServletException {
- return select(queryType, connectionProvider, 0, 0);
+ return select(connectionProvider, 0, 0);
}
public static UpdateReconciliationStatementProcessedValueData[]
select(ConnectionProvider connectionProvider, int firstRegister, int
numberRegisters) throws ServletException {
- return select((String)null, connectionProvider);
- }
-
- public static UpdateReconciliationStatementProcessedValueData[]
select(String queryType, ConnectionProvider connectionProvider, int
firstRegister, int numberRegisters) throws ServletException {
String strSql = "";
strSql = strSql +
" select 1 as name from dual";
@@ -55,11 +45,6 @@
try {
st = connectionProvider.getPreparedStatement(strSql);
- String profile = queryType;
- if (profile == null || profile.isEmpty()) {
- profile = SessionInfo.getQueryProfile();
- }
- QueryTimeOutUtil.getInstance().setQueryTimeOut(st, profile);
result = st.executeQuery();
long countRecord = 0;
@@ -99,10 +84,6 @@
}
public static int updateFinancialAccount(ConnectionProvider
connectionProvider) throws ServletException {
- return updateFinancialAccount((String)null, connectionProvider);
- }
-
- public static int updateFinancialAccount(String queryType,
ConnectionProvider connectionProvider) throws ServletException {
String strSql = "";
strSql = strSql +
" UPDATE FIN_FINANCIAL_ACCOUNT SET EM_APRM_MatchTrans_Force =
em_aprm_matchtransactions";
@@ -112,11 +93,6 @@
try {
st = connectionProvider.getPreparedStatement(strSql);
- String profile = queryType;
- if (profile == null || profile.isEmpty()) {
- profile = SessionInfo.getQueryProfile();
- }
- QueryTimeOutUtil.getInstance().setQueryTimeOut(st, profile);
updateCount = st.executeUpdate();
} catch(SQLException e){
@@ -136,10 +112,6 @@
}
public static int updateStatement(ConnectionProvider connectionProvider)
throws ServletException {
- return updateStatement((String)null, connectionProvider);
- }
-
- public static int updateStatement(String queryType, ConnectionProvider
connectionProvider) throws ServletException {
String strSql = "";
strSql = strSql +
" UPDATE FIN_BANKSTATEMENT SET em_aprm_process_bs_force =
em_aprm_process_bs ";
@@ -149,11 +121,6 @@
try {
st = connectionProvider.getPreparedStatement(strSql);
- String profile = queryType;
- if (profile == null || profile.isEmpty()) {
- profile = SessionInfo.getQueryProfile();
- }
- QueryTimeOutUtil.getInstance().setQueryTimeOut(st, profile);
updateCount = st.executeUpdate();
} catch(SQLException e){
@@ -173,24 +140,15 @@
}
public static int updateReconciliation(ConnectionProvider
connectionProvider) throws ServletException {
- return updateReconciliation((String)null, connectionProvider);
- }
-
- public static int updateReconciliation(String queryType, ConnectionProvider
connectionProvider) throws ServletException {
String strSql = "";
strSql = strSql +
- " UPDATE FIN_BANKSTATEMENT SET em_aprm_process_rec_force =
em_aprm_process_rec ";
+ " UPDATE FIN_RECONCILIATION SET EM_APRM_Process_Rec_Force =
em_aprm_process_rec ";
int updateCount = 0;
PreparedStatement st = null;
try {
st = connectionProvider.getPreparedStatement(strSql);
- String profile = queryType;
- if (profile == null || profile.isEmpty()) {
- profile = SessionInfo.getQueryProfile();
- }
- QueryTimeOutUtil.getInstance().setQueryTimeOut(st, profile);
updateCount = st.executeUpdate();
} catch(SQLException e){
------------------------------------------------------------------------------
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits