Class Zend_Db_Statement_Db2

Description

Extends for DB2.

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,  &$variable, [ $type = null], [ $length = null], [ $options = null])
 void closeCursor ()
 integer columnCount ()
 string errorCode ()
 string errorInfo ()
 void execute ([ $params = null])
 void fetch ([ $style = null], [ $cursor = null], [ $offset = null])
 void fetchAll ([ $style = null], [ $col = null])
 void fetchObject ([ $class = 'stdClass'], [ $config = null])
 void nextRowset ()
 integer rowCount ()
 void _prepSql ( $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 187)
  • access: public
void bindParam ( $parameter,  &$variable, [ $type = null], [ $length = null], [ $options = null])
  • $parameter
  • &$variable
  • $type
  • $length
  • $options

Redefinition of:
Zend_Db_Statement::bindParam()
binds a PHP variable to a parameter in the prepared statement
closeCursor (line 89)

closes the cursor, allowing the statement to be executed again

  • access: public
void closeCursor ()

Redefinition of:
Zend_Db_Statement::closeCursor()
closes the cursor, allowing the statement to be executed again
columnCount (line 105)

returns the number of columns in the result set

  • access: public
integer columnCount ()

Redefinition of:
Zend_Db_Statement::columnCount()
returns the number of columns in the result set
errorCode (line 119)

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 134)

retrieves a 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 149)

executes a prepared statement

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

Redefinition of:
Zend_Db_Statement::execute()
executes a prepared statement
fetch (line 218)

fetches a row from a result set

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

Redefinition of:
Zend_Db_Statement::fetch()
fetches a row from a result set
fetchAll (line 275)

fetches an array containing all of the rows from a result set

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

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

Redefinition of:
Zend_Db_Statement::fetchObject()
fetches the next row and returns it as an object
nextRowset (line 60)

retrieves the next rowset (result set)

  • access: public
  • 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 253)

Prepare statement handle

  • access: public
void _prepSql ( $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 Thu, 18 Jan 2007 09:52:54 -0800 by phpDocumentor 1.3.1