|
Transfer version 1.1 | ||||
| FRAMES | |||||
WEB-INF.cftags.component
transfer.com.tql.Query
public class Query
The TQL Query objects
| Constructor Summary | |
|---|---|
init(string tql)
Constructor |
|
| Method Summary | |
|---|---|
private void |
addMappedParameter(string mapName, struct mapValues)
Adds a mapped param to the collection |
void |
clean()
Cleans the Query object for reuse |
private void |
configure(string tql)
Configuration |
boolean |
getAliasColumns()
|
boolean |
getCacheEvaluation()
|
boolean |
getDistinctMode()
|
string |
getHash()
returns a hash for the state this query |
private struct |
getMappedParameter(string mapName)
returns a mapped parameter |
private struct |
getMappedParameters()
|
struct |
getParam(string mapName)
Returns a mapped param |
string |
getTQL()
|
void |
setAliasColumns(boolean AliasColumns)
If true, columns are alias'ed to the property names. Defaults to true. |
void |
setCacheEvaluation(boolean CacheEvaluation)
When set to true, Transfer knows that the TQL isn't going to change, and caches the evaluation of the TQL for reuse. Defaults to: false |
void |
setDistinctMode(boolean DistinctMode)
When set to true, the query is run as DISTINCT. Defaults to false. |
private void |
setMappedParameters(struct MappedParameters)
|
void |
setParam(string name, [string value], [string type='string'], [boolean list='false'], [boolean isNull='false'])
Sets a mapped parameter |
private void |
setTQL(string TQL)
|
private any |
throw(string type, string message, [string detail=''])
Throws an Exception |
| Methods inherited from class WEB-INF.cftags.component |
|---|
|
| Constructor Detail |
|---|
public init(string tql)
tql - The TQL to set the query to| Method Detail |
|---|
private void addMappedParameter(string mapName, struct mapValues)
mapName - The name to map it tomapValues - The struct of values to be mappedpublic void clean()
private void configure(string tql)
tql - The tql to set the query topublic boolean getAliasColumns()
public boolean getCacheEvaluation()
public boolean getDistinctMode()
public string getHash()
private struct getMappedParameter(string mapName)
mapName - The name to map the param toprivate struct getMappedParameters()
public struct getParam(string mapName)
mapName - The name of the mappingpublic string getTQL()
public void setAliasColumns(boolean AliasColumns)
AliasColumnspublic void setCacheEvaluation(boolean CacheEvaluation)
CacheEvaluationpublic void setDistinctMode(boolean DistinctMode)
DistinctModeprivate void setMappedParameters(struct MappedParameters)
MappedParameterspublic void setParam(string name, [string value], [string type='string'], [boolean list='false'], [boolean isNull='false'])
name - The name of the mappingvalue - The value of the mapping, required if 'null' is falsetype - The type of the mapped value: string, date, boolean, numeric, GUID, UUIDlist - if the mapped value is a listisNull - If the value is actually nullprivate void setTQL(string TQL)
TQLprivate any throw(string type, string message, [string detail=''])
type - The type of exceptionmessage - The message to accompany the exceptiondetail - The detail message for the exception
|
Transfer version 1.1 | ||||
| FRAMES | |||||