|
Transfer version 1.1 | ||||
| FRAMES | |||||
WEB-INF.cftags.component
transfer.com.sql.QueryExecution
public class QueryExecution
An execution object of a query
| Constructor Summary | |
|---|---|
init(Datasource datasource)
Constructor |
|
| Method Summary | |
|---|---|
void |
clean()
clean the execution for reuse |
void |
execute()
simply executes the query |
any |
executeQuery()
executes the query and returns the last Select query result, if no query available, returns 0 |
private Datasource |
getDatasource()
|
private struct |
getMappedParam(string name)
returns a mapped param |
private struct |
getMappedParamCollection()
|
private array |
getQueryCollection()
|
private void |
setDatasource(Datasource Datasource)
|
private void |
setMappedParamCollection(struct MappedParamCollection)
|
void |
setMemento(struct memento)
Sets the state of the object |
void |
setParam(string name, [any value], [boolean list='false'], [boolean isNull='false'], [string operator], [string mapValueReplace])
Sets a mapped parameter |
private void |
setQueryCollection(array QueryCollection)
|
private any |
throw(string type, string message, [string detail=''])
Throws an Exception |
| Methods inherited from class WEB-INF.cftags.component |
|---|
|
| Constructor Detail |
|---|
public init(Datasource datasource)
datasource - the datasource to execute against| Method Detail |
|---|
public void clean()
public void execute()
public any executeQuery()
private Datasource getDatasource()
private struct getMappedParam(string name)
name - the name of the mapped paramprivate struct getMappedParamCollection()
private array getQueryCollection()
private void setDatasource(Datasource Datasource)
Datasourceprivate void setMappedParamCollection(struct MappedParamCollection)
MappedParamCollectionpublic void setMemento(struct memento)
memento - the state to be setpublic void setParam(string name, [any value], [boolean list='false'], [boolean isNull='false'], [string operator], [string mapValueReplace])
name - The name of the mappingvalue - The value of the mapping, required if 'null' is falselist - if the mapped value is a listisNull - If the value is actually nulloperator - if this exists, set the equality operator.mapValueReplace - a string to replacce the mapped value withprivate void setQueryCollection(array QueryCollection)
QueryCollectionprivate 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 | |||||