org.firebirdsql.jdbc
Interface FirebirdStatement

All Superinterfaces:
java.sql.Statement
All Known Subinterfaces:
FirebirdPreparedStatement
All Known Implementing Classes:
AbstractPreparedStatement, AbstractStatement

public interface FirebirdStatement
extends java.sql.Statement

Firebird-specific extensions to the Statement interface.

Author:
Roman Rokytskyy

Field Summary
 
Fields inherited from interface java.sql.Statement
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO
 
Method Summary
 int getDeletedRowsCount()
          Get number of deleted rows.
 int getInsertedRowsCount()
          Get number of inserted rows.
 int getUpdatedRowsCount()
          Get number of updated rows.
 boolean hasOpenResultSet()
          Check if this statement has open result set.
 
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
 

Method Detail

getInsertedRowsCount

public int getInsertedRowsCount()
                         throws java.sql.SQLException
Get number of inserted rows. You can call this method multiple times, it does not affect the JDBC result number.

Returns:
number of inserted rows or -1 if current result is result set.
Throws:
java.sql.SQLException - if database error occurs.

getUpdatedRowsCount

public int getUpdatedRowsCount()
                        throws java.sql.SQLException
Get number of updated rows. You can call this method multiple times, it does not affect the JDBC result number.

Returns:
number of updated rows or -1 if current result is result set.
Throws:
java.sql.SQLException - if database error occurs.

getDeletedRowsCount

public int getDeletedRowsCount()
                        throws java.sql.SQLException
Get number of deleted rows. You can call this method multiple times, it does not affect the JDBC result number.

Returns:
number of deleted rows or -1 if current result is result set.
Throws:
java.sql.SQLException - if database error occurs.

hasOpenResultSet

public boolean hasOpenResultSet()
Check if this statement has open result set. Note, this method works correctly if auto-commit is disabled. In auto-commit mode it will always return 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).

Returns:
true if there's already open result set associated with this statement, otherwise false.


Copyright © 2001 David Jencks and other authors. All rights reserved.