|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Firebird-specific extensions to the Statement
interface.
Field Summary | |
static int |
CLOSE_ALL_RESULTS
The constant indicating that all ResultSet objects that
have previously been kept open should be closed when calling
getMoreResults .
|
static int |
CLOSE_CURRENT_RESULT
The constant indicating that the current ResultSet object
should be closed when calling getMoreResults .
|
static int |
KEEP_CURRENT_RESULT
The constant indicating that the current ResultSet object
should not be closed when calling getMoreResults .
|
Fields inherited from interface java.sql.Statement |
EXECUTE_FAILED, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO |
Method Summary | |
java.sql.ResultSet |
getCurrentResultSet()
Get current result set. |
int |
getDeletedRowsCount()
Get number of deleted rows. |
int |
getInsertedRowsCount()
Get number of inserted rows. |
java.lang.String |
getLastExecutionPlan()
Get execution plan for the last executed statement. |
int |
getUpdatedRowsCount()
Get number of updated rows. |
boolean |
hasOpenResultSet()
Check if this statement has open result set. |
boolean |
isValid()
Check if this statement is valid. |
Methods inherited from interface java.sql.Statement |
addBatch, cancel, clearBatch, clearWarnings, close, execute, execute, execute, execute, executeBatch, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setQueryTimeout |
Field Detail |
public static final int CLOSE_CURRENT_RESULT
ResultSet
object
should be closed when calling getMoreResults
.
Copied from JDBC 3.0 definition
public static final int KEEP_CURRENT_RESULT
ResultSet
object
should not be closed when calling getMoreResults
.
Copied from JDBC 3.0 definition
public static final int CLOSE_ALL_RESULTS
ResultSet
objects that
have previously been kept open should be closed when calling
getMoreResults
.
Copied from JDBC 3.0 definition
Method Detail |
public int getInsertedRowsCount() throws java.sql.SQLException
java.sql.SQLException
- if database error occurs.public int getUpdatedRowsCount() throws java.sql.SQLException
java.sql.SQLException
- if database error occurs.public int getDeletedRowsCount() throws java.sql.SQLException
java.sql.SQLException
- if database error occurs.public boolean hasOpenResultSet()
false
because from the statement's point of view
result set is not open (in auto-commit mode complete result set is fetched
and cached in wrapping object before returning from the
Statement.getResultSet()
method).
true
if there's already open result set associated
with this statement, otherwise false
.public java.sql.ResultSet getCurrentResultSet() throws java.sql.SQLException
Statement.getResultSet()
, except that this method
can be called as much as you like.
ResultSet
representing current result set
or null
if it is not available.
java.sql.SQLException
- if database access error happened.public boolean isValid()
true
if statement is valid and can be used to
execute SQL.public java.lang.String getLastExecutionPlan() throws java.sql.SQLException
FirebirdPreparedStatement.getExecutionPlan()
, this method can be
called only after executing a query or update statement.
java.sql.SQLException
- if no statement was executed before calling this
method, statement is not valid, or there was an error when obtaining
the execution plan.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |