From 3ad07bd33dd86e9cdffc58e26f8cacff1fee86dd Mon Sep 17 00:00:00 2001 From: "Redhuan D. Oon" Date: Sat, 6 Mar 2010 16:04:20 +0000 Subject: [PATCH] FR: [ 2214883 ] Remove SQL code and Replace for Query -- JUnit test pending Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=2214883 --- base/src/org/compiere/model/MWindow.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/base/src/org/compiere/model/MWindow.java b/base/src/org/compiere/model/MWindow.java index e0f957b653..357fed5ff3 100644 --- a/base/src/org/compiere/model/MWindow.java +++ b/base/src/org/compiere/model/MWindow.java @@ -21,6 +21,7 @@ import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList; +import java.util.List; import java.util.Properties; import java.util.logging.Level; @@ -192,7 +193,9 @@ public class MWindow extends X_AD_Window String sql = "SELECT * FROM AD_WF_Node"; if (whereClause != null && whereClause.length() > 0) sql += " WHERE " + whereClause; - ArrayList list = new ArrayList(); + + List list = new Query(ctx,X_AD_WF_Node.Table_Name,whereClause,trxName) + .list(); PreparedStatement pstmt = null; ResultSet rs = null; try