|
DataFaucet 1.0 Beta | ||||
| FRAMES | |||||
WEB-INF.cftags.component
datafaucet.system.kernel
datafaucet.system.duck
datafaucet.system.broadcaster
datafaucet.system.transaction
datafaucet.system.arutilities
datafaucet.system.arschema
public class arschema
provides basic schema functionality for ActiveRecord objects
| Constructor Summary | |
|---|---|
init()
|
|
| Method Summary | |
|---|---|
string |
ActiveRecordLocale()
|
any |
addTable(string table, [string column=''], [string references=''], [string select='*'])
|
private struct |
fixModifiedColumns(struct insertData)
when column prefixes are occluded, this method adjusts property names back to column names during an insert or update |
string |
getAuthor()
|
string |
getColumn(string coltype)
returns the column set for a specific column type, i.e. created, modified or primary |
private string |
getColumnNames()
|
private query |
getColumns([string table='[runtime expression]'])
|
string |
getCreatedDate()
|
string |
getEditor()
|
private query |
getExportedKeys()
|
private string |
getForeignKey(string table)
|
private string |
getIdentityColumn()
|
private query |
getImportedKeys()
|
string |
getInstallScript()
returns a SQL script for installing database entities |
string |
getLastModified()
|
string |
getObjectID()
|
private any |
getPrimaryColumn()
|
private any |
getPrimaryColumnType()
|
string |
getPrimaryProperty()
|
private string |
getRequiredColumns([string table='[runtime expression]'])
|
string |
getSchema()
|
private any |
getSchemaExport()
|
private any |
getSchemaFromProperties()
|
private any |
getSchemaTables()
|
string |
getSequence()
|
string |
getTable()
|
any |
getTableArray()
|
string |
getTimeZone()
|
any |
getUninstallDDL()
|
string |
getUpgradeScript()
returns a SQL script for installing new database entities and upgrading existing entities |
string |
getUpgradeXML()
|
any |
ignoreColumn(string colname)
indicates that a specific column should be ignored when performing a sql update |
boolean |
install()
|
private string |
newID()
creates a new unique identifier for the current object in the specified table |
private any |
prepareInsert([struct insertdata='[runtime expression]'])
|
private string |
prepareUpdate(struct insertdata)
|
any |
removeIgnoredColumn(string colname)
removes an ignored column from the ignored columns list |
private void |
removeIgnoredColumns(struct insertdata)
|
any |
removeTable(string table)
|
any |
setColumn(string coltype, string colname)
provides a method of setting several special-case column names for data management |
private void |
setIdentityValue(numeric identityvalue)
|
private void |
setIgnoredColumns()
|
private any |
setMetaData()
|
private string |
setNewID()
|
any |
setObjectID(string objectid)
|
any |
setSequence(string sequence)
|
any |
setTable(string table)
sets the table to which this object belongs |
private any |
throwTableError()
|
boolean |
uninstall()
|
| 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 |
|---|
public string ActiveRecordLocale()
public any addTable(string table, [string column=''], [string references=''], [string select='*'])
table - the name of the table to join to theq uerycolumn - the name of the target column in the joined tablereferences - the name of the source column in the table being adjoinedselect - indicates columns in the join table to include when performing a read or update operationprivate struct fixModifiedColumns(struct insertData)
insertDatapublic string getAuthor()
public string getColumn(string coltype)
coltypeprivate string getColumnNames()
private query getColumns([string table='[runtime expression]'])
tablepublic string getCreatedDate()
public string getEditor()
private query getExportedKeys()
private string getForeignKey(string table)
tableprivate string getIdentityColumn()
private query getImportedKeys()
public string getInstallScript()
public string getLastModified()
public string getObjectID()
private any getPrimaryColumn()
private any getPrimaryColumnType()
public string getPrimaryProperty()
private string getRequiredColumns([string table='[runtime expression]'])
tablepublic string getSchema()
private any getSchemaExport()
private any getSchemaFromProperties()
private any getSchemaTables()
public string getSequence()
public string getTable()
public any getTableArray()
public string getTimeZone()
public any getUninstallDDL()
public string getUpgradeScript()
public string getUpgradeXML()
public any ignoreColumn(string colname)
colnamepublic boolean install()
private string newID()
private any prepareInsert([struct insertdata='[runtime expression]'])
insertdataprivate string prepareUpdate(struct insertdata)
insertdatapublic any removeIgnoredColumn(string colname)
colnameprivate void removeIgnoredColumns(struct insertdata)
insertdatapublic any removeTable(string table)
tablepublic any setColumn(string coltype, string colname)
coltypecolnameprivate void setIdentityValue(numeric identityvalue)
identityvalueprivate void setIgnoredColumns()
private any setMetaData()
private string setNewID()
public any setObjectID(string objectid)
objectidpublic any setSequence(string sequence)
sequencepublic any setTable(string table)
tableprivate any throwTableError()
public boolean uninstall()
|
DataFaucet 1.0 Beta | ||||
| FRAMES | |||||