## [System.Data.ActiveRecord] element index

### Package indexes

- System.Caching
- default
- System.Collections
- System.Data.ActiveRecord.Vendor
- System.Data.SqlMap
- System.Data.SqlMap.Statements
- 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.Xml

All elements
_
top

__call
  TActiveRecord::__call() in TActiveRecord.php
  Dynamic find method using parts of method name as search criteria.
__construct
  TActiveRecordGateway::__construct() in TActiveRecordGateway.php
  Record gateway constructor.
__construct
  TActiveRecordGatewayEventParameter::__construct() in TActiveRecordGateway.php
  New gateway command event parameter.
__construct
  TActiveRecordCriteria::__construct() in TActiveRecordCriteria.php
  Creates a new criteria with given condition;
__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
  TActiveRecordStateRegistry::__construct() in TActiveRecordStateRegistry.php
  Initialize the registry.
__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

addCachedInstance
  TActiveRecordStateRegistry::addCachedInstance() in TActiveRecordStateRegistry.php
  Cache the object that corresponding to the fetched row data.
assertNotNull
  TActiveRecordStateRegistry::assertNotNull() in TActiveRecordStateRegistry.php
  Ensure that object is not null.

c
top

cacheMetaData
  TActiveRecordGateway::cacheMetaData() in TActiveRecordGateway.php
  Cache the meta data, tries the application cache if applicable.
commit
  TActiveRecordStateRegistry::commit() in TActiveRecordStateRegistry.php
  Commit the object to database: * a new record is inserted if the object is new, object becomes clean.
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.
createMetaDataInspector
  TActiveRecordManager::createMetaDataInspector() in TActiveRecordManager.php
  Create an instance of a database meta inspector corresponding to the given database vendor specified by the $driver parameter.
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.
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

Delete
  TActiveRecordStatementType::Delete in TActiveRecordGateway.php
Select
  TActiveRecordStatementType::Select in TActiveRecordGateway.php

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.
findAllByPks
  TActiveRecord::findAllByPks() in TActiveRecord.php
  Find multiple records matching a list of primary or composite keys.
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.
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.
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.
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
getCachedInstance
  TActiveRecordStateRegistry::getCachedInstance() in TActiveRecordStateRegistry.php
  Get the cached object for given type and row data. The cached object must also be clean.
getCachedMetaData
  TActiveRecordGateway::getCachedMetaData() in TActiveRecordGateway.php
getCommand
  TActiveRecordGatewayEventParameter::getCommand() in TActiveRecordGateway.php
getCondition
  TActiveRecordCriteria::getCondition() in TActiveRecordCriteria.php
getData
  TActiveRecordGatewayEventParameter::getData() in TActiveRecordGateway.php
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
getInstance
  TActiveRecordManager::getInstance() in TActiveRecordManager.php
getIsCleanObject
  TActiveRecordStateRegistry::getIsCleanObject() in TActiveRecordStateRegistry.php
  Test whether an object is in the clean state.
getIsDirtyObject
  TActiveRecordStateRegistry::getIsDirtyObject() in TActiveRecordStateRegistry.php
  Test whether an object is dirty or has been modified.
getIsNamedParameters
  TActiveRecordCriteria::getIsNamedParameters() in TActiveRecordCriteria.php
getIsNewObject
  TActiveRecordStateRegistry::getIsNewObject() in TActiveRecordStateRegistry.php
  Test whether an object is a new instance.
getIsRemovedObject
  TActiveRecordStateRegistry::getIsRemovedObject() in TActiveRecordStateRegistry.php
  Test whether an object is marked for deletion.
getLimit
  TActiveRecordCriteria::getLimit() in TActiveRecordCriteria.php
getManager
  TActiveRecordGateway::getManager() in TActiveRecordGateway.php
getMetaData
  TActiveRecordGateway::getMetaData() in TActiveRecordGateway.php
  Gets the meta data for given database and table.
getMetaDataCacheKey
  TActiveRecordGateway::getMetaDataCacheKey() in TActiveRecordGateway.php
getObjectDataKey
  TActiveRecordStateRegistry::getObjectDataKey() in TActiveRecordStateRegistry.php
getObjectStateRegistry
  TActiveRecordManager::getObjectStateRegistry() in TActiveRecordManager.php
getOffset
  TActiveRecordCriteria::getOffset() in TActiveRecordCriteria.php
getOrdersBy
  TActiveRecordCriteria::getOrdersBy() in TActiveRecordCriteria.php
getParameters
  TActiveRecordCriteria::getParameters() in TActiveRecordCriteria.php
getRecord
  TActiveRecordGatewayEventParameter::getRecord() in TActiveRecordGateway.php
getRecordFinder
  TActiveRecord::getRecordFinder() in TActiveRecord.php
  Returns the instance of a active record finder for a particular class.
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().
getTableInspector
  TActiveRecordManager::getTableInspector() in TActiveRecordManager.php
  Get table meta data for particular database and table.
getTableName
  TActiveRecordGateway::getTableName() in TActiveRecordGateway.php
  Gets the table name from the $_tablename property of the active record class if defined, otherwise use the class name as table name.
getType
  TActiveRecordGatewayEventParameter::getType() 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.

n
top

Insert
  TActiveRecordStatementType::Insert in TActiveRecordGateway.php

o
top

onDelete
  TActiveRecordManager::onDelete() in TActiveRecordManager.php
  This method is invoked before the object is deleted from the database.
onInsert
  TActiveRecordManager::onInsert() in TActiveRecordManager.php
  This method is invoked before the object is inserted into the database.
onSelect
  TActiveRecordManager::onSelect() in TActiveRecordManager.php
  This method is invoked before any select query is executed on the database.
onUpdate
  TActiveRecordManager::onUpdate() in TActiveRecordManager.php
  This method is invoked before the object data is updated in the database.

p
top

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

r
top

PROPERTY_TABLE_NAME
  TActiveRecordGateway::PROPERTY_TABLE_NAME in TActiveRecordGateway.php
  Property name for optional table name in TActiveRecord.
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
setCondition
  TActiveRecordCriteria::setCondition() in TActiveRecordCriteria.php
  Sets the search conditions to be placed after the WHERE clause in the SQL.
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.
setLimit
  TActiveRecordCriteria::setLimit() in TActiveRecordCriteria.php
setOffset
  TActiveRecordCriteria::setOffset() in TActiveRecordCriteria.php
setOrdersBy
  TActiveRecordCriteria::setOrdersBy() in TActiveRecordCriteria.php
setParameters
  TActiveRecordCriteria::setParameters() in TActiveRecordCriteria.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.
TActiveRecordEventParameter
  TActiveRecordEventParameter in TActiveRecordManager.php
  TActiveRecordEventParameter class.
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).
TActiveRecordGatewayEventParameter
  TActiveRecordGatewayEventParameter in TActiveRecordGateway.php
  Active Record command event parameter.
TActiveRecordManager
  TActiveRecordManager in TActiveRecordManager.php
  TActiveRecordManager provides the default DB connection, default object state registry, default active record gateway, and table meta data inspector.
TActiveRecordStatementType
  TActiveRecordStatementType in TActiveRecordGateway.php
  Command statement types.
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.