From 96b1d136c270c5be35b006dd62efc7e1d332586e Mon Sep 17 00:00:00 2001 From: "Redhuan D. Oon" Date: Mon, 25 Jun 2007 17:02:25 +0000 Subject: [PATCH] reversing class to static as no other call except from Posterita (as Mathias recommended in SF/Posterita) --- base/src/org/compiere/model/MBPartnerLocation.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/base/src/org/compiere/model/MBPartnerLocation.java b/base/src/org/compiere/model/MBPartnerLocation.java index e99768ecf3..5f1e00fe73 100644 --- a/base/src/org/compiere/model/MBPartnerLocation.java +++ b/base/src/org/compiere/model/MBPartnerLocation.java @@ -36,18 +36,18 @@ public class MBPartnerLocation extends X_C_BPartner_Location * @param C_BPartner_ID bp * @return array of locations */ - public MBPartnerLocation[] getForBPartner (Properties ctx, int C_BPartner_ID) + public static MBPartnerLocation[] getForBPartner (Properties ctx, int C_BPartner_ID) { ArrayList list = new ArrayList(); String sql = "SELECT * FROM C_BPartner_Location WHERE C_BPartner_ID=?"; PreparedStatement pstmt = null; try { - pstmt = DB.prepareStatement (sql, trxName); + pstmt = DB.prepareStatement (sql, null); pstmt.setInt (1, C_BPartner_ID); ResultSet rs = pstmt.executeQuery (); while (rs.next ()) - list.add(new MBPartnerLocation(ctx, rs, trxName)); + list.add(new MBPartnerLocation(ctx, rs, null)); rs.close (); pstmt.close (); pstmt = null;