DataFaucet 1.0 Beta

datafaucet.system
Class compositeactiverecord

WEB-INF.cftags.component
        extended by datafaucet.system.kernel
            extended by datafaucet.system.duck
                extended by datafaucet.system.broadcaster
                    extended by datafaucet.system.transaction
                        extended by datafaucet.system.arutilities
                            extended by datafaucet.system.arschema
                                extended by datafaucet.system.armanytomany
                                    extended by datafaucet.system.activerecord
                                        extended by datafaucet.system.compositeactiverecord

public class compositeactiverecord
extends activerecord

provides a base class for ActiveRecord objects with composite (multi-column) primary keys


Method Summary
 struct getObjectID()
private any getPrimaryColumn()
private struct handleInsertData(struct insertdata)
private boolean isCreated(struct insertdata)
 array lock()
          returns a name for locking access to the record represented by the ActiveRecord object
 any read([struct objectid='[runtime expression]'])
          loads data for the indicated record from the database
private any setNewID()
 
Methods inherited from class datafaucet.system.activerecord
BroadcastRead, ConfirmDelete, Create, Delete, Update, addInsertLock, deleteFromJoinTables, executeDelete, executeInsert, executeLockedUpdate, executeRead, executeUpdate, getInsertLocks, getValidator, init, isDeleted, isLoaded, lockUpdate, reset, setLoaded, unDelete, updateJoinTables, updatePermitted, validate
 
Methods inherited from class datafaucet.system.armanytomany
addManyToManyRelationship, deleteManyToManyRecords, deleteManyToManyRelationships, getColumnNames, getFailedProperties, getManyToManyColumns, getManyToManyKeys, getManyToManyProperties, getManyToManySelect, getManyToManyTable, insertManyToManyRecords, listManyToManyRecords, readManyToManyProperties, removeManyToManyRelationship, setManyToManyRecords, updateManyToManyRelationships
 
Methods inherited from class datafaucet.system.arschema
ActiveRecordLocale, addTable, fixModifiedColumns, getAuthor, getColumn, getColumns, getCreatedDate, getEditor, getExportedKeys, getForeignKey, getIdentityColumn, getImportedKeys, getInstallScript, getLastModified, getPrimaryColumnType, getPrimaryProperty, getRequiredColumns, getSchema, getSchemaExport, getSchemaFromProperties, getSchemaTables, getSequence, getTable, getTableArray, getTimeZone, getUninstallDDL, getUpgradeScript, getUpgradeXML, ignoreColumn, install, newID, prepareInsert, prepareUpdate, removeIgnoredColumn, removeIgnoredColumns, removeTable, setColumn, setIdentityValue, setIgnoredColumns, setMetaData, setObjectID, setSequence, setTable, throwTableError, uninstall
 
Methods inherited from class datafaucet.system.arutilities
filterSQLStatement, getAllForeignKeys, getColumnMap, getDatasource, getDateProperties, getDefaultLocale, getDefaultTimezone, getForeignKeyValue, getFullTableName, getLocalization, getLock, getORMProperties, getPrimaryKeyData, getProperties, getProtectedColumns, getSQLInsert, getSQLStatement, getSelectStatement, getUTCLocale, hasDatasource, hasLocalization, mapCollectionToProperties, nullForeignKeys, parseDates, queryToStruct, removeNullKeys, setDatasource, setLocalization, setNull, setORMProperties, simplify
 
Methods inherited from class datafaucet.system.transaction
broadcastTransactionCommit, broadcastTransactionRollback, commitTransaction, execute, executeTransactedMethod, getCurrentIsolation, getTransactionDepth, openTransaction, rollbackTransaction, trace
 
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, 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

init

public init(any datasource, string tablelist, [string prefix=''], [string badchars=''], [string protected=''])

Parameters:
datasource
tablelist
prefix
badchars
protected
Method Detail

getObjectID

public struct getObjectID()

Overrides:
getObjectID in class arschema

getPrimaryColumn

private any getPrimaryColumn()

Overrides:
getPrimaryColumn in class arschema

handleInsertData

private struct handleInsertData(struct insertdata)

Overrides:
handleInsertData in class activerecord
Parameters:
insertdata

isCreated

private boolean isCreated(struct insertdata)

Overrides:
isCreated in class activerecord
Parameters:
insertdata

lock

public array lock()
returns a name for locking access to the record represented by the ActiveRecord object

Overrides:
lock in class arutilities

read

public any read([struct objectid='[runtime expression]'])
loads data for the indicated record from the database

Parameters:
objectid

setNewID

private any setNewID()

Overrides:
setNewID in class arschema

DataFaucet 1.0 Beta