Class Zend_Db_Statement_Db2

Description

Extends for DB2 native adapter.

Located in /Zend/Db/Statement/Db2.php (line 39)

Zend_Db_Statement
   |
   --Zend_Db_Statement_Db2
Variable Summary
 mixed $_keys
 mixed $_stmt
 mixed $_values
Method Summary
 void bindParam ($parameter $parameter, $variable &$variable, [$type $type = null], [$length $length = null], [$options $options = null])
 boolean closeCursor ()
 integer columnCount ()
 string errorCode ()
 string errorInfo ()
 void execute ([array $params = null])
 $row fetch ([$style $style = null], [$cursor $cursor = null], [$offset $offset = null])
 $data fetchAll ([$style $style = null], [$col $col = null])
 $obj fetchObject ([$class $class = 'stdClass'], [$config $config = null])
 void nextRowset ()
 integer rowCount ()
 void _prepSql ($sql $sql)
Variables
mixed $_keys (line 49)

Column names.

  • access: protected
mixed $_stmt (line 44)

Statement resource handle.

  • access: protected
mixed $_values (line 54)

Fetched result values.

  • access: protected

Inherited Variables

Inherited from Zend_Db_Statement

Zend_Db_Statement::$_attribute
Zend_Db_Statement::$_bindColumn
Zend_Db_Statement::$_bindParam
Zend_Db_Statement::$_fetchMode
Zend_Db_Statement::$_sqlParam
Zend_Db_Statement::$_sqlSplit
Methods
bindParam (line 202)
  • access: public
  • throws: Zend_Db_Statement_Db2_Exception
void bindParam ($parameter $parameter, $variable &$variable, [$type $type = null], [$length $length = null], [$options $options = null])
  • $parameter $parameter
  • $variable &$variable
  • $type $type
  • $length $length
  • $options $options

Redefinition of:
Zend_Db_Statement::bindParam()
Binds a PHP variable to a parameter in the prepared statement.
closeCursor (line 92)

Closes the cursor, allowing the statement to be executed again.

  • return: True if the cursor was closed.
  • access: public
boolean closeCursor ()

Redefinition of:
Zend_Db_Statement::closeCursor()
Closes the cursor, allowing the statement to be executed again.
columnCount (line 108)

Returns the number of columns in the result set.

  • return: Number of fields in statement.
  • access: public
integer columnCount ()

Redefinition of:
Zend_Db_Statement::columnCount()
Returns the number of columns in the result set.
errorCode (line 122)

Retrieves a sql state, if any, from the statement.

  • return: the error code
  • access: public
string errorCode ()

Redefinition of:
Zend_Db_Statement::errorCode()
Retrieves an error code, if any, from the statement.
errorInfo (line 137)

Retrieves an error msg, if any, from the statement.

  • return: The statement error message.
  • access: public
string errorInfo ()

Redefinition of:
Zend_Db_Statement::errorInfo()
Retrieves an array of error information, if any, from the statement.
execute (line 153)

Executes a prepared statement.

  • access: public
void execute ([array $params = null])
  • array $params

Redefinition of:
Zend_Db_Statement::execute()
Executes a prepared statement.
fetch (line 238)

Fetches a row from a result set.

  • access: public
$row fetch ([$style $style = null], [$cursor $cursor = null], [$offset $offset = null])
  • $style $style
  • $cursor $cursor
  • $offset $offset

Redefinition of:
Zend_Db_Statement::fetch()
Fetches a row from a result set.
fetchAll (line 309)

Fetches an array containing all of the rows from a result set.

  • access: public
$data fetchAll ([$style $style = null], [$col $col = null])
  • $style $style
  • $col $col

Redefinition of:
Zend_Db_Statement::fetchAll()
Fetches an array containing all of the rows from a result set.
fetchObject (line 296)
  • access: public
$obj fetchObject ([$class $class = 'stdClass'], [$config $config = null])
  • $class $class
  • $config $config

Redefinition of:
Zend_Db_Statement::fetchObject()
Fetches the next row and returns it as an object.
nextRowset (line 61)

retrieves the next rowset (result set)

  • access: public
  • throws: Zend_Db_Statement_Exception
  • todo: not familiar with how to do nextrowset
void nextRowset ()

Redefinition of:
Zend_Db_Statement::nextRowset()
Retrieves the next rowset (result set).
rowCount (line 70)
  • return: Number of rows updated.
  • access: public
integer rowCount ()

Redefinition of:
Zend_Db_Statement::rowCount()
returns the number of rows that were affected by the execution of an SQL statement
_prepSql (line 277)

Prepare a statement handle.

  • access: public
  • throws: Zend_Db_Statement_Db2_Exception
void _prepSql ($sql $sql)
  • $sql $sql

Redefinition of:
Zend_Db_Statement::_prepSql()
Splits SQL into text and params, sets up $this->_bindParam for replacements.

Inherited Methods

Inherited From Zend_Db_Statement

 Zend_Db_Statement::__construct()
 Zend_Db_Statement::bindColumn()
 Zend_Db_Statement::bindParam()
 Zend_Db_Statement::bindValue()
 Zend_Db_Statement::closeCursor()
 Zend_Db_Statement::columnCount()
 Zend_Db_Statement::errorCode()
 Zend_Db_Statement::errorInfo()
 Zend_Db_Statement::execute()
 Zend_Db_Statement::fetch()
 Zend_Db_Statement::fetchAll()
 Zend_Db_Statement::fetchColumn()
 Zend_Db_Statement::fetchObject()
 Zend_Db_Statement::getAttribute()
 Zend_Db_Statement::nextRowset()
 Zend_Db_Statement::rowCount()
 Zend_Db_Statement::setAttribute()
 Zend_Db_Statement::setFetchMode()
 Zend_Db_Statement::_joinSql()
 Zend_Db_Statement::_prepSql()

Documentation generated on Wed, 21 Feb 2007 11:46:48 -0800 by phpDocumentor 1.3.1