|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.continuent.tungsten.replicator.database.PreparedStatementCache
public class PreparedStatementCache
Implements a cache for prepared statements, which are identified by a single key.
| Constructor Summary | |
|---|---|
PreparedStatementCache(int capacity)
Creates a new table metadata cache. |
|
| Method Summary | |
|---|---|
void |
invalidate(java.lang.String key)
Release one prepared statement. |
void |
invalidateAll()
Release all metadata in the cache. |
void |
release(PreparedStatementHolder psh)
Release resources for this metadata value. |
java.sql.PreparedStatement |
retrieve(java.lang.String key)
Retrieves prepared statement or returns null if it is not in the cache. |
PreparedStatementHolder |
retrieveExtended(java.lang.String key)
Retrieves prepared statement plus query text or returns null if not in the cache. |
int |
size()
Returns the number of entries in the metadata cache. |
void |
store(java.lang.String key,
java.sql.PreparedStatement ps,
java.lang.String query)
Store prepared statement. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PreparedStatementCache(int capacity)
| Method Detail |
|---|
public void release(PreparedStatementHolder psh)
CacheResourceManager
release in interface CacheResourceManager<PreparedStatementHolder>public int size()
public void store(java.lang.String key,
java.sql.PreparedStatement ps,
java.lang.String query)
public java.sql.PreparedStatement retrieve(java.lang.String key)
public PreparedStatementHolder retrieveExtended(java.lang.String key)
public void invalidate(java.lang.String key)
public void invalidateAll()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||