|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compiere.cm.cache.CO
public class CO
CO CacheObject we store parts of the content in caches on the webservers to reduce DB load and speed up page deployment
| Field Summary | |
|---|---|
protected Hashtable<String,Object> |
cache
|
protected static int |
cacheSize
|
protected Hashtable<String,Long> |
cacheUsage
|
protected Ctx |
ctx
|
protected CLogger |
log
Logger |
| Constructor Summary | |
|---|---|
CO()
Cache Object |
|
| Method Summary | |
|---|---|
void |
empty()
empty complete Cache |
Ctx |
getCtx()
get Context |
Enumeration<String> |
getKeys()
get key enumeration |
int |
getSize()
getSize of current cache |
String[] |
getSortedKeys()
getSortedKeys of Cache Object |
Hashtable<String,Object> |
getValueTable()
|
void |
put(String ID,
Object thisObject)
put |
void |
remove(int ID)
remove |
void |
remove(String ID)
remove |
void |
setCtx(Ctx thisCtx)
set Context |
String |
show()
Show Cache Content |
void |
use(int ID)
Update Usage value for cache optimization |
void |
use(String ID)
Update Usage value for cache optimization |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static int cacheSize
protected Hashtable<String,Object> cache
protected Hashtable<String,Long> cacheUsage
protected Ctx ctx
protected CLogger log
| Constructor Detail |
|---|
public CO()
| Method Detail |
|---|
public void setCtx(Ctx thisCtx)
thisCtx - public Ctx getCtx()
public void put(String ID,
Object thisObject)
ID - thisObject - public void remove(int ID)
ID - public void remove(String ID)
ID - public int getSize()
public Enumeration<String> getKeys()
public String[] getSortedKeys()
public void use(int ID)
ID - public void use(String ID)
ID - public void empty()
public String show()
public Hashtable<String,Object> getValueTable()
|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||