Transfer version 1.1

transfer.com.sql.collections
Class QueryCache

WEB-INF.cftags.component
        extended by transfer.com.sql.collections.QueryCache

public class QueryCache
extends WEB-INF.cftags.component

A cache for query objects


Constructor Summary
init()
          Constructor
 
Method Summary
 void addQuery(string key, Query query)
          add a query to the cache
private struct getCache()
 Query getQuery(string key)
          gets a Query object from the cache
 boolean hasQuery(string key)
          if the cache has the query
private void setCache(struct Cache)
 
Methods inherited from class WEB-INF.cftags.component
 

Constructor Detail

init

public init()
Constructor

Method Detail

addQuery

public void addQuery(string key, Query query)
add a query to the cache

Parameters:
key - the key to store the query under
query - the query object

getCache

private struct getCache()


getQuery

public Query getQuery(string key)
gets a Query object from the cache

Parameters:
key - the key the query is stored under

hasQuery

public boolean hasQuery(string key)
if the cache has the query

Parameters:
key - the key the query is stored under

setCache

private void setCache(struct Cache)

Parameters:
Cache

Transfer version 1.1