|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.quercus.lib.db.PDOStatement
public class PDOStatement
PDO object oriented API facade.
| Method Summary | |
|---|---|
boolean |
bindColumn(Value column,
Value var,
int type)
|
boolean |
bindParam(Value parameter,
Value variable,
int dataType,
int length,
Value driverOptions)
|
boolean |
bindValue(Value parameter,
Value value,
int dataType)
|
void |
cleanup()
Implements the EnvCleanup interface. |
void |
close()
|
boolean |
closeCursor()
Closes the current cursor. |
int |
columnCount()
Returns the number of columns. |
com.caucho.quercus.lib.db.PDOStatement.BindParam |
createBindParam(Value parameter,
Value value,
int dataType,
int length,
Value driverOptions)
|
java.lang.String |
errorCode()
|
ArrayValue |
errorInfo()
|
boolean |
execute(Value inputParameters)
Execute the statement. |
Value |
fetch(int fetchMode,
int cursorOrientation,
int cursorOffset)
Fetch the next row. |
Value |
fetchAll(int fetchMode,
int columnIndex)
|
Value |
fetchColumn(int column)
|
Value |
fetchObject(java.lang.String className,
Value[] args)
|
Value |
getAttribute(int attribute)
|
Value |
getColumnMeta(int column)
|
java.util.Iterator<Value> |
iterator()
Returns an iterator of the values. |
boolean |
nextRowset()
|
int |
rowCount()
|
boolean |
setAttribute(int attribute,
Value value)
|
boolean |
setAttribute(int attribute,
Value value,
boolean isFromConstructor)
|
boolean |
setFetchMode(int fetchMode,
Value[] args)
Sets the fetch mode, the default is PDO.FETCH_BOTH. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public boolean bindColumn(Value column,
Value var,
int type)
public boolean bindParam(Value parameter,
Value variable,
int dataType,
int length,
Value driverOptions)
public boolean bindValue(Value parameter,
Value value,
int dataType)
public boolean closeCursor()
public int columnCount()
public com.caucho.quercus.lib.db.PDOStatement.BindParam createBindParam(Value parameter,
Value value,
int dataType,
int length,
Value driverOptions)
public void close()
public void cleanup()
cleanup in interface EnvCleanuppublic java.lang.String errorCode()
public ArrayValue errorInfo()
public boolean execute(Value inputParameters)
inputParameters - an array containing input values to correspond to
the bound parameters for the statement.
public Value fetch(int fetchMode,
int cursorOrientation,
int cursorOffset)
fetchMode - the mode, 0 to use the value
set by setFetchMode(int, com.caucho.quercus.env.Value[]).
public Value fetchAll(int fetchMode,
int columnIndex)
fetchMode - columnIndex - 0-based column index when fetchMode is FETCH_BOTHpublic Value fetchColumn(int column)
column - 0-based column number
public Value fetchObject(java.lang.String className,
Value[] args)
public Value getAttribute(int attribute)
public Value getColumnMeta(int column)
column - 0-based column indexpublic java.util.Iterator<Value> iterator()
iterator in interface java.lang.Iterable<Value>public boolean nextRowset()
public int rowCount()
public boolean setAttribute(int attribute,
Value value)
public boolean setAttribute(int attribute,
Value value,
boolean isFromConstructor)
public boolean setFetchMode(int fetchMode,
Value[] args)
PDO.FETCH_BOTH.
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||