Pool of DB's instances. More...
Public Member Functions | |
setDefault (DB $db) | |
dropDefault () | |
addLink ($name, DB $db) | |
dropLink ($name) | |
getLink ($name=null) | |
shutdown () | |
disconnect () | |
Static Public Member Functions | |
static | me () |
static | getByDao (GenericDAO $dao) |
Private Attributes | |
$default = null | |
$pool = array() |
Pool of DB's instances.
Definition at line 17 of file DBPool.class.php.
DBPool::addLink | ( | $ | name, | |
DB $ | db | |||
) |
DBPool::disconnect | ( | ) |
DBPool::dropDefault | ( | ) |
Definition at line 52 of file DBPool.class.php.
DBPool::dropLink | ( | $ | name | ) |
static DBPool::getByDao | ( | GenericDAO $ | dao | ) | [static] |
Definition at line 34 of file DBPool.class.php.
References GenericDAO::getLinkName(), and me().
Referenced by StorableDAO::add(), BaseDaoWorker::cachedFetchObject(), GenericDAO::doInject(), BaseDaoWorker::dropById(), BaseDaoWorker::dropByIds(), UnifiedContainerWorker::dropList(), BaseDaoWorker::fetchList(), BaseDaoWorker::fetchObject(), CommonDaoWorker::getCustom(), CommonDaoWorker::getCustomList(), CommonDaoWorker::getCustomRowList(), CommonDaoWorker::getQueryResult(), DaoUtils::increment(), CarefulDatabaseRunner::run(), UnifiedContainer::save(), OneToManyLinkedLazy::sync(), OneToManyLinkedFull::sync(), ManyToManyLinkedLazy::sync(), ManyToManyLinkedFull::sync(), Criteria::toString(), and LightMetaProperty::toValue().
DBPool::getLink | ( | $ | name = null |
) |
static DBPool::me | ( | ) | [static] |
Implements Instantiatable.
Definition at line 26 of file DBPool.class.php.
References Singleton::getInstance().
Referenced by MetaConfiguration::checkEnumerationReferentialIntegrity(), DebugUtils::eq(), getByDao(), CommonDaoWorker::getById(), CommonDaoWorker::getByQuery(), CommonDaoWorker::getCustom(), CommonDaoWorker::getCustomList(), CommonDaoWorker::getCustomRowList(), CommonDaoWorker::getListByQuery(), MyImprovedDialect::quoteBinary(), MyImprovedDialect::quoteValue(), and DaoUtils::swap().
DBPool::setDefault | ( | DB $ | db | ) |
Definition at line 42 of file DBPool.class.php.
DBPool::shutdown | ( | ) |
Definition at line 125 of file DBPool.class.php.
References disconnect().
DBPool::$default = null [private] |
Definition at line 19 of file DBPool.class.php.
DBPool::$pool = array() [private] |
Definition at line 21 of file DBPool.class.php.