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:
parent
6bdd1109b3
commit
bf8ee3d99e
|
@ -23,7 +23,7 @@ import java.sql.ResultSet;
|
||||||
import java.sql.SQLException;
|
import java.sql.SQLException;
|
||||||
import java.sql.Timestamp;
|
import java.sql.Timestamp;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Collection;
|
import java.util.List;
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
|
|
||||||
|
@ -683,7 +683,7 @@ public class MCost extends X_M_Cost
|
||||||
s_log.config(product.getName());
|
s_log.config(product.getName());
|
||||||
|
|
||||||
// Cost Elements
|
// Cost Elements
|
||||||
Collection <MCostElement> ces = MCostElement.getCostElementsWithCostingMethods(product);
|
List <MCostElement> ces = MCostElement.getCostElementsWithCostingMethods(product);
|
||||||
|
|
||||||
MAcctSchema[] mass = MAcctSchema.getClientAcctSchema(product.getCtx(),
|
MAcctSchema[] mass = MAcctSchema.getClientAcctSchema(product.getCtx(),
|
||||||
product.getAD_Client_ID(), product.get_TrxName());
|
product.getAD_Client_ID(), product.get_TrxName());
|
||||||
|
@ -751,7 +751,7 @@ public class MCost extends X_M_Cost
|
||||||
{
|
{
|
||||||
s_log.config(product.getName());
|
s_log.config(product.getName());
|
||||||
// Cost Elements
|
// Cost Elements
|
||||||
Collection <MCostElement> ces = MCostElement.getCostElementsWithCostingMethods(product);
|
List <MCostElement> ces = MCostElement.getCostElementsWithCostingMethods(product);
|
||||||
|
|
||||||
MAcctSchema[] mass = MAcctSchema.getClientAcctSchema(product.getCtx(),
|
MAcctSchema[] mass = MAcctSchema.getClientAcctSchema(product.getCtx(),
|
||||||
product.getAD_Client_ID(), product.get_TrxName());
|
product.getAD_Client_ID(), product.get_TrxName());
|
||||||
|
|
|
@ -17,14 +17,12 @@
|
||||||
package org.compiere.model;
|
package org.compiere.model;
|
||||||
|
|
||||||
import java.sql.ResultSet;
|
import java.sql.ResultSet;
|
||||||
import java.util.Collection;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
|
|
||||||
import org.compiere.util.CCache;
|
import org.compiere.util.CCache;
|
||||||
import org.compiere.util.CLogger;
|
import org.compiere.util.CLogger;
|
||||||
import org.compiere.util.DB;
|
import org.compiere.util.DB;
|
||||||
import org.compiere.util.Env;
|
|
||||||
import org.compiere.util.Msg;
|
import org.compiere.util.Msg;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -111,7 +109,7 @@ public class MCostElement extends X_M_CostElement
|
||||||
* @param po parent
|
* @param po parent
|
||||||
* @return cost element array
|
* @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";
|
final String whereClause = "CostingMethod IS NOT NULL";
|
||||||
return new Query(po.getCtx(),MCostElement.Table_Name,whereClause,po.get_TrxName())
|
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
|
* @param trxName transaction
|
||||||
* @return array cost elements
|
* @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=?";
|
final String whereClause = "CostingMethod=?";
|
||||||
return new Query(ctx, Table_Name, whereClause, null)
|
return new Query(ctx, Table_Name, whereClause, null)
|
||||||
|
|
Loading…
Reference in New Issue