|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Cache
The cache keeps frequently used objects in the main memory.
Method Summary | |
---|---|
void |
clear()
Clear the cache. |
CacheObject |
find(int pos)
Get an element from the cache if it is available. |
CacheObject |
get(int pos)
Get an element in the cache if it is available. |
ObjectArray<CacheObject> |
getAllChanged()
Get all objects in the cache that have been changed. |
int |
getMaxSize()
Get the maximum size in words (4 bytes). |
int |
getSize()
Get the used size in words (4 bytes). |
java.lang.String |
getTypeName()
Get the name of the cache type in a human readable form. |
void |
put(CacheObject r)
Add an element to the cache. |
void |
remove(int pos)
Remove an object from the cache. |
void |
setMaxSize(int size)
Set the maximum memory to be used by this cache. |
CacheObject |
update(int pos,
CacheObject record)
Update an element in the cache. |
Method Detail |
---|
ObjectArray<CacheObject> getAllChanged()
void clear()
CacheObject get(int pos)
pos
- the unique key of the element
void put(CacheObject r) throws java.sql.SQLException
r
- the object
java.sql.SQLException
CacheObject update(int pos, CacheObject record) throws java.sql.SQLException
pos
- the unique key of the elementrecord
- the element
java.sql.SQLException
void remove(int pos)
pos
- the unique key of the elementCacheObject find(int pos)
pos
- the unique key of the element
void setMaxSize(int size) throws java.sql.SQLException
size
- in number of double words (4 bytes)
java.sql.SQLException
java.lang.String getTypeName()
int getMaxSize()
int getSize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |