public interface FirebirdStatement
extends java.sql.Statement
Statement
interface.Modifier and Type | Method and Description |
---|---|
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 |
isClosed()
Retrieves whether this
Statement object has been closed. |
boolean |
isValid()
Check if this statement is valid.
|
addBatch, cancel, clearBatch, clearWarnings, close, closeOnCompletion, execute, execute, execute, execute, executeBatch, executeLargeBatch, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getLargeMaxRows, getLargeUpdateCount, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, isCloseOnCompletion, isPoolable, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setLargeMaxRows, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout
int getInsertedRowsCount() throws java.sql.SQLException
java.sql.SQLException
- if database error occurs.int getUpdatedRowsCount() throws java.sql.SQLException
java.sql.SQLException
- if database error occurs.int getDeletedRowsCount() throws java.sql.SQLException
java.sql.SQLException
- if database error occurs.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
.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.boolean isValid()
true
if statement is valid and can be used to
execute SQL.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.boolean isClosed() throws java.sql.SQLException
Statement
object has been closed. A Statement
is closed if the
method close has been called on it, or if it is automatically closed.
Provided here for compatibility with Java 5
isClosed
in interface java.sql.Statement
Statement
object is closed; false if it is still openjava.sql.SQLException
- if a database access error occursCopyright © 2001-2019 Jaybird (Firebird JDBC/JCA) team. All rights reserved.