|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface QueryCache
interface for a query cache
Method Summary | |
---|---|
void |
clear(PageContext pc)
clear the cache |
void |
clear(PageContext pc,
QueryCacheFilter filter)
clear the cache |
void |
clearUnused(PageContext pc)
clear expired queries from cache |
Object |
get(PageContext pc,
SQL sql,
String datasource,
String username,
String password,
Date cachedafter)
|
Query |
getQuery(PageContext pc,
SQL sql,
String datasource,
String username,
String password,
Date cacheAfter)
returns a Query from Query Cache or null if no match found |
void |
remove(PageContext pc,
SQL sql,
String datasource,
String username,
String password)
removes query from cache |
void |
set(PageContext pc,
SQL sql,
String datasource,
String username,
String password,
Object value,
Date cacheBefore)
sets a Query to Cache |
int |
size(PageContext pc)
|
Method Detail |
---|
void clearUnused(PageContext pc) throws IOException
IOException
Query getQuery(PageContext pc, SQL sql, String datasource, String username, String password, Date cacheAfter)
sql
- datasource
- username
- password
- cacheAfter
-
void set(PageContext pc, SQL sql, String datasource, String username, String password, Object value, Date cacheBefore)
sql
- datasource
- username
- password
- value
- cacheBefore
- void clear(PageContext pc)
IOException
void clear(PageContext pc, QueryCacheFilter filter)
filter
- void remove(PageContext pc, SQL sql, String datasource, String username, String password)
sql
- datasource
- username
- password
-
IOException
Object get(PageContext pc, SQL sql, String datasource, String username, String password, Date cachedafter)
int size(PageContext pc)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |