Transfer version 1.1

transfer.com.sql
Class Query

WEB-INF.cftags.component
        extended by transfer.com.sql.Query

public class Query
extends WEB-INF.cftags.component

Object for maintaining a SQL query state


Constructor Summary
init(QueryExecutionPool queryExecPool)
          Constructor
 
Method Summary
 void appendSQL(string sql)
          append some sql
private array createArrayList()
          use arraylists, as we want to pass by reference
 QueryExecution createExecution()
          create a query execution for this query
 struct getCurrentEvaluationBlock()
          gets the latest eval block
private array getQueryCollection()
private QueryExecutionPool getQueryExecutionPool()
private any getSQLBuffer()
 void mapParam(string name, string type)
          maps a parameter
private void populateNextEvaluation()
          populates the next evaluation
private void populateNextQuery()
          sets up the next query block
private void setQueryCollection(array QueryCollection)
private void setQueryExecutionPool(QueryExecutionPool QueryExecutionPool)
private void setSQLBuffer(any SQLBuffer)
 void start()
          Start a new query
 void stop()
          stop building your query execution
 
Methods inherited from class WEB-INF.cftags.component
 

Constructor Detail

init

public init(QueryExecutionPool queryExecPool)
Constructor

Parameters:
queryExecPool - the query execution pool
Method Detail

appendSQL

public void appendSQL(string sql)
append some sql

Parameters:
sql -

createArrayList

private array createArrayList()
use arraylists, as we want to pass by reference


createExecution

public QueryExecution createExecution()
create a query execution for this query


getCurrentEvaluationBlock

public struct getCurrentEvaluationBlock()
gets the latest eval block


getQueryCollection

private array getQueryCollection()


getQueryExecutionPool

private QueryExecutionPool getQueryExecutionPool()


getSQLBuffer

private any getSQLBuffer()


mapParam

public void mapParam(string name, string type)
maps a parameter

Parameters:
name - the name of the parameter
type - the type of the param, string, numeric, GUID, UUID, boolean, date

populateNextEvaluation

private void populateNextEvaluation()
populates the next evaluation


populateNextQuery

private void populateNextQuery()
sets up the next query block


setQueryCollection

private void setQueryCollection(array QueryCollection)

Parameters:
QueryCollection

setQueryExecutionPool

private void setQueryExecutionPool(QueryExecutionPool QueryExecutionPool)

Parameters:
QueryExecutionPool

setSQLBuffer

private void setSQLBuffer(any SQLBuffer)

Parameters:
SQLBuffer

start

public void start()
Start a new query


stop

public void stop()
stop building your query execution


Transfer version 1.1