Class Zend_Db_Adapter_Pdo_Ibm

Description
  • copyright: Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
  • license: New BSD License

Located in /Db/Adapter/Pdo/Ibm.php (line 44)

Zend_Db_Adapter_Abstract
   |
   --Zend_Db_Adapter_Pdo_Abstract
      |
      --Zend_Db_Adapter_Pdo_Ibm
Variable Summary
Method Summary
 array describeTable (string $tableName, [string $schemaName = null])
 string getServerVersion ()
 int insert (mixed $table,  $bind)
 integer lastInsertId ([string $tableName = null], [string $primaryKey = null])
 integer lastSequenceId (string $sequenceName)
 string limit (string $sql, integer $count, [integer $offset = 0])
 array listTables ()
 integer nextSequenceId (string $sequenceName)
 PDOStatement prepare (string $sql, array $bind)
 void _checkRequiredOptions ( $config)
 void _connect ()
 string _dsn ()
Variables
array $_numericDataTypes = array(
Zend_Db::INT_TYPE => Zend_Db::INT_TYPE,
Zend_Db::BIGINT_TYPE => Zend_Db::BIGINT_TYPE,
Zend_Db::FLOAT_TYPE => Zend_Db::FLOAT_TYPE,
'INTEGER' => Zend_Db::INT_TYPE,
'SMALLINT' => Zend_Db::INT_TYPE,
'BIGINT' => Zend_Db::BIGINT_TYPE,
'DECIMAL' => Zend_Db::FLOAT_TYPE,
'DEC' => Zend_Db::FLOAT_TYPE,
'REAL' => Zend_Db::FLOAT_TYPE,
'NUMERIC' => Zend_Db::FLOAT_TYPE,
'DOUBLE PRECISION' => Zend_Db::FLOAT_TYPE,
'FLOAT' => Zend_Db::FLOAT_TYPE
)
(line 71)

Keys are UPPERCASE SQL datatypes or the constants Zend_Db::INT_TYPE, Zend_Db::BIGINT_TYPE, or Zend_Db::FLOAT_TYPE.

Values are:

  1. = 32-bit integer
  2. = 64-bit integer
  3. = float or decimal

  • var: Associative array of datatypes to values 0, 1, or 2.
  • access: protected

Redefinition of:
Zend_Db_Adapter_Abstract::$_numericDataTypes
Keys are UPPERCASE SQL datatypes or the constants Zend_Db::INT_TYPE, Zend_Db::BIGINT_TYPE, or Zend_Db::FLOAT_TYPE.
string $_pdoType = 'ibm' (line 51)

PDO type.

  • access: protected
string $_serverType = null (line 58)

The IBM data server connected to

  • access: protected

Inherited Variables

Inherited from Zend_Db_Adapter_Pdo_Abstract

Zend_Db_Adapter_Pdo_Abstract::$_defaultStmtClass

Inherited from Zend_Db_Adapter_Abstract

Zend_Db_Adapter_Abstract::$_allowSerialization
Zend_Db_Adapter_Abstract::$_autoQuoteIdentifiers
Zend_Db_Adapter_Abstract::$_autoReconnectOnUnserialize
Zend_Db_Adapter_Abstract::$_caseFolding
Zend_Db_Adapter_Abstract::$_config
Zend_Db_Adapter_Abstract::$_connection
Zend_Db_Adapter_Abstract::$_defaultProfilerClass
Zend_Db_Adapter_Abstract::$_fetchMode
Zend_Db_Adapter_Abstract::$_profiler
Methods
describeTable (line 242)

Returns the column descriptions for a table.

The return value is an associative array keyed by the column name, as returned by the RDBMS.

The value of each array element is an associative array with the following keys:

SCHEMA_NAME => string; name of database or schema TABLE_NAME => string; COLUMN_NAME => string; column name COLUMN_POSITION => number; ordinal position of column in table DATA_TYPE => string; SQL datatype name of column DEFAULT => string; default expression of column, null if none NULLABLE => boolean; true if column can have nulls LENGTH => number; length of CHAR/VARCHAR SCALE => number; scale of NUMERIC/DECIMAL PRECISION => number; precision of NUMERIC/DECIMAL UNSIGNED => boolean; unsigned property of an integer type PRIMARY => boolean; true if column is part of the primary key PRIMARY_POSITION => integer; position of column in primary key

  • todo: Discover integer unsigned property.
  • access: public
array describeTable (string $tableName, [string $schemaName = null])
  • string $tableName
  • string $schemaName: OPTIONAL

Redefinition of:
Zend_Db_Adapter_Abstract::describeTable()
Returns the column descriptions for a table.
getServerVersion (line 342)

Retrieve server version in PHP style

Pdo_Idm doesn't support getAttribute(PDO::ATTR_SERVER_VERSION)

  • access: public
string getServerVersion ()

Redefinition of:
Zend_Db_Adapter_Pdo_Abstract::getServerVersion()
Retrieve server version in PHP style
insert (line 257)

Inserts a table row with specified data.

Special handling for PDO_IBM remove empty slots

  • return: The number of affected rows.
  • access: public
int insert (mixed $table,  $bind)
  • mixed $table: The table to insert data into.
  • array $bind: Column-value pairs.

Redefinition of:
Zend_Db_Adapter_Abstract::insert()
Inserts a table row with specified data.
lastInsertId (line 294)

Gets the last ID generated automatically by an IDENTITY/AUTOINCREMENT column.

  • access: public
integer lastInsertId ([string $tableName = null], [string $primaryKey = null])
  • string $tableName: OPTIONAL
  • string $primaryKey: OPTIONAL

Redefinition of:
Zend_Db_Adapter_Pdo_Abstract::lastInsertId()
Gets the last ID generated automatically by an IDENTITY/AUTOINCREMENT column.
lastSequenceId (line 318)

Return the most recent value from the specified sequence in the database.

  • access: public
integer lastSequenceId (string $sequenceName)
  • string $sequenceName

Redefinition of:
Zend_Db_Adapter_Abstract::lastSequenceId()
Return the most recent value from the specified sequence in the database.
limit (line 280)

Adds an adapter-specific LIMIT clause to the SELECT statement.

  • access: public
string limit (string $sql, integer $count, [integer $offset = 0])
  • string $sql
  • integer $count
  • integer $offset: OPTIONAL

Redefinition of:
Zend_Db_Adapter_Abstract::limit()
Adds an adapter-specific LIMIT clause to the SELECT statement.
listTables (line 207)

Returns a list of the tables in the database.

  • access: public
array listTables ()

Redefinition of:
Zend_Db_Adapter_Abstract::listTables()
Returns a list of the tables in the database.
nextSequenceId (line 331)

Generate a new value from the specified sequence in the database, and return it.

  • access: public
integer nextSequenceId (string $sequenceName)
  • string $sequenceName

Redefinition of:
Zend_Db_Adapter_Abstract::nextSequenceId()
Generate a new value from the specified sequence in the database, and return it.
prepare (line 193)

Prepares an SQL statement.

  • access: public
PDOStatement prepare (string $sql, array $bind)
  • string $sql: The SQL statement with placeholders.
  • array $bind: An array of data to bind to the placeholders.

Redefinition of:
Zend_Db_Adapter_Pdo_Abstract::prepare()
Prepares an SQL statement.
_checkRequiredOptions (line 174)

Checks required options

  • throws: Zend_Db_Adapter_Exception
  • access: protected
void _checkRequiredOptions ( $config)
  • array $config

Redefinition of:
Zend_Db_Adapter_Abstract::_checkRequiredOptions()
Check for config options that are mandatory.
_connect (line 96)

Creates a PDO object and connects to the database.

The IBM data server is set. Current options are DB2 or IDS

  • todo: also differentiate between z/OS and i/5
  • throws: Zend_Db_Adapter_Exception
  • access: public
void _connect ()

Redefinition of:
Zend_Db_Adapter_Pdo_Abstract::_connect()
Creates a PDO object and connects to the database.
_dsn (line 149)

Creates a PDO DSN for the adapter from $this->_config settings.

  • access: protected
string _dsn ()

Redefinition of:
Zend_Db_Adapter_Pdo_Abstract::_dsn()
Creates a PDO DSN for the adapter from $this->_config settings.

Inherited Methods

Inherited From Zend_Db_Adapter_Pdo_Abstract

 Zend_Db_Adapter_Pdo_Abstract::closeConnection()
 Zend_Db_Adapter_Pdo_Abstract::exec()
 Zend_Db_Adapter_Pdo_Abstract::getServerVersion()
 Zend_Db_Adapter_Pdo_Abstract::isConnected()
 Zend_Db_Adapter_Pdo_Abstract::lastInsertId()
 Zend_Db_Adapter_Pdo_Abstract::prepare()
 Zend_Db_Adapter_Pdo_Abstract::query()
 Zend_Db_Adapter_Pdo_Abstract::setFetchMode()
 Zend_Db_Adapter_Pdo_Abstract::supportsParameters()
 Zend_Db_Adapter_Pdo_Abstract::_beginTransaction()
 Zend_Db_Adapter_Pdo_Abstract::_commit()
 Zend_Db_Adapter_Pdo_Abstract::_connect()
 Zend_Db_Adapter_Pdo_Abstract::_dsn()
 Zend_Db_Adapter_Pdo_Abstract::_quote()
 Zend_Db_Adapter_Pdo_Abstract::_rollBack()

Inherited From Zend_Db_Adapter_Abstract

 Zend_Db_Adapter_Abstract::__construct()
 Zend_Db_Adapter_Abstract::beginTransaction()
 Zend_Db_Adapter_Abstract::closeConnection()
 Zend_Db_Adapter_Abstract::commit()
 Zend_Db_Adapter_Abstract::delete()
 Zend_Db_Adapter_Abstract::describeTable()
 Zend_Db_Adapter_Abstract::fetchAll()
 Zend_Db_Adapter_Abstract::fetchAssoc()
 Zend_Db_Adapter_Abstract::fetchCol()
 Zend_Db_Adapter_Abstract::fetchOne()
 Zend_Db_Adapter_Abstract::fetchPairs()
 Zend_Db_Adapter_Abstract::fetchRow()
 Zend_Db_Adapter_Abstract::foldCase()
 Zend_Db_Adapter_Abstract::getConfig()
 Zend_Db_Adapter_Abstract::getConnection()
 Zend_Db_Adapter_Abstract::getFetchMode()
 Zend_Db_Adapter_Abstract::getProfiler()
 Zend_Db_Adapter_Abstract::getQuoteIdentifierSymbol()
 Zend_Db_Adapter_Abstract::getServerVersion()
 Zend_Db_Adapter_Abstract::getStatementClass()
 Zend_Db_Adapter_Abstract::insert()
 Zend_Db_Adapter_Abstract::isConnected()
 Zend_Db_Adapter_Abstract::lastInsertId()
 Zend_Db_Adapter_Abstract::lastSequenceId()
 Zend_Db_Adapter_Abstract::limit()
 Zend_Db_Adapter_Abstract::listTables()
 Zend_Db_Adapter_Abstract::nextSequenceId()
 Zend_Db_Adapter_Abstract::prepare()
 Zend_Db_Adapter_Abstract::query()
 Zend_Db_Adapter_Abstract::quote()
 Zend_Db_Adapter_Abstract::quoteColumnAs()
 Zend_Db_Adapter_Abstract::quoteIdentifier()
 Zend_Db_Adapter_Abstract::quoteInto()
 Zend_Db_Adapter_Abstract::quoteTableAs()
 Zend_Db_Adapter_Abstract::rollBack()
 Zend_Db_Adapter_Abstract::select()
 Zend_Db_Adapter_Abstract::setFetchMode()
 Zend_Db_Adapter_Abstract::setProfiler()
 Zend_Db_Adapter_Abstract::setStatementClass()
 Zend_Db_Adapter_Abstract::supportsParameters()
 Zend_Db_Adapter_Abstract::update()
 Zend_Db_Adapter_Abstract::_beginTransaction()
 Zend_Db_Adapter_Abstract::_checkRequiredOptions()
 Zend_Db_Adapter_Abstract::_commit()
 Zend_Db_Adapter_Abstract::_connect()
 Zend_Db_Adapter_Abstract::_quote()
 Zend_Db_Adapter_Abstract::_quoteIdentifier()
 Zend_Db_Adapter_Abstract::_quoteIdentifierAs()
 Zend_Db_Adapter_Abstract::_rollBack()
 Zend_Db_Adapter_Abstract::_whereExpr()
 Zend_Db_Adapter_Abstract::__sleep()
 Zend_Db_Adapter_Abstract::__wakeup()

Documentation generated on Mon, 21 Jun 2010 15:27:58 -0400 by phpDocumentor 1.4.3