Inheritance diagram for DboOracle:

Public Member Functions | |
| _execute ($sql) | |
| _scrapeSQL ($sql) | |
| _setError ($source=null, $clear=false) | |
| alterSchema ($compare, $table=null) | |
| begin () | |
| column ($real) | |
| commit () | |
| connect () | |
| constraint ($action, $table) | |
| createSequence ($sequence) | |
| createTrigger ($table) | |
| describe (&$model) | |
| disconnect () | |
| dropSchema ($schema, $table=null) | |
| fetchResult () | |
| fetchRow () | |
| getEncoding () | |
| index ($model) | |
| lastAffected () | |
| lastError () | |
| lastInsertId ($source) | |
| lastNumRows () | |
| limit ($limit=-1, $offset=0) | |
| listSources () | |
| name ($name) | |
| queryAssociation (&$model, &$linkModel, $type, $association, $assocData, &$queryData, $external=false, &$resultSet, $recursive, $stack) | |
| renderStatement ($type, $data) | |
| rollback () | |
| sequenceExists ($sequence) | |
| setEncoding ($lang) | |
| truncate ($table, $reset=0) | |
| value ($data, $column=null, $safe=false) | |
Public Attributes | |
| $__transactionStarted = false | |
| $_baseConfig | |
| $_currentRow | |
| $_error | |
| $_limit = -1 | |
| $_map | |
| $_numRows | |
| $_offset = 0 | |
| $_results | |
| $_sequenceMap = array() | |
| $_sequences = array() | |
| $alias = '' | |
| $columns | |
| $config = array() | |
| $connection | |
Definition at line 35 of file dbo_oracle.php.
| DboOracle::_execute | ( | $ | sql | ) |
Executes given SQL statement. This is an overloaded method.
| string | $sql SQL statement |
Definition at line 322 of file dbo_oracle.php.
References _scrapeSQL(), _setError(), and limit().
| DboOracle::_scrapeSQL | ( | $ | sql | ) |
Scrape the incoming SQL to create the association map. This is an extremely experimental method that creates the association maps since Oracle will not tell us.
| string | $sql |
Definition at line 252 of file dbo_oracle.php.
Referenced by _execute().
| DboOracle::_setError | ( | $ | source = null, |
|
| $ | clear = false | |||
| ) |
Keeps track of the most recent Oracle error
Definition at line 193 of file dbo_oracle.php.
Referenced by _execute(), and connect().
| DboOracle::alterSchema | ( | $ | compare, | |
| $ | table = null | |||
| ) |
Generate a Oracle Alter Table syntax for the given Schema comparison
| unknown_type | $schema |
Reimplemented from DboSource.
Definition at line 670 of file dbo_oracle.php.
References $out, DboSource::buildColumn(), DboSource::fullTableName(), and name().
| DboOracle::begin | ( | ) |
Begin a transaction
| unknown_type | $model |
Definition at line 740 of file dbo_oracle.php.
| DboOracle::column | ( | $ | real | ) |
Converts database-layer column types to basic types
| string | $real Real database-layer column type (i.e. "varchar(255)") |
Reimplemented from DataSource.
Definition at line 774 of file dbo_oracle.php.
References limit(), and name().
Referenced by describe(), and index().
| DboOracle::commit | ( | ) |
Commit a transaction
| unknown_type | $model |
Definition at line 763 of file dbo_oracle.php.
| DboOracle::connect | ( | ) |
Connects to the database using options in the given configuration array.
Definition at line 160 of file dbo_oracle.php.
References $config, _setError(), config(), and DboSource::execute().
| DboOracle::constraint | ( | $ | action, | |
| $ | table | |||
| ) |
Enables, disables, and lists table constraints
Note: This method could have been written using a subselect for each table, however the effort Oracle expends to run the constraint introspection is very high. Therefore, this method caches the result once and loops through the arrays to find what it needs. It reduced my query time by 50%. YMMV.
| string | $action | |
| string | $table |
Definition at line 558 of file dbo_oracle.php.
References __(), DboSource::execute(), and fetchRow().
| DboOracle::createSequence | ( | $ | sequence | ) |
Creates a database sequence
| string | $sequence |
Definition at line 420 of file dbo_oracle.php.
References DboSource::execute().
| DboOracle::createTrigger | ( | $ | table | ) |
Enter description here...
| unknown_type | $table |
Definition at line 431 of file dbo_oracle.php.
References DboSource::execute().
| DboOracle::describe | ( | &$ | model | ) |
Returns an array of the fields in given table name.
| object | instance of a model to inspect |
Definition at line 467 of file dbo_oracle.php.
References DataSource::__cacheDescription(), column(), DboSource::execute(), fetchRow(), DboSource::fullTableName(), and DboSource::length().
| DboOracle::disconnect | ( | ) |
Disconnects from database.
Definition at line 238 of file dbo_oracle.php.
| DboOracle::dropSchema | ( | $ | schema, | |
| $ | table = null | |||
| ) |
Generate a "drop table" statement for the given Schema object
| object | $schema An instance of a subclass of CakeSchema | |
| string | $table Optional. If specified only the table name given will be generated. Otherwise, all tables defined in the schema are generated. |
Reimplemented from DboSource.
Definition at line 1106 of file dbo_oracle.php.
References $columns, $out, __(), and DboSource::fullTableName().
| DboOracle::fetchResult | ( | ) |
Fetches the next row from the current result set
Definition at line 396 of file dbo_oracle.php.
References fetchRow().
| DboOracle::fetchRow | ( | ) |
Enter description here...
Definition at line 368 of file dbo_oracle.php.
References DboSource::$index.
Referenced by constraint(), describe(), fetchResult(), getEncoding(), lastInsertId(), listSources(), sequenceExists(), and truncate().
| DboOracle::getEncoding | ( | ) |
Gets the current encoding language
Definition at line 221 of file dbo_oracle.php.
References DboSource::execute(), and fetchRow().
| DboOracle::index | ( | $ | model | ) |
Returns an array of the indexes in given table name.
| string | $model Name of model to inspect |
Reimplemented from DboSource.
Definition at line 629 of file dbo_oracle.php.
References DboSource::$index, column(), DboSource::fullTableName(), and DboSource::query().
| DboOracle::lastAffected | ( | ) |
Returns number of affected rows in previous database operation. If no previous operation exists, this returns false.
Definition at line 892 of file dbo_oracle.php.
| DboOracle::lastError | ( | ) |
Returns a formatted error message from previous database operation.
Definition at line 883 of file dbo_oracle.php.
| DboOracle::lastInsertId | ( | $ | source | ) |
Returns the ID generated from the previous INSERT operation.
| string |
Reimplemented from DataSource.
Definition at line 864 of file dbo_oracle.php.
References DboSource::execute(), and fetchRow().
| DboOracle::lastNumRows | ( | ) |
Returns number of rows in previous resultset. If no previous resultset exists, this returns false.
Definition at line 312 of file dbo_oracle.php.
| DboOracle::limit | ( | $ | limit = -1, |
|
| $ | offset = 0 | |||
| ) |
Modify a SQL query to limit (and offset) the result set
| integer | $limit Maximum number of rows to return | |
| integer | $offset Row to begin returning |
Reimplemented from DboSource.
Definition at line 301 of file dbo_oracle.php.
Referenced by _execute(), column(), and queryAssociation().
| DboOracle::listSources | ( | ) |
Returns an array of tables in the database. If there are no tables, an error is raised and the application exits.
Definition at line 442 of file dbo_oracle.php.
References DboSource::execute(), fetchRow(), and name().
| DboOracle::name | ( | $ | name | ) |
This method should quote Oracle identifiers. Well it doesn't. It would break all scaffolding and all of Cake's default assumptions.
| unknown_type | $var |
Reimplemented from DboSource.
Definition at line 720 of file dbo_oracle.php.
Referenced by alterSchema(), column(), and listSources().
| DboOracle::queryAssociation | ( | &$ | model, | |
| &$ | linkModel, | |||
| $ | type, | |||
| $ | association, | |||
| $ | assocData, | |||
| &$ | queryData, | |||
| $ | external = false, |
|||
| &$ | resultSet, | |||
| $ | recursive, | |||
| $ | stack | |||
| ) |
Enter description here...
| Model | $model | |
| unknown_type | $linkModel | |
| string | $type Association type | |
| unknown_type | $association | |
| unknown_type | $assocData | |
| unknown_type | $queryData | |
| unknown_type | $external | |
| unknown_type | $resultSet | |
| integer | $recursive Number of levels of association | |
| array | $stack |
Reimplemented from DboSource.
Definition at line 954 of file dbo_oracle.php.
References $res, __(), DboSource::__mergeAssociation(), DboSource::__mergeHasMany(), Set::diff(), error(), DboSource::fetchAll(), DboSource::generateAssociationQuery(), ConnectionManager::getDataSource(), DataSource::insertQueryData(), limit(), and Configure::read().
| DboOracle::renderStatement | ( | $ | type, | |
| $ | data | |||
| ) |
Renders a final SQL statement by putting together the component parts in the correct order
| string | $type | |
| array | $data |
Reimplemented from DboSource.
Definition at line 902 of file dbo_oracle.php.
References $alias, $columns, DboSource::create(), and DboSource::update().
| DboOracle::rollback | ( | ) |
Rollback a transaction
| unknown_type | $model |
Definition at line 752 of file dbo_oracle.php.
| DboOracle::sequenceExists | ( | $ | sequence | ) |
Checks to see if a named sequence exists
| string | $sequence |
Definition at line 406 of file dbo_oracle.php.
References DboSource::execute(), and fetchRow().
| DboOracle::setEncoding | ( | $ | lang | ) |
Sets the encoding language of the session
| string | $lang language constant |
Definition at line 210 of file dbo_oracle.php.
References DboSource::execute().
| DboOracle::truncate | ( | $ | table, | |
| $ | reset = 0 | |||
| ) |
Deletes all the records in a table and drops all associated auto-increment sequences. Using DELETE instead of TRUNCATE because it causes locking problems.
| mixed | $table A string or model class representing the table to be truncated | |
| integer | $reset If -1, sequences are dropped, if 0 (default), sequences are reset, and if 1, sequences are not modified |
Definition at line 512 of file dbo_oracle.php.
References DboSource::execute(), fetchRow(), and DboSource::fullTableName().
| DboOracle::value | ( | $ | data, | |
| $ | column = null, |
|||
| $ | safe = false | |||
| ) |
Returns a quoted and escaped string of $data for use in an SQL statement.
| string | $data String to be prepared for use in an SQL statement |
Reimplemented from DboSource.
Definition at line 824 of file dbo_oracle.php.
| DboOracle::$__transactionStarted = false |
Definition at line 58 of file dbo_oracle.php.
| DboOracle::$_baseConfig |
Initial value:
array(
'persistent' => true,
'host' => 'localhost',
'login' => 'system',
'password' => '',
'database' => 'cake',
'nls_sort' => '',
'nls_sort' => ''
)
Reimplemented from DataSource.
Definition at line 139 of file dbo_oracle.php.
| DboOracle::$_currentRow |
Definition at line 113 of file dbo_oracle.php.
| DboOracle::$_error |
Definition at line 133 of file dbo_oracle.php.
| DboOracle::$_limit = -1 |
Definition at line 92 of file dbo_oracle.php.
| DboOracle::$_map |
Definition at line 106 of file dbo_oracle.php.
| DboOracle::$_numRows |
Definition at line 120 of file dbo_oracle.php.
| DboOracle::$_offset = 0 |
Definition at line 99 of file dbo_oracle.php.
| DboOracle::$_results |
Definition at line 127 of file dbo_oracle.php.
| DboOracle::$_sequenceMap = array() |
Definition at line 153 of file dbo_oracle.php.
| DboOracle::$_sequences = array() |
Sequence names as introspected from the database
Definition at line 52 of file dbo_oracle.php.
| DboOracle::$alias = '' |
Reimplemented from DboSource.
Definition at line 48 of file dbo_oracle.php.
Referenced by renderStatement().
| DboOracle::$columns |
Initial value:
array(
'primary_key' => array('name' => ''),
'string' => array('name' => 'varchar2', 'limit' => '255'),
'text' => array('name' => 'varchar2'),
'integer' => array('name' => 'number'),
'float' => array('name' => 'float'),
'datetime' => array('name' => 'date', 'format' => 'Y-m-d H:i:s'),
'timestamp' => array('name' => 'date', 'format' => 'Y-m-d H:i:s'),
'time' => array('name' => 'date', 'format' => 'Y-m-d H:i:s'),
'date' => array('name' => 'date', 'format' => 'Y-m-d H:i:s'),
'binary' => array('name' => 'bytea'),
'boolean' => array('name' => 'boolean'),
'number' => array('name' => 'number'),
'inet' => array('name' => 'inet'))
Definition at line 65 of file dbo_oracle.php.
Referenced by dropSchema(), and renderStatement().
| DboOracle::$config = array() |
Reimplemented from DataSource.
Definition at line 42 of file dbo_oracle.php.
Referenced by connect().
| DboOracle::$connection |
1.4.7