|
Doctrine 1.2.4
|
Inherits Doctrine_Adapter_Interface.
Public Member Functions | |
| __construct ($config=array(), $username=null, $password=null) | |
| beginTransaction () | |
| commit () | |
| exec ($statement) | |
| getAttribute ($attribute) | |
| getConnection () | |
| getUserName () | |
| lastInsertId () | |
| prepare ($query) | |
| query ($query) | |
| quote ($input) | |
| rollBack () | |
| setAttribute ($attribute, $value) | |
Protected Attributes | |
| $connection = false | |
| $executeMode = OCI_COMMIT_ON_SUCCESS | |
Definition at line 36 of file Oracle.php.
| Doctrine_Adapter_Oracle::__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")
| string | $name |
Definition at line 88 of file Oracle.php.
| Doctrine_Adapter_Oracle::beginTransaction | ( | ) |
Begin a transaction
Definition at line 206 of file Oracle.php.
| Doctrine_Adapter_Oracle::commit | ( | ) |
Commit a transaction
Definition at line 217 of file Oracle.php.
| Doctrine_Adapter_Oracle::exec | ( | $statement | ) |
Execute a raw sql statement
| string | $statement |
Definition at line 182 of file Oracle.php.
| Doctrine_Adapter_Oracle::getAttribute | ( | $attribute | ) |
Retrieve a statement attribute
| integer | $attribute |
Definition at line 267 of file Oracle.php.
| Doctrine_Adapter_Oracle::getConnection | ( | ) |
Returns established OCI connection handler
Definition at line 277 of file Oracle.php.
| Doctrine_Adapter_Oracle::getUserName | ( | ) |
Returns current user name
Definition at line 287 of file Oracle.php.
| Doctrine_Adapter_Oracle::lastInsertId | ( | ) |
Get the id of the last inserted record
Definition at line 196 of file Oracle.php.
| Doctrine_Adapter_Oracle::prepare | ( | $query | ) |
Prepare a query statement
| string | $query | Query to prepare |
Definition at line 144 of file Oracle.php.
| Doctrine_Adapter_Oracle::query | ( | $query | ) |
Execute query and return results as statement object
| string | $query |
Definition at line 157 of file Oracle.php.
| Doctrine_Adapter_Oracle::quote | ( | $input | ) |
Quote a value for the dbms
| string | $input |
Definition at line 171 of file Oracle.php.
| Doctrine_Adapter_Oracle::rollBack | ( | ) |
Rollback a transaction
Definition at line 227 of file Oracle.php.
| Doctrine_Adapter_Oracle::setAttribute | ( | $attribute, | |
| $value | |||
| ) |
Set connection attribute
| integer | $attribute | |
| mixed | $value | the value of given attribute |
Definition at line 239 of file Oracle.php.
|
protected |
Resource representing connection to database
Definition at line 46 of file Oracle.php.
|
protected |
execution mode
Definition at line 41 of file Oracle.php.