public class LruStatementCache
extends java.lang.Object
| Constructor and Description |
|---|
LruStatementCache(int maxSize) |
| Modifier and Type | Method and Description |
|---|---|
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) |
public JdbcPreparedStatementHandle get(JdbcPreparedStatementHandle key)
key - the cache keypublic JdbcPreparedStatementHandle put(JdbcPreparedStatementHandle key)
key - a prepared statement handleprotected void clear()
public void addEvictionListener(LruEvictionListener listener)
public void removeEvictionListener(LruEvictionListener listener)
Copyright © 2006-2023 Bitronix Software. All Rights Reserved.