railo.runtime.query
Interface QueryCache

All Known Implementing Classes:
QueryCacheSupport

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

clearUnused

void clearUnused(PageContext pc)
                 throws IOException
clear expired queries from cache

Throws:
IOException

getQuery

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

Parameters:
sql -
datasource -
username -
password -
cacheAfter -
Returns:
Query

set

void set(PageContext pc,
         SQL sql,
         String datasource,
         String username,
         String password,
         Object value,
         Date cacheBefore)
sets a Query to Cache

Parameters:
sql -
datasource -
username -
password -
value -
cacheBefore -

clear

void clear(PageContext pc)
clear the cache

Throws:
IOException

clear

void clear(PageContext pc,
           QueryCacheFilter filter)
clear the cache

Parameters:
filter -

remove

void remove(PageContext pc,
            SQL sql,
            String datasource,
            String username,
            String password)
removes query from cache

Parameters:
sql -
datasource -
username -
password -
Throws:
IOException

get

Object get(PageContext pc,
           SQL sql,
           String datasource,
           String username,
           String password,
           Date cachedafter)

size

int size(PageContext pc)


Copyright © 2012 Railo