|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbitronix.tm.resource.jdbc.LruStatementCache
public class LruStatementCache
Last Recently Used PreparedStatement cache with eviction listeners support implementation.
Constructor Summary | |
---|---|
LruStatementCache(int maxSize)
|
Method Summary | |
---|---|
void |
addEvictionListener(LruEvictionListener listener)
|
protected void |
clear()
Evict all statements from the cache. |
JdbcPreparedStatementHandle |
get(JdbcPreparedStatementHandle key)
The provided key is just a 'shell' JdbcPreparedStatementHandle, it comes in with no actual 'delegate' PreparedStatement. |
JdbcPreparedStatementHandle |
put(JdbcPreparedStatementHandle key)
A statement is put into the cache. |
void |
removeEvictionListener(LruEvictionListener listener)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LruStatementCache(int maxSize)
Method Detail |
---|
public JdbcPreparedStatementHandle get(JdbcPreparedStatementHandle key)
key
- the cache key
public JdbcPreparedStatementHandle put(JdbcPreparedStatementHandle key)
key
- a prepared statement handle
protected void clear()
public void addEvictionListener(LruEvictionListener listener)
public void removeEvictionListener(LruEvictionListener listener)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |