From bf8ee3d99e41ac9992b1c3f3c6e55d818e2f6ea8 Mon Sep 17 00:00:00 2001 From: vpj-cd Date: Thu, 6 May 2010 20:37:41 +0000 Subject: [PATCH] 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 --- base/src/org/compiere/model/MCost.java | 6 +++--- base/src/org/compiere/model/MCostElement.java | 6 ++---- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/base/src/org/compiere/model/MCost.java b/base/src/org/compiere/model/MCost.java index 8f35ccc0c8..1ed0144002 100644 --- a/base/src/org/compiere/model/MCost.java +++ b/base/src/org/compiere/model/MCost.java @@ -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 ces = MCostElement.getCostElementsWithCostingMethods(product); + List 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 ces = MCostElement.getCostElementsWithCostingMethods(product); + List ces = MCostElement.getCostElementsWithCostingMethods(product); MAcctSchema[] mass = MAcctSchema.getClientAcctSchema(product.getCtx(), product.getAD_Client_ID(), product.get_TrxName()); diff --git a/base/src/org/compiere/model/MCostElement.java b/base/src/org/compiere/model/MCostElement.java index 2b53c37c8b..83390b379a 100644 --- a/base/src/org/compiere/model/MCostElement.java +++ b/base/src/org/compiere/model/MCostElement.java @@ -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 getCostElementsWithCostingMethods (PO po) + public static List 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 getByCostingMethod (Properties ctx, String CostingMethod) + public static List getByCostingMethod (Properties ctx, String CostingMethod) { final String whereClause = "CostingMethod=?"; return new Query(ctx, Table_Name, whereClause, null)