ConnectionFactory

connection factory handles the creation of database connections and manages them via a connection cache singleton

see

ConnectionCache ConnFactoryException DataAccess

Summary
connection factory handles the creation of database connections and manages them via a connection cache singleton
creates an instance of the connection cache and returns either an existing DataAccess object or creates and returns a new DataAccess object if it cannot create a new DataAccess object, throws a ConnFactoryException

methods

makeConnection

public static function makeConnection($connStr)

creates an instance of the connection cache and returns either an existing DataAccess object or creates and returns a new DataAccess object if it cannot create a new DataAccess object, throws a ConnFactoryException

parameters

connStrdatabase connection string

returns

DataAccess object

public static function makeConnection($connStr)
creates an instance of the connection cache and returns either an existing DataAccess object or creates and returns a new DataAccess object if it cannot create a new DataAccess object, throws a ConnFactoryException