Compiere 3.1

org.compiere.model
Class MLookupCache

java.lang.Object
  extended by org.compiere.model.MLookupCache

public class MLookupCache
extends Object

MLookup Data Cache. - not synchronized on purpose - Called from MLookup. Only caches multiple use for a single window!

Version:
$Id: MLookupCache.java,v 1.2 2006/07/30 00:58:37 jjanke Exp $
Author:
Jorg Janke

Method Summary
static void cacheReset(int WindowNo)
          Clear Static Lookup Cache for Window
protected static void loadEnd(MLookupInfo info, Map<Object,NamePair> lookup)
          MLookup Loader ends loading, so add it to cache
protected static boolean loadFromCache(MLookupInfo info, Map<Object,NamePair> lookupTarget)
          Load from Cache if applicable Called from MLookup constructor
protected static void loadStart(MLookupInfo info)
          MLookup Loader starts loading - ignore for now
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

loadStart

protected static void loadStart(MLookupInfo info)
MLookup Loader starts loading - ignore for now

Parameters:
info - MLookupInfo

loadEnd

protected static void loadEnd(MLookupInfo info,
                              Map<Object,NamePair> lookup)
MLookup Loader ends loading, so add it to cache

Parameters:
info -
lookup -

loadFromCache

protected static boolean loadFromCache(MLookupInfo info,
                                       Map<Object,NamePair> lookupTarget)
Load from Cache if applicable Called from MLookup constructor

Parameters:
info - MLookupInfo to search
lookupTarget - Target HashMap
Returns:
true, if lookup found

cacheReset

public static void cacheReset(int WindowNo)
Clear Static Lookup Cache for Window

Parameters:
WindowNo - WindowNo of Cache entries to delete

Compiere 3.1

Compiere® is a registered trademark of ComPiere, Inc. ©2004-2008 HumanFlash.com All rights reserved.