DBPool Class Reference
[Connectors and dialects for various databases]

Pool of DB's instances. More...

Inheritance diagram for DBPool:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 setDefault (DB $db)
 
Returns:
DBPool

 dropDefault ()
 
Returns:
DBPool

 addLink ($name, DB $db)
 
Exceptions:
WrongArgumentException 

 dropLink ($name)
 
Exceptions:
MissingElementException 

 getLink ($name=null)
 
Exceptions:
MissingElementException 

 shutdown ()
 
Returns:
DBPool

 disconnect ()
 
Returns:
DBPool


Static Public Member Functions

static me ()
 
Returns:
DBPool

static getByDao (GenericDAO $dao)
 
Returns:
DB


Private Attributes

 $default = null
 $pool = array()


Detailed Description

Pool of DB's instances.

Definition at line 18 of file DBPool.class.php.


Member Function Documentation

static DBPool::me (  )  [static]

Returns:
DBPool

Implements Instantiatable.

Definition at line 27 of file DBPool.class.php.

References Singleton::getInstance().

Referenced by MetaConfiguration::buildSchemaChanges(), DebugUtils::eq(), CommonDaoWorker::getById(), CommonDaoWorker::getByQuery(), CommonDaoWorker::getCustom(), CommonDaoWorker::getCustomList(), CommonDaoWorker::getCustomRowList(), CommonDaoWorker::getListByQuery(), MyImprovedDialect::quoteValue(), and DaoUtils::swap().

Here is the call graph for this function:

static DBPool::getByDao ( GenericDAO dao  )  [static]

Returns:
DB

Definition at line 35 of file DBPool.class.php.

Referenced by OneToManyLinkedLazy::$insert(), OneToManyLinkedFull::$insert(), ManyToManyLinkedLazy::$insert(), ManyToManyLinkedFull::$insert(), StorableDAO::add(), NullDaoWorker::dropById(), BaseDaoWorker::dropById(), NullDaoWorker::dropByIds(), BaseDaoWorker::dropByIds(), BaseDaoWorker::fetchList(), BaseDaoWorker::fetchObject(), TransparentDaoWorker::getCustom(), NullDaoWorker::getCustom(), CommonDaoWorker::getCustom(), TransparentDaoWorker::getCustomList(), NullDaoWorker::getCustomList(), CommonDaoWorker::getCustomList(), TransparentDaoWorker::getCustomRowList(), NullDaoWorker::getCustomRowList(), CommonDaoWorker::getCustomRowList(), TransparentDaoWorker::getQueryResult(), NullDaoWorker::getQueryResult(), CommonDaoWorker::getQueryResult(), StorableDAO::inject(), CarefulDatabaseRunner::run(), UnifiedContainer::save(), and Criteria::toString().

DBPool::setDefault ( DB db  ) 

Returns:
DBPool

Definition at line 43 of file DBPool.class.php.

DBPool::dropDefault (  ) 

Returns:
DBPool

Definition at line 53 of file DBPool.class.php.

DBPool::addLink ( name,
DB db 
)

Exceptions:
WrongArgumentException 

Returns:
DBPool

Definition at line 64 of file DBPool.class.php.

DBPool::dropLink ( name  ) 

Exceptions:
MissingElementException 

Returns:
DBPool

Definition at line 80 of file DBPool.class.php.

DBPool::getLink ( name = null  ) 

Exceptions:
MissingElementException 

Returns:
DB

Definition at line 96 of file DBPool.class.php.

DBPool::shutdown (  ) 

Returns:
DBPool

Definition at line 126 of file DBPool.class.php.

References disconnect().

Here is the call graph for this function:

DBPool::disconnect (  ) 

Returns:
DBPool

Definition at line 139 of file DBPool.class.php.

Referenced by shutdown().


Member Data Documentation

DBPool::$default = null [private]

Definition at line 20 of file DBPool.class.php.

DBPool::$pool = array() [private]

Definition at line 22 of file DBPool.class.php.


The documentation for this class was generated from the following file:
Generated on Sun Dec 9 21:57:15 2007 for onPHP by  doxygen 1.5.4