parameterizing..
This commit is contained in:
parent
d6e0af4637
commit
0713cf8437
|
@ -1,15 +1,15 @@
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
* The contents of this file are subject to the Compiere License Version 1.1
|
* Product: Adempiere ERP & CRM Smart Business Solution *
|
||||||
* ("License"); You may not use this file except in compliance with the License
|
* This program is free software; you can redistribute it and/or modify it *
|
||||||
* You may obtain a copy of the License at http://www.compiere.org/license.html
|
* under the terms version 2 of the GNU General Public License as published *
|
||||||
* Software distributed under the License is distributed on an "AS IS" basis,
|
* by the Free Software Foundation. This program is distributed in the hope *
|
||||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
|
* that it will be useful, but WITHOUT ANY WARRANTY; without even the implied *
|
||||||
* the specific language governing rights and limitations under the License.
|
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
|
||||||
* The Original Code is Compiere ERP & CRM Business Solution
|
* See the GNU General Public License for more details. *
|
||||||
* The Initial Developer of the Original Code is Jorg Janke and ComPiere, Inc.
|
* You should have received a copy of the GNU General Public License along *
|
||||||
* Portions created by Jorg Janke are Copyright (C) 1999-2003 Jorg Janke, parts
|
* with this program; if not, write to the Free Software Foundation, Inc., *
|
||||||
* created by ComPiere are Copyright (C) ComPiere, Inc.; All Rights Reserved.
|
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
|
||||||
* Contributor(s): ______________________________________.
|
* Author - Jorg Janke, Compiere *
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
package org.compiere.model;
|
package org.compiere.model;
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@ public class MRefList_Ext extends MRefList
|
||||||
{
|
{
|
||||||
String AD_Language = Env.getAD_Language(ctx);
|
String AD_Language = Env.getAD_Language(ctx);
|
||||||
String key = AD_Language + "_" + ListName + "_" + Value;
|
String key = AD_Language + "_" + ListName + "_" + Value;
|
||||||
String retValue = (String)s_cache.get(key);
|
String retValue = s_cache.get(key);
|
||||||
if (retValue != null)
|
if (retValue != null)
|
||||||
return retValue;
|
return retValue;
|
||||||
|
|
||||||
|
@ -98,7 +98,7 @@ public class MRefList_Ext extends MRefList
|
||||||
|
|
||||||
|
|
||||||
/** Value Cache */
|
/** Value Cache */
|
||||||
private static CCache s_cache = new CCache("AD_Ref_List", 20);
|
private static CCache<String, String> s_cache = new CCache<String, String>("AD_Ref_List", 20);
|
||||||
|
|
||||||
|
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
|
|
Loading…
Reference in New Issue