FR: [ 2214883 ] Remove SQL code and Replace for Query (implementing review by Carlos, Hengsin and Victor - call to interface rather than model class for tablename. JUnit tests carried out again before commit

Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=2214883
This commit is contained in:
Redhuan D. Oon 2010-02-26 02:51:35 +00:00
parent fa569115e1
commit 8cd9f28474
4 changed files with 4 additions and 4 deletions

View File

@ -127,7 +127,7 @@ public class MPInstance extends X_AD_PInstance
return m_parameters;
//FR: [ 2214883 ] Remove SQL code and Replace for Query - red1
String whereClause = "AD_PInstance_ID=?";
List <MPInstancePara> list = new Query(getCtx(), MPInstancePara.Table_Name, whereClause, null) // @TODO: Review implications of using transaction
List <MPInstancePara> list = new Query(getCtx(), I_AD_PInstance_Para.Table_Name, whereClause, null) // @TODO: Review implications of using transaction
.setParameters(getAD_PInstance_ID())
.list();

View File

@ -85,7 +85,7 @@ public class MPaySelection extends X_C_PaySelection
}
//FR: [ 2214883 ] Remove SQL code and Replace for Query - red1
String whereClause = "C_PaySelection_ID=?";
List <MPaySelectionLine> list = new Query(getCtx(), MPaySelectionLine.Table_Name, whereClause, get_TrxName())
List <MPaySelectionLine> list = new Query(getCtx(), I_C_PaySelectionLine.Table_Name, whereClause, get_TrxName())
.setParameters(getC_PaySelection_ID())
.setOrderBy("Line")
.list()

View File

@ -93,7 +93,7 @@ public final class MPayment extends X_C_Payment
{
//FR: [ 2214883 ] Remove SQL code and Replace for Query - red1
String whereClause = "C_BPartner_ID=?";
List <MPayment> list = new Query(ctx, MPayment.Table_Name, whereClause, trxName)
List <MPayment> list = new Query(ctx, I_C_Payment.Table_Name, whereClause, trxName)
.setParameters(C_BPartner_ID)
.list();

View File

@ -61,7 +61,7 @@ public class MProductBOM extends X_M_Product_BOM
{
//FR: [ 2214883 ] Remove SQL code and Replace for Query - red1
final String whereClause = "M_Product_ID=?";
List <MProductBOM> list = new Query(ctx, MProductBOM.Table_Name, whereClause, trxName)
List <MProductBOM> list = new Query(ctx, I_M_Product_BOM.Table_Name, whereClause, trxName)
.setParameters(M_Product_ID)
.setOrderBy("Line")
.list();