|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PreparedStatementCache
Prepared Statement Cache Interface
| Field Summary | |
|---|---|
static String |
CACHE_POLICY_LIST
Policy : list |
static String |
CACHE_POLICY_MAP
Policy : map |
| Method Summary | |
|---|---|
void |
close()
Close logically the cache entries |
void |
destroy()
Destroy the cache entries |
PreparedStatementWrapper |
get(PreparedStatementWrapper psw)
Retrieve an entry in the cache |
int |
getMaxPstmtCacheSize()
|
int |
getPstmtCacheSize()
|
String |
getState(String prefix)
|
void |
put(PreparedStatementWrapper psw)
Add an entry in the cache |
void |
reallyClose()
Close really the cache entries |
void |
setMaxPstmtCacheSize(int maxSize)
Set the max cache size |
| Field Detail |
|---|
static final String CACHE_POLICY_LIST
static final String CACHE_POLICY_MAP
| Method Detail |
|---|
void put(PreparedStatementWrapper psw)
throws CacheException,
SQLException
psw - : wrapped prepared statement to add
CacheException - no more space in cache
SQLExceptionPreparedStatementWrapper get(PreparedStatementWrapper psw)
psw - : parameters of the prepared statement to retrieve
int getPstmtCacheSize()
int getMaxPstmtCacheSize()
void setMaxPstmtCacheSize(int maxSize)
maxSize - The max size to set.String getState(String prefix)
prefix - indentation
void destroy()
void close()
void reallyClose()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||