Change the Collection to List based in ABP

kind regards
Victor Perez
www.e-evolution.com
Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=2997873
This commit is contained in:
vpj-cd 2010-05-06 20:37:41 +00:00
parent 6bdd1109b3
commit bf8ee3d99e
2 changed files with 5 additions and 7 deletions

View File

@ -23,7 +23,7 @@ import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Properties;
import java.util.logging.Level;
@ -683,7 +683,7 @@ public class MCost extends X_M_Cost
s_log.config(product.getName());
// Cost Elements
Collection <MCostElement> ces = MCostElement.getCostElementsWithCostingMethods(product);
List <MCostElement> ces = MCostElement.getCostElementsWithCostingMethods(product);
MAcctSchema[] mass = MAcctSchema.getClientAcctSchema(product.getCtx(),
product.getAD_Client_ID(), product.get_TrxName());
@ -751,7 +751,7 @@ public class MCost extends X_M_Cost
{
s_log.config(product.getName());
// Cost Elements
Collection <MCostElement> ces = MCostElement.getCostElementsWithCostingMethods(product);
List <MCostElement> ces = MCostElement.getCostElementsWithCostingMethods(product);
MAcctSchema[] mass = MAcctSchema.getClientAcctSchema(product.getCtx(),
product.getAD_Client_ID(), product.get_TrxName());

View File

@ -17,14 +17,12 @@
package org.compiere.model;
import java.sql.ResultSet;
import java.util.Collection;
import java.util.List;
import java.util.Properties;
import org.compiere.util.CCache;
import org.compiere.util.CLogger;
import org.compiere.util.DB;
import org.compiere.util.Env;
import org.compiere.util.Msg;
/**
@ -111,7 +109,7 @@ public class MCostElement extends X_M_CostElement
* @param po parent
* @return cost element array
*/
public static Collection<MCostElement> getCostElementsWithCostingMethods (PO po)
public static List<MCostElement> getCostElementsWithCostingMethods (PO po)
{
final String whereClause = "CostingMethod IS NOT NULL";
return new Query(po.getCtx(),MCostElement.Table_Name,whereClause,po.get_TrxName())
@ -204,7 +202,7 @@ public class MCostElement extends X_M_CostElement
* @param trxName transaction
* @return array cost elements
**/
public static Collection<MCostElement> getByCostingMethod (Properties ctx, String CostingMethod)
public static List<MCostElement> getByCostingMethod (Properties ctx, String CostingMethod)
{
final String whereClause = "CostingMethod=?";
return new Query(ctx, Table_Name, whereClause, null)