parent
1904c3384f
commit
8c3b57ab2c
|
@ -94,9 +94,9 @@ public class MProduct extends X_M_Product
|
||||||
* @param ctx Context
|
* @param ctx Context
|
||||||
* @param upc The upc to look for
|
* @param upc The upc to look for
|
||||||
* @return List of MProduct
|
* @return List of MProduct
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
public static List<MProduct> getByUPC(Properties ctx, String upc, String trxName) {
|
public static List<MProduct> getByUPC(Properties ctx, String upc, String trxName)
|
||||||
|
{
|
||||||
String whereClause = "AD_Client_ID=? AND UPC=?";
|
String whereClause = "AD_Client_ID=? AND UPC=?";
|
||||||
Query q = new Query(ctx, Table_Name, whereClause, trxName);
|
Query q = new Query(ctx, Table_Name, whereClause, trxName);
|
||||||
q.setParameters(new Object[]{Env.getAD_Client_ID(ctx), upc});
|
q.setParameters(new Object[]{Env.getAD_Client_ID(ctx), upc});
|
||||||
|
@ -116,7 +116,7 @@ public class MProduct extends X_M_Product
|
||||||
} // isProductStocked
|
} // isProductStocked
|
||||||
|
|
||||||
/** Cache */
|
/** Cache */
|
||||||
private static CCache<Integer,MProduct> s_cache = new CCache<Integer,MProduct>("M_Product", 40, 5); // 5 minutes
|
private static CCache<Integer,MProduct> s_cache = new CCache<Integer,MProduct>(Table_Name, 40, 5); // 5 minutes
|
||||||
|
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
* Standard Constructor
|
* Standard Constructor
|
||||||
|
|
Loading…
Reference in New Issue