|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.quercus.lib.db.JdbcStatementResource
public class JdbcStatementResource
Constructor Summary | |
---|---|
JdbcStatementResource(JdbcConnectionResource conn)
|
Method Summary | |
---|---|
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. |
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()
|
java.lang.String |
getStatementType()
Returns this statement type. |
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JdbcStatementResource(JdbcConnectionResource conn)
Method Detail |
---|
protected java.lang.String getQuery()
protected void setQuery(java.lang.String query)
public java.lang.String 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 cursor
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)
protected Value fetch(Env env)
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 environment
protected java.lang.String lastInsertId(Env env) throws java.sql.SQLException
java.sql.SQLException
protected void setStatement(java.sql.Statement stmt)
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |