public class JdbcStatementResource
extends java.lang.Object
Constructor and Description |
---|
JdbcStatementResource(JdbcConnectionResource conn) |
Modifier and Type | Method and Description |
---|---|
boolean |
bindResults(Env env,
Value[] outParams)
XXX: MySQL returns the table metadata on preparation of a statement,
but java.sql doesn't support this feature.
|
protected boolean |
close()
Closes the result set, if any, and closes this statement.
|
protected JdbcResultResource |
createResultSet(java.sql.ResultSet rs) |
protected boolean |
dataSeek(int offset)
Advance the cursor the number of rows given by offset.
|
protected boolean |
execute(Env env) |
protected boolean |
execute(Env env,
boolean isCatchException) |
protected boolean |
executeImpl(Env env) |
protected Value |
fetch(Env env) |
boolean |
freeResult()
Frees the associated result.
|
protected int |
getColumnCount(Env env) |
protected JdbcConnectionResource |
getConnection() |
protected int |
getErrorCode()
Returns the error number for the last error.
|
protected java.lang.String |
getErrorMessage()
Returns the error message for the last error.
|
protected java.sql.SQLException |
getException() |
int |
getFieldCount()
Returns the number of fields in the result set.
|
protected java.sql.Connection |
getJavaConnection(Env env) |
protected java.sql.ResultSetMetaData |
getMetaData()
Returns the meta data for corresponding to the current result set.
|
int |
getNumRows()
Returns the number of rows in the result set.
|
protected java.lang.String |
getQuery() |
JdbcResultResource |
getResultSet() |
StatementType |
getStatementType()
Returns this statement type (i.e.
|
protected boolean |
isFetchFieldIndexBeforeFieldName() |
protected java.lang.String |
lastInsertId(Env env) |
protected boolean |
prepareForExecute(Env env) |
protected void |
setError(Env env,
java.sql.SQLException e) |
protected void |
setErrorCode(int code) |
protected void |
setErrorMessage(java.lang.String msg) |
protected void |
setQuery(java.lang.String query) |
protected void |
setResultSet(java.sql.ResultSet rs) |
protected void |
setStatement(java.sql.Statement stmt) |
java.lang.String |
toString() |
public JdbcStatementResource(JdbcConnectionResource conn)
protected java.lang.String getQuery()
protected void setQuery(java.lang.String query)
protected void setStatement(java.sql.Statement stmt)
public StatementType getStatementType()
public boolean bindResults(Env env, Value[] outParams)
protected int getColumnCount(Env env)
protected boolean close()
protected boolean dataSeek(int offset)
offset
- the number of rows to move the cursorprotected java.sql.SQLException getException()
protected int getErrorCode()
protected java.lang.String getErrorMessage()
protected boolean execute(Env env)
protected final boolean execute(Env env, boolean isCatchException) throws java.sql.SQLException
java.sql.SQLException
protected void setError(Env env, java.sql.SQLException e)
protected boolean prepareForExecute(Env env) throws java.sql.SQLException
java.sql.SQLException
protected boolean executeImpl(Env env) throws java.sql.SQLException
java.sql.SQLException
protected JdbcResultResource createResultSet(java.sql.ResultSet rs)
public boolean freeResult()
protected java.sql.ResultSetMetaData getMetaData() throws java.sql.SQLException
java.sql.SQLException
public int getNumRows() throws java.sql.SQLException
java.sql.SQLException
public int getFieldCount()
env
- the PHP executing environmentprotected java.lang.String lastInsertId(Env env) throws java.sql.SQLException
java.sql.SQLException
public JdbcResultResource getResultSet()
protected void setResultSet(java.sql.ResultSet rs)
protected final JdbcConnectionResource getConnection()
protected java.sql.Connection getJavaConnection(Env env) throws java.sql.SQLException
java.sql.SQLException
protected void setErrorMessage(java.lang.String msg)
protected void setErrorCode(int code)
protected boolean isFetchFieldIndexBeforeFieldName()
public java.lang.String toString()
toString
in class java.lang.Object