Compiere 3.1

org.compiere.util
Class CacheMgt

java.lang.Object
  extended by org.compiere.util.CacheMgt

public class CacheMgt
extends Object

Compiere Cache Management

Version:
$Id: CacheMgt.java,v 1.2 2006/07/30 00:54:35 jjanke Exp $
Author:
Jorg Janke

Method Summary
static CacheMgt get()
          Get Cache Management
 int getElementCount()
          Total Cached Elements
 boolean register(CacheInterface instance)
          Register Cache Instance
 int reset()
          Reset All registered Cache
 int reset(String tableName)
          Reset registered Cache
 int reset(String tableName, int Record_ID)
          Reset registered Cache
 String toString()
          String Representation
 String toStringX()
          Extended String Representation
 boolean unregister(CacheInterface instance)
          Un-Register Cache Instance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

get

public static CacheMgt get()
Get Cache Management

Returns:
Cache Mgr

register

public boolean register(CacheInterface instance)
Register Cache Instance

Parameters:
instance - Cache
Returns:
true if added

unregister

public boolean unregister(CacheInterface instance)
Un-Register Cache Instance

Parameters:
instance - Cache
Returns:
true if removed

reset

public int reset()
Reset All registered Cache

Returns:
number of deleted cache entries

reset

public int reset(String tableName)
Reset registered Cache

Parameters:
tableName - table name
Returns:
number of deleted cache entries

reset

public int reset(String tableName,
                 int Record_ID)
Reset registered Cache

Parameters:
tableName - table name
Record_ID - record if applicable or 0 for all
Returns:
number of deleted cache entries

getElementCount

public int getElementCount()
Total Cached Elements

Returns:
count

toString

public String toString()
String Representation

Overrides:
toString in class Object
Returns:
info

toStringX

public String toStringX()
Extended String Representation

Returns:
info

Compiere 3.1

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