|
Transfer version 1.1 | ||||
| FRAMES | |||||
WEB-INF.cftags.component
transfer.com.sql.AbstractBaseTransfer
public class AbstractBaseTransfer
Abstract base class for all TransferObject related CRUD SQL statements
| Constructor Summary | |
|---|---|
private |
init(Datasource datasource, ObjectManager objectManager, QueryExecutionPool queryExecutionPool, QueryCache queryCache, Transaction transaction)
Constructor |
| Method Summary | |
|---|---|
private boolean |
andSeperator(Query query, boolean isFirst)
seperates mappings with AND |
private boolean |
commaSeperator(Query query, boolean isFirst)
seperates values with commas |
private string |
equalsString()
returns ' = ' |
private Datasource |
getDatasource()
|
private MethodInvoker |
getMethodInvoker()
|
private ObjectManager |
getObjectManager()
|
private QueryCache |
getQueryCache()
|
private QueryExecutionPool |
getQueryExecutionPool()
|
private Transaction |
getTransaction()
|
private any |
invokeGetPrimaryKey(TransferObject transfer)
Gets the primary key value from an object |
private string |
isString()
returns ' IS ' |
private void |
mapCompositeKey(Query query, Object object, [string table])
maps a composite key |
private void |
mapPrimaryKey(Query query, Object object, [string column], [string table], [boolean ignoreColumn='false'])
maps the primary key to the query |
private void |
mapSingularKey(Query query, Object object, [string column], [string table], [boolean ignoreColumn='false'])
maps a singular key |
private string |
nullString()
returns ' NULL ' |
private void |
setCompositeKey(QueryExecution queryExec, [TransferObject transfer], [Object object], [struct key])
sets the composite key value to a query |
private void |
setDatasource(Datasource Datasource)
|
private void |
setMethodInvoker(MethodInvoker MethodInvoker)
|
private void |
setObjectManager(ObjectManager ObjectManager)
|
private void |
setPrimaryKey(QueryExecution queryExec, [TransferObject transfer], [Object object], [any key], [boolean setOperator='yes'])
sets the value of the primary key to the query execution |
private void |
setQueryCache(QueryCache QueryCache)
|
private void |
setQueryExecutionPool(QueryExecutionPool QueryExecutionPool)
|
private void |
setSingularKey(QueryExecution queryExec, [TransferObject transfer], [Object object], [string key], [boolean setOperator='yes'])
sets the singular key value |
private void |
setTransaction(Transaction transaction)
|
private any |
throw(string type, string message, [string detail=''])
Throws an Exception |
| Methods inherited from class WEB-INF.cftags.component |
|---|
|
| Constructor Detail |
|---|
private init(Datasource datasource, ObjectManager objectManager, QueryExecutionPool queryExecutionPool, QueryCache queryCache, Transaction transaction)
datasource - The datasource BOobjectManager - Need to object manager for making queriesqueryExecutionPool - the query execution poolqueryCache - the query object cachetransaction| Method Detail |
|---|
private boolean andSeperator(Query query, boolean isFirst)
query - the query objectisFirst - if this is the first request to for the commaprivate boolean commaSeperator(Query query, boolean isFirst)
query - the query objectisFirst - if this is the first request to for the commaprivate string equalsString()
private Datasource getDatasource()
private MethodInvoker getMethodInvoker()
private ObjectManager getObjectManager()
private QueryCache getQueryCache()
private QueryExecutionPool getQueryExecutionPool()
private Transaction getTransaction()
private any invokeGetPrimaryKey(TransferObject transfer)
transfer - The transfer object to insertprivate string isString()
private void mapCompositeKey(Query query, Object object, [string table])
query - the query objectobject - the object for the given transfertable - specifies a tableprivate void mapPrimaryKey(Query query, Object object, [string column], [string table], [boolean ignoreColumn='false'])
query - the query objectobject - the object for the given transfercolumn - an overwriting column, other than the primary keytable - specifies a tableignoreColumn - ignores the column, and just places the mappingprivate void mapSingularKey(Query query, Object object, [string column], [string table], [boolean ignoreColumn='false'])
query - the query objectobject - the object for the given transfercolumn - an overwriting column, other than the primary keytable - specifies a tableignoreColumn - ignores the column, and just places the mappingprivate string nullString()
private void setCompositeKey(QueryExecution queryExec, [TransferObject transfer], [Object object], [struct key])
queryExec - the query objecttransfer - the transfer objectobject - The Object BOkey - the key to set the primary key value toprivate void setDatasource(Datasource Datasource)
Datasourceprivate void setMethodInvoker(MethodInvoker MethodInvoker)
MethodInvokerprivate void setObjectManager(ObjectManager ObjectManager)
ObjectManagerprivate void setPrimaryKey(QueryExecution queryExec, [TransferObject transfer], [Object object], [any key], [boolean setOperator='yes'])
queryExec - the query objecttransfer - the transfer objectobject - The Object BOkey - the key to set the primary key value tosetOperator - adds the equals operatorprivate void setQueryCache(QueryCache QueryCache)
QueryCacheprivate void setQueryExecutionPool(QueryExecutionPool QueryExecutionPool)
QueryExecutionPoolprivate void setSingularKey(QueryExecution queryExec, [TransferObject transfer], [Object object], [string key], [boolean setOperator='yes'])
queryExec - the query objecttransfer - the transfer objectobject - The Object BOkey - the key to set the primary key value tosetOperator - adds the equals operatorprivate void setTransaction(Transaction transaction)
transactionprivate 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 | |||||