## [System.Data.ActiveRecord] element index

### Package indexes

- System.Caching
- System.Collections
- System.Data.ActiveRecord.Relations
- System.Data.ActiveReecord.Scaffold.InputBuilder
- System.Data.ActiveRecord.Scaffold
- System.Data.Common
- System.Data.Common.Pgsql
- System.Data.Common.Mssql
- System.Data.Common.Mysql
- System.Data.Commom.Sqlite
- System.Data.Common.Oracle
- System.Data.Common.Sqlite
- System.Data.DataGateway
- System.Data.SqlMap.Configuration
- System.Data.SqlMap.Statements
- System.Data.SqlMap
- System.Data
- System.Exceptions
- System.I18N
- System
- System.IO
- System.Security
- System.Util
- System.Web.Services
- System.Web
- System.Web.UI.ActiveControls
- System.Web.UI.WebControls
- System.Web.UI
- System.Web.UI.WebControls.assets
- System.Xml

All elements
_
top

__call
  TActiveRecord::__call() in TActiveRecord.php
  Dynamic find method using parts of method name as search criteria.
__construct
  TActiveRecordStateRegistry::__construct() in TActiveRecordStateRegistry.php
  Initialize the registry.
__construct
  TActiveRecord::__construct() in TActiveRecord.php
  Create a new instance of an active record with given $data. The record can be saved to the database specified by the $connection object.
__construct
  TActiveRecordGateway::__construct() in TActiveRecordGateway.php
  Record gateway constructor.
__sleep
  TActiveRecord::__sleep() in TActiveRecord.php
  Prevent __call() method creating __sleep() when serializing.
__wake
  TActiveRecord::__wake() in TActiveRecord.php
  Prevent __call() method creating __wake() when unserializing.

a
top

assertNotNull
  TActiveRecordStateRegistry::assertNotNull() in TActiveRecordStateRegistry.php
  Ensure that object is not null.
HAS_MANY
  TActiveRecord::HAS_MANY in TActiveRecord.php
HAS_ONE
  TActiveRecord::HAS_ONE in TActiveRecord.php
TABLE_CONST
  TActiveRecordGateway::TABLE_CONST in TActiveRecordGateway.php
  Constant name for specifying optional table name in TActiveRecord.

c
top

$COLUMN_MAPPING
  TActiveRecord::$COLUMN_MAPPING in TActiveRecord.php
  This static variable defines the column mapping.
collectObjects
  TActiveRecord::collectObjects() in TActiveRecord.php
commit
  TActiveRecordStateRegistry::commit() in TActiveRecordStateRegistry.php
  Commit the object to database: * a new record is inserted if the object is new, object becomes clean.
commitChanges
  TActiveRecord::commitChanges() in TActiveRecord.php
  Commit changes to the record, may insert, update or delete depending on the record state given in TObjectStateRegistery.
copyFrom
  TActiveRecord::copyFrom() in TActiveRecord.php
  Copies data from an array or another object.
count
  TActiveRecord::count() in TActiveRecord.php
  Find the number of records.
countRecords
  TActiveRecordGateway::countRecords() in TActiveRecordGateway.php
  Returns the number of records that match the given criteria.
createObjectStateRegistry
  TActiveRecordManager::createObjectStateRegistry() in TActiveRecordManager.php
createRecordGateway
  TActiveRecordManager::createRecordGateway() in TActiveRecordManager.php

d
top

delete
  TActiveRecordGateway::delete() in TActiveRecordGateway.php
  Delete the record.
delete
  TActiveRecord::delete() in TActiveRecord.php
  Deletes the current record from the database. Once deleted, this object can not be saved again in the same instance.
deleteAll
  TActiveRecord::deleteAll() in TActiveRecord.php
  Delete multiple records using a criteria.
deleteAllByPks
  TActiveRecord::deleteAllByPks() in TActiveRecord.php
  Alias for deleteByPk()
deleteByPk
  TActiveRecord::deleteByPk() in TActiveRecord.php
  Delete records by primary key. Usage:
deleteRecordsByCriteria
  TActiveRecordGateway::deleteRecordsByCriteria() in TActiveRecordGateway.php
  Delete multiple records by criteria.
deleteRecordsByPk
  TActiveRecordGateway::deleteRecordsByPk() in TActiveRecordGateway.php
  Delete multiple records using primary keys.

e
top

BELONGS_TO
  TActiveRecord::BELONGS_TO in TActiveRecord.php
equals
  TActiveRecord::equals() in TActiveRecord.php
  Compare two records using their primary key values (all column values if table does not defined primary keys). The default uses simple == for comparison of their values. Set $strict=true for identity comparison.

f
top

find
  TActiveRecord::find() in TActiveRecord.php
  Find one single record that matches the criteria.
findAll
  TActiveRecord::findAll() in TActiveRecord.php
  Same as find() but returns an array of objects.
findAllByIndex
  TActiveRecord::findAllByIndex() in TActiveRecord.php
  Fetches records using the sql clause "(fields) IN (values)", where fields is an array of column names and values is an array of values that the columns must have.
findAllByPks
  TActiveRecord::findAllByPks() in TActiveRecord.php
  Find multiple records matching a list of primary or composite keys.
findAllBySql
  TActiveRecord::findAllBySql() in TActiveRecord.php
  Find records using full SQL, returns corresponding record object.
findByPk
  TActiveRecord::findByPk() in TActiveRecord.php
  Find one record using only the primary key or composite primary keys. Usage:
findBySql
  TActiveRecord::findBySql() in TActiveRecord.php
  Find records using full SQL, returns corresponding record object.
finder
  TActiveRecord::finder() in TActiveRecord.php
  Returns the instance of a active record finder for a particular class.
findRecordByPK
  TActiveRecordGateway::findRecordByPK() in TActiveRecordGateway.php
  Returns record data matching the given primary key(s). If the table uses composite key, specify the name value pairs as an array.
findRecordBySql
  TActiveRecordGateway::findRecordBySql() in TActiveRecordGateway.php
  Return record data from sql query.
findRecordsByCriteria
  TActiveRecordGateway::findRecordsByCriteria() in TActiveRecordGateway.php
  Returns record data matching the given critera. If $iterator is true, it will return multiple rows as TDbDataReader otherwise it returns the first row data.
findRecordsByIndex
  TActiveRecordGateway::findRecordsByIndex() in TActiveRecordGateway.php
findRecordsByPks
  TActiveRecordGateway::findRecordsByPks() in TActiveRecordGateway.php
  Returns records matching the list of given primary keys.
findRecordsBySql
  TActiveRecordGateway::findRecordsBySql() in TActiveRecordGateway.php
  Return record data from sql query.

g
top

getCache
  TActiveRecordManager::getCache() in TActiveRecordManager.php
getColumnValue
  TActiveRecord::getColumnValue() in TActiveRecord.php
  Retrieves the column value according to column name.
getCommand
  TActiveRecordGateway::getCommand() in TActiveRecordGateway.php
getCriteria
  TActiveRecord::getCriteria() in TActiveRecord.php
  Create a new TSqlCriteria object from a string $criteria. The $args are additional parameters and are used in place of the $parameters if $parameters is not an array and $args is an arrary.
getDbConnection
  TActiveRecordManager::getDbConnection() in TActiveRecordManager.php
getDbConnection
  TActiveRecord::getDbConnection() in TActiveRecord.php
  Gets the current Db connection, the connection object is obtained from the TActiveRecordManager if connection is currently null.
getEnableCache
  TActiveRecordConfig::getEnableCache() in TActiveRecordConfig.php
getErrorMessageFile
  TActiveRecordException::getErrorMessageFile() in TActiveRecordException.php
getInsertValues
  TActiveRecordGateway::getInsertValues() in TActiveRecordGateway.php
getInstance
  TActiveRecordManager::getInstance() in TActiveRecordManager.php
getManager
  TActiveRecordGateway::getManager() in TActiveRecordGateway.php
getObjectDataKey
  TActiveRecordStateRegistry::getObjectDataKey() in TActiveRecordStateRegistry.php
getObjectStateRegistry
  TActiveRecordManager::getObjectStateRegistry() in TActiveRecordManager.php
getPrimaryKeyValues
  TActiveRecordGateway::getPrimaryKeyValues() in TActiveRecordGateway.php
getRecordGateway
  TActiveRecord::getRecordGateway() in TActiveRecord.php
getRecordGateway
  TActiveRecordManager::getRecordGateway() in TActiveRecordManager.php
getRecordManager
  TActiveRecord::getRecordManager() in TActiveRecord.php
  Gets the record manager for this object, the default is to call TActiveRecordManager::getInstance().
getRecordTableInfo
  TActiveRecordGateway::getRecordTableInfo() in TActiveRecordGateway.php
  Returns table information, trys the application cache first.
getRecordTableName
  TActiveRecordGateway::getRecordTableName() in TActiveRecordGateway.php
  Gets the table name from the 'TABLE' constant of the active record class if defined, otherwise use the class name as table name.
getRelationHandler
  TActiveRecord::getRelationHandler() in TActiveRecord.php
  Returns the active record relationship handler for $RELATION with key value equal to the $property value.
getTableInfo
  TActiveRecordGateway::getTableInfo() in TActiveRecordGateway.php
  Returns table information for table in the database connection.
getUpdateValues
  TActiveRecordGateway::getUpdateValues() in TActiveRecordGateway.php

i
top

init
  TActiveRecordConfig::init() in TActiveRecordConfig.php
  Initialize the active record manager.
insert
  TActiveRecordGateway::insert() in TActiveRecordGateway.php
  Insert a new record.
isCleanObject
  TActiveRecordStateRegistry::isCleanObject() in TActiveRecordStateRegistry.php
  Test whether an object is in the clean state.
isDirtyObject
  TActiveRecordStateRegistry::isDirtyObject() in TActiveRecordStateRegistry.php
  Test whether an object is dirty or has been modified.
isNewObject
  TActiveRecordStateRegistry::isNewObject() in TActiveRecordStateRegistry.php
  Test whether an object is a new instance.
isRemovedObject
  TActiveRecordStateRegistry::isRemovedObject() in TActiveRecordStateRegistry.php
  Test whether an object is marked for deletion.

o
top

onCreateCommand
  TActiveRecordGateway::onCreateCommand() in TActiveRecordGateway.php
  Raised when a command is prepared and parameter binding is completed.
onCreateCommand
  TActiveRecord::onCreateCommand() in TActiveRecord.php
  Raised when a command is prepared and parameter binding is completed.
onExecuteCommand
  TActiveRecordGateway::onExecuteCommand() in TActiveRecordGateway.php
  Raised when a command is executed and the result from the database was returned.
onExecuteCommand
  TActiveRecord::onExecuteCommand() in TActiveRecord.php
  Raised when a command is executed and the result from the database was returned.

p
top

populateObject
  TActiveRecord::populateObject() in TActiveRecord.php
  Populate the record with data, registers the object as clean.

r
top

$RELATIONS
  TActiveRecord::$RELATIONS in TActiveRecord.php
  This static variable defines the relationships.
raiseCommandEvent
  TActiveRecordGateway::raiseCommandEvent() in TActiveRecordGateway.php
  Raise the corresponding command event, insert, update, delete or select.
registerClean
  TActiveRecordStateRegistry::registerClean() in TActiveRecordStateRegistry.php
  Register a clean object attached to a specific data that was used to populate the object. This acts as an object cache.
registerRemoved
  TActiveRecordStateRegistry::registerRemoved() in TActiveRecordStateRegistry.php
  Register the object for deletion, when the object invokes its delete() method the corresponding row in the database is deleted.
removeClean
  TActiveRecordStateRegistry::removeClean() in TActiveRecordStateRegistry.php
  Remove object from clean state.
removeCleanOrDirty
  TActiveRecordStateRegistry::removeCleanOrDirty() in TActiveRecordStateRegistry.php
  Remove object from dirty and clean state.
removeDirty
  TActiveRecordStateRegistry::removeDirty() in TActiveRecordStateRegistry.php
  Remove the object from dirty state.
removeRemovedObject
  TActiveRecordStateRegistry::removeRemovedObject() in TActiveRecordStateRegistry.php
  Remove object from removed state.

s
top

save
  TActiveRecord::save() in TActiveRecord.php
  Saves the current record to the database, insert or update is automatically determined.
setCache
  TActiveRecordManager::setCache() in TActiveRecordManager.php
setColumnValue
  TActiveRecord::setColumnValue() in TActiveRecord.php
  Sets the column value according to column name.
setDbConnection
  TActiveRecord::setDbConnection() in TActiveRecord.php
setDbConnection
  TActiveRecordManager::setDbConnection() in TActiveRecordManager.php
setEnableCache
  TActiveRecordConfig::setEnableCache() in TActiveRecordConfig.php
  Set true to cache the table meta data.
shouldPersistObject
  TActiveRecordStateRegistry::shouldPersistObject() in TActiveRecordStateRegistry.php

t
top

TActiveRecordException.php
  TActiveRecordException.php in TActiveRecordException.php
TActiveRecordConfig.php
  TActiveRecordConfig.php in TActiveRecordConfig.php
TActiveRecordCriteria.php
  TActiveRecordCriteria.php in TActiveRecordCriteria.php
TActiveRecordGateway.php
  TActiveRecordGateway.php in TActiveRecordGateway.php
TActiveRecordManager.php
  TActiveRecordManager.php in TActiveRecordManager.php
TActiveRecordStateRegistry.php
  TActiveRecordStateRegistry.php in TActiveRecordStateRegistry.php
TActiveRecord.php
  TActiveRecord.php in TActiveRecord.php
TActiveRecord
  TActiveRecord in TActiveRecord.php
  Base class for active records.
TActiveRecordConfig
  TActiveRecordConfig in TActiveRecordConfig.php
  TActiveRecordConfig module configuration class.
TActiveRecordConfigurationException
  TActiveRecordConfigurationException in TActiveRecordException.php
  Base exception class for Active Records.
TActiveRecordCriteria
  TActiveRecordCriteria in TActiveRecordCriteria.php
  Search criteria for Active Record.
TActiveRecordException
  TActiveRecordException in TActiveRecordException.php
  Base exception class for Active Records.
TActiveRecordGateway
  TActiveRecordGateway in TActiveRecordGateway.php
  TActiveRecordGateway excutes the SQL command queries and returns the data record as arrays (for most finder methods).
TActiveRecordManager
  TActiveRecordManager in TActiveRecordManager.php
  TActiveRecordManager provides the default DB connection, default object state registry, default active record gateway, and table meta data inspector.
TActiveRecordStateRegistry
  TActiveRecordStateRegistry in TActiveRecordStateRegistry.php
  Active record Unit of Work class and Identity Map.

u
top

update
  TActiveRecordGateway::update() in TActiveRecordGateway.php
  Update the record.
updateAssociatedRecords
  TActiveRecordGateway::updateAssociatedRecords() in TActiveRecordGateway.php
updatePostInsert
  TActiveRecordGateway::updatePostInsert() in TActiveRecordGateway.php
  Sets the last insert ID to the corresponding property of the record if available.