class Doctrine_Adapter_Oracle implements Doctrine_Adapter_Interface (View source)

Custom Doctrine connection adapter for oracle

Properties

protected $executeMode execution mode
protected $connection Resource representing connection to database
protected $attributes
protected array $config User-provided configuration.

Methods

void
__construct($config = array(), $username = null, $password = null)

Doctrine Oracle adapter constructor

prepare(string $query)

Prepare a query statement

query(string $query)

Execute query and return results as statement object

quote($input)

Quote a value for the dbms

exec($statement)

Execute a raw sql statement

lastInsertId()

Get the id of the last inserted record

beginTransaction()

Begin a transaction

commit()

Commit a transaction

rollBack()

Rollback a transaction

setAttribute($attribute, $value)

Set connection attribute

getAttribute($attribute)

Retrieve a statement attribute

resource
getConnection()

Returns established OCI connection handler

string
getUserName()

Returns current user name

errorCode()

No description

errorInfo()

No description

__destruct()

No description

Details

void __construct($config = array(), $username = null, $password = null)

Doctrine Oracle adapter constructor

$conn = new Doctrine_Adapter_Oracle(array('dbname'=>'db','username'=>'usr','password'=>'pass'));

or

Doctrine_Manager::connection(array('oracle:dbname=SID;charset=NLS_CHARACTERSET;persistent=true','usr', 'pass'),"doctrine_connection_name")

Parameters

$config
$username
$password

Return Value

void

prepare(string $query)

Prepare a query statement

Parameters

string $query Query to prepare

query(string $query)

Execute query and return results as statement object

Parameters

string $query

quote($input)

Quote a value for the dbms

Parameters

$input

exec($statement)

Execute a raw sql statement

Parameters

$statement

lastInsertId()

Get the id of the last inserted record

beginTransaction()

Begin a transaction

commit()

Commit a transaction

rollBack()

Rollback a transaction

setAttribute($attribute, $value)

Set connection attribute

Parameters

$attribute
$value

getAttribute($attribute)

Retrieve a statement attribute

Parameters

$attribute

See also

Doctrine_Core::ATTR_* constants

resource getConnection()

Returns established OCI connection handler

Return Value

resource OCI connection handler

string getUserName()

Returns current user name

Return Value

string current user name

errorCode()

errorInfo()

__destruct()