|
Transfer version 1.1 | ||||
| FRAMES | |||||
WEB-INF.cftags.component
transfer.com.sql.SQLManager
public class SQLManager
Top level configuration manager for SQL objects
| Constructor Summary | |
|---|---|
init(SQLFactory sqlFactory)
Constructor |
|
| Method Summary | |
|---|---|
void |
create(TransferObject transfer, boolean useTransaction)
Inserts the transfer into the DB |
void |
delete(TransferObject transfer, boolean useTransaction)
Deletes a transfer object |
query |
getInsertRefreshQuery(TransferObject transfer)
Returns the refresh query for an insert |
Nullable |
getNullable()
|
any |
getPropertyColumnValue(query query, Object object, Property property)
Returns the column value, but returns the default null value for the item if it is NULL |
private SQLValue |
getSQLValue()
|
private TransferDeleter |
getTransferDeleter()
|
private TransferGateway |
getTransferGateway()
|
private TransferInserter |
getTransferInserter()
|
private TransferRefresher |
getTransferRefresher()
|
private TransferSelecter |
getTransferSelecter()
|
private TransferUpdater |
getTransferUpdater()
|
query |
getUpdateRefreshQuery(TransferObject transfer)
Returns the refresh query for an insert |
boolean |
hasInsertRefresh(TransferObject transfer)
Check to see if it requires a run of the refresh query |
boolean |
hasUpdateRefresh(TransferObject transfer)
Check to see if it requires a run of the refresh query |
query |
list(string className, [string orderProperty=''], [boolean orderASC='true'], [boolean useAliases='true'])
Lists a series of object values |
query |
listByProperty(string className, string propertyName, any propertyValue, boolean onlyRetrievePrimaryKey, [string orderProperty=''], [boolean orderASC='true'], [boolean useAliases='true'])
Lists a series of values, filtered by a given value |
query |
listByPropertyMap(string className, struct propertyMap, boolean onlyRetrievePrimaryKey, [string orderProperty=''], [boolean orderASC='true'], [boolean useAliases='true'])
Lists values, filtered by a Struct of Property : Value properties |
query |
select(Object object, any key, [string lazyLoadName])
Creates and runs the query for the TransferObject |
private void |
setNullable(Nullable Nullable)
|
private void |
setSQLValue(SQLValue sqlValue)
|
private void |
setTransferDeleter(TransferDeleter TransferDeleter)
|
private void |
setTransferGateway(TransferGateway TransferGateway)
|
private void |
setTransferInserter(TransferInserter TransferInserter)
|
private void |
setTransferRefresher(TransferRefresher TransferRefresher)
|
private void |
setTransferSelecter(TransferSelecter TransferSelecter)
|
private void |
setTransferUpdater(TransferUpdater TransferUpdater)
|
void |
update(TransferObject transfer, boolean useTransaction)
Updates the Transfer in the DB |
| Methods inherited from class WEB-INF.cftags.component |
|---|
|
| Constructor Detail |
|---|
public init(SQLFactory sqlFactory)
sqlFactory - the SQL factory implementation| Method Detail |
|---|
public void create(TransferObject transfer, boolean useTransaction)
transfer - The transfer object to insertuseTransaction - Whether or not to use an internal transaction blockpublic void delete(TransferObject transfer, boolean useTransaction)
transfer - The transfer object to insertuseTransaction - Whether or not to use an internal transaction blockpublic query getInsertRefreshQuery(TransferObject transfer)
transfer - The object to refreshpublic Nullable getNullable()
public any getPropertyColumnValue(query query, Object object, Property property)
query - The query we are looking atobject - The property to get the value forproperty - The property to get the value forprivate SQLValue getSQLValue()
private TransferDeleter getTransferDeleter()
private TransferGateway getTransferGateway()
private TransferInserter getTransferInserter()
private TransferRefresher getTransferRefresher()
private TransferSelecter getTransferSelecter()
private TransferUpdater getTransferUpdater()
public query getUpdateRefreshQuery(TransferObject transfer)
transfer - The object to refreshpublic boolean hasInsertRefresh(TransferObject transfer)
transfer - The object to refreshpublic boolean hasUpdateRefresh(TransferObject transfer)
transfer - The object to refreshpublic query list(string className, [string orderProperty=''], [boolean orderASC='true'], [boolean useAliases='true'])
className - The class of the objects to listorderProperty - The property to order byorderASC - Boolean whether to order by ASC, otherwise order by DESCuseAliases - Boolean as to whether or not to alias columns with the transfer property namespublic query listByProperty(string className, string propertyName, any propertyValue, boolean onlyRetrievePrimaryKey, [string orderProperty=''], [boolean orderASC='true'], [boolean useAliases='true'])
className - The class of the objects to listpropertyName - The name of the property to filter bypropertyValue - The value to filter by (only simple values)onlyRetrievePrimaryKey - boolean to whether or not to only retrieve the primary keyorderProperty - The property to order byorderASC - Boolean whether to order by ASC, otherwise order by DESCuseAliases - Boolean as to whether or not to alias columns with the transfer property namespublic query listByPropertyMap(string className, struct propertyMap, boolean onlyRetrievePrimaryKey, [string orderProperty=''], [boolean orderASC='true'], [boolean useAliases='true'])
className - The class of the objects to listpropertyMap - Struct with keys that match to properties, and values to filter byonlyRetrievePrimaryKey - boolean to whether or not to only retrieve the primary keyorderProperty - The property to order byorderASC - Boolean whether to order by ASC, otherwise order by DESCuseAliases - Boolean as to whether or not to alias columns with the transfer property namespublic query select(Object object, any key, [string lazyLoadName])
object - The Object BOkey - The id key for the datalazyLoadName - the name of the lazy load, if there is one, for locking and cachingprivate void setNullable(Nullable Nullable)
Nullableprivate void setSQLValue(SQLValue sqlValue)
sqlValueprivate void setTransferDeleter(TransferDeleter TransferDeleter)
TransferDeleterprivate void setTransferGateway(TransferGateway TransferGateway)
TransferGatewayprivate void setTransferInserter(TransferInserter TransferInserter)
TransferInserterprivate void setTransferRefresher(TransferRefresher TransferRefresher)
TransferRefresherprivate void setTransferSelecter(TransferSelecter TransferSelecter)
TransferSelecterprivate void setTransferUpdater(TransferUpdater TransferUpdater)
TransferUpdaterpublic void update(TransferObject transfer, boolean useTransaction)
transfer - The transferObject to updateuseTransaction - Whether or not to use an internal transaction block
|
Transfer version 1.1 | ||||
| FRAMES | |||||