FR: [ 2214883 ] Remove SQL code and Replace for Query

more mistakes and thanks again to Trifon for pointing out
This commit is contained in:
Redhuan D. Oon 2008-11-03 15:28:28 +00:00
parent 6e993868bf
commit 7155d154fe
1 changed files with 2 additions and 2 deletions

View File

@ -84,7 +84,7 @@ public class MAlert extends X_AD_Alert
return m_rules;
//FR: [ 2214883 ] Remove SQL code and Replace for Query - red1
String whereClause = "AD_Alert_ID=?";
List <MAchievement> list = new Query(getCtx(),MAlert.Table_Name,whereClause.toString(),null)
List <MAlertRule> list = new Query(getCtx(),MAlertRule.Table_Name,whereClause.toString(),null)
.setParameters(new Object[]{getAD_Alert_ID()}).setOrderBy("Name, AD_AlertRule_ID").list();
//
m_rules = new MAlertRule[list.size ()];
@ -103,7 +103,7 @@ public class MAlert extends X_AD_Alert
return m_recipients;
//FR: [ 2214883 ] Remove SQL code and Replace for Query - red1
String whereClause = "AD_Alert_ID=?";
List <MAlertRecipient> list = new Query(getCtx(),MAlert.Table_Name,whereClause.toString(),null)
List <MAlertRecipient> list = new Query(getCtx(),MAlertRecipient.Table_Name,whereClause.toString(),null)
.setParameters(new Object[]{getAD_Alert_ID()}).list();
//
m_recipients = new MAlertRecipient[list.size ()];