|
DataFaucet 1.0 Beta | ||||
| FRAMES | |||||
WEB-INF.cftags.component
datafaucet.system.kernel
datafaucet.system.duck
datafaucet.system.broadcaster
datafaucet.system.transaction
datafaucet.system.arutilities
public class arutilities
general internal functionality for ActiveRecord objects
| Constructor Summary | |
|---|---|
init()
|
|
| Method Summary | |
|---|---|
private any |
filterSQLStatement(any statement, [any ActiveRecord='[runtime expression]'])
allows objects which extend ActiveRecord to more easily fetch queries of data from related tables |
private void |
getAllForeignKeys(struct insertdata, [boolean throwError='false'])
|
private any |
getColumnMap()
|
any |
getDatasource()
|
private string |
getDateProperties()
returns a list of properties with date values |
private string |
getDefaultLocale()
|
private string |
getDefaultTimezone()
|
private string |
getForeignKeyValue(string keytable, string keycolumn, string keyvalue)
|
private any |
getFullTableName(string table)
|
any |
getLocalization()
|
private string |
getLock([string lockname=''], [string tablename='[runtime expression]'])
|
struct |
getORMProperties()
returns all properties of the ActiveRecord object which match column names in the target table |
struct |
getPrimaryKeyData()
|
any |
getProperties()
returns all properties from a cfc in a structure |
private string |
getProtectedColumns()
|
private any |
getSQLInsert(string table, [string column='[runtime expression]'])
gets a sql insert statement containing the object id in a specified column - facilitates inserts into cross-reference tables |
private any |
getSQLStatement(string type, [string table='[runtime expression]'], [string columns='*'], [string orderby=''], [struct insertData])
gets a sql statement object which targets the database record represented by the current instance |
private any |
getSelectStatement()
|
private any |
getUTCLocale()
|
boolean |
hasDatasource()
indicates if the current object has been loaded with a datasource instance |
boolean |
hasLocalization()
|
string |
lock()
returns a name for locking access to the record represented by the ActiveRecord object |
private struct |
mapCollectionToProperties(struct collection)
|
private string |
nullForeignKeys(struct insertdata, [query keys='[runtime expression]'])
removes keys from a struct when they match an imported key in the database and contain an empty string |
private any |
parseDates(struct insertdata)
parses and adjusts times in an input structure to UTC for storage |
private struct |
queryToStruct(query query, [numeric index='1'])
|
private void |
removeNullKeys(struct insertdata)
|
any |
setDatasource(any datasource)
sets the datasource to which this object belongs |
any |
setLocalization(any localization)
|
void |
setNull(string columns)
|
void |
setORMProperties(any properties, [boolean overwrite='true'], [numeric index='1'])
sets properties from column names in the target table |
private struct |
simplify(struct st)
|
| Methods inherited from class datafaucet.system.broadcaster |
|---|
Broadcast, addListener, getListeners
|
| Methods inherited from class datafaucet.system.duck |
|---|
addObserver, getObservers, getProperty, getPropertylist, getValue, identifyAccessorOrMutator, observe, onMissingMethod, raiseMissingMethodException, reset, setProperties, setProperty, setValue
|
| Methods inherited from class datafaucet.system.kernel |
|---|
arg, componentExists, getDataFaucet, getFaucetObject, getFile, getFileModified, getObject, getPlumbing, getTransaction, getTransactionManager, newTransaction, parseDate, setTransaction
|
| Methods inherited from class WEB-INF.cftags.component |
|---|
|
| Constructor Detail |
|---|
public init()
| Method Detail |
|---|
private any filterSQLStatement(any statement, [any ActiveRecord='[runtime expression]'])
statementActiveRecordprivate void getAllForeignKeys(struct insertdata, [boolean throwError='false'])
insertdatathrowErrorprivate any getColumnMap()
public any getDatasource()
private string getDateProperties()
private string getDefaultLocale()
private string getDefaultTimezone()
private string getForeignKeyValue(string keytable, string keycolumn, string keyvalue)
keytablekeycolumnkeyvalueprivate any getFullTableName(string table)
tablepublic any getLocalization()
private string getLock([string lockname=''], [string tablename='[runtime expression]'])
locknametablenamepublic struct getORMProperties()
public struct getPrimaryKeyData()
public any getProperties()
getProperties
in class
duck
private string getProtectedColumns()
private any getSQLInsert(string table, [string column='[runtime expression]'])
tablecolumnprivate any getSQLStatement(string type, [string table='[runtime expression]'], [string columns='*'], [string orderby=''], [struct insertData])
typetablecolumnsorderbyinsertDataprivate any getSelectStatement()
private any getUTCLocale()
public boolean hasDatasource()
public boolean hasLocalization()
public string lock()
private struct mapCollectionToProperties(struct collection)
collectionprivate string nullForeignKeys(struct insertdata, [query keys='[runtime expression]'])
insertdatakeysprivate any parseDates(struct insertdata)
insertdataprivate struct queryToStruct(query query, [numeric index='1'])
queryindexprivate void removeNullKeys(struct insertdata)
insertdatapublic any setDatasource(any datasource)
datasourcepublic any setLocalization(any localization)
localizationpublic void setNull(string columns)
columnspublic void setORMProperties(any properties, [boolean overwrite='true'], [numeric index='1'])
properties - a structure or query containing keys which match the keys of the property structureoverwrite - when false the component's existing properties will be preservedindex - if the properties argument is a query the index argument can be used to determine what row of the query is used to populate the objectprivate struct simplify(struct st)
st
|
DataFaucet 1.0 Beta | ||||
| FRAMES | |||||