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 (mixed $parameter,  &$variable, [string $type = null], [integer $length = null], [array $options = null], string $variable)
 boolean closeCursor ()
 mixed columnCount ()
 mixed errorCode ()
 mixed errorInfo ()
 void execute ([ $params = array()])
 mixed fetch ([string $style = null], [string $cursor = null], [integer $offset = null])
 mixed fetchObject ([string $class = 'stdClass'], [ $config = array(0){$obj$this->fetch(Zend_Db::FETCH_OBJ])
 void nextRowset ()
 integer rowCount ()
 void _prepSql (string $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 203)

Binds a PHP variable to a parameter in the prepared statement.

  • access: public
  • throws: Zend_Db_Statement_Db2_Exception
void bindParam (mixed $parameter,  &$variable, [string $type = null], [integer $length = null], [array $options = null], string $variable)
  • mixed $parameter
  • string $variable
  • string $type: OPTIONAL
  • integer $length: OPTIONAL
  • array $options: OPTIONAL
  • &$variable

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

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

Returns the number of columns in the result set.

  • return: Number of fields in statement, or false.
  • access: public
mixed columnCount ()

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

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

  • return: The error code, or false.
  • access: public
mixed errorCode ()

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

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

  • return: The statement error message, or false.
  • access: public
mixed errorInfo ()

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

Executes a prepared statement.

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

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

Fetches a row from a result set.

  • access: public
  • throws: Zend_Db_Statement_Db2_Exception
mixed fetch ([string $style = null], [string $cursor = null], [integer $offset = null])
  • string $style: OPTIONAL
  • string $cursor: OPTIONAL
  • integer $offset: OPTIONAL

Redefinition of:
Zend_Db_Statement::fetch()
Fetches a row from a result set.
fetchObject (line 298)
  • access: public
mixed fetchObject ([string $class = 'stdClass'], [ $config = array(0){$obj$this->fetch(Zend_Db::FETCH_OBJ])
  • string $class
  • array $config

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

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 72)
  • 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 279)

Prepare a statement handle.

  • access: public
  • throws: Zend_Db_Statement_Db2_Exception
void _prepSql (string $sql)
  • string $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 Fri, 06 Apr 2007 18:17:34 -0700 by phpDocumentor 1.3.1