Transfer version 1.1

transfer.com.tql.collections
Class EvaluationCache

WEB-INF.cftags.component
        extended by transfer.com.tql.collections.EvaluationCache

public class EvaluationCache
extends WEB-INF.cftags.component

Cache for storing evaluations of TQL


Constructor Summary
init()
          Constructor
 
Method Summary
 void add(Query query, array evaluation)
          Adds a new evaluation for TQL into the cache
 array get(Query query)
          gets an evaluation. If one isn't around, returns an empty array
private struct getEvaluationCache()
private any getReferenceQueue()
private struct getSoftRefLookup()
 boolean has(Query query)
          If it has the tql evaluation or not
private void reap()
          reaps the collected objects out of the pool
private void setEvaluationCache(struct EvaluationCache)
private void setReferenceQueue(any ReferenceQueue)
private void setSoftRefLookup(struct softRefLookup)
 
Methods inherited from class WEB-INF.cftags.component
 

Constructor Detail

init

public init()
Constructor

Method Detail

add

public void add(Query query, array evaluation)
Adds a new evaluation for TQL into the cache

Parameters:
query - the tql query object
evaluation - The evaluation array

get

public array get(Query query)
gets an evaluation. If one isn't around, returns an empty array

Parameters:
query - the tql query object

getEvaluationCache

private struct getEvaluationCache()


getReferenceQueue

private any getReferenceQueue()


getSoftRefLookup

private struct getSoftRefLookup()


has

public boolean has(Query query)
If it has the tql evaluation or not

Parameters:
query - the tql query object

reap

private void reap()
reaps the collected objects out of the pool


setEvaluationCache

private void setEvaluationCache(struct EvaluationCache)

Parameters:
EvaluationCache

setReferenceQueue

private void setReferenceQueue(any ReferenceQueue)

Parameters:
ReferenceQueue

setSoftRefLookup

private void setSoftRefLookup(struct softRefLookup)

Parameters:
softRefLookup

Transfer version 1.1