public interface StatementListener
FbStatement.fetchRows(int)
, or
FbStatement.execute(RowValue)
with a singleton result.Modifier and Type | Method and Description |
---|---|
void |
allRowsFetched(FbStatement sender)
Method to be notified when all rows have been fetched.
|
void |
receivedRow(FbStatement sender,
RowValue rowValue)
Method to be notified of a new row of data.
|
void |
sqlCounts(FbStatement sender,
SqlCountHolder sqlCounts)
Called when the SQL counts of a statement have been retrieved.
|
void |
statementExecuted(FbStatement sender,
boolean hasResultSet,
boolean hasSingletonResult)
Method to be notified when a statement has been executed.
|
void |
statementStateChanged(FbStatement sender,
StatementState newState,
StatementState previousState)
Method to be notified when the state of a statement has changed.
|
void |
warningReceived(FbStatement sender,
java.sql.SQLWarning warning)
Called when a warning was received for the
sender statement. |
void receivedRow(FbStatement sender, RowValue rowValue)
sender
- The FbStatement
that called this method.rowValue
- The row values.void allRowsFetched(FbStatement sender)
This method may also be called when the statement did not produce any rows (or did not open a result set).
sender
- The FbStatement
that called this method.statementExecuted(FbStatement, boolean, boolean)
void statementExecuted(FbStatement sender, boolean hasResultSet, boolean hasSingletonResult)
This event with hasResultSet=true
can be seen as the counter part of allRowsFetched(FbStatement)
.
sender
- The FbStatement
that called this method.hasResultSet
- true
there is a result set, false
there is no result sethasSingletonResult
- true
singleton result, false
statement will produce indeterminate number of rows;
can be ignored when hasResultSet
is false.void statementStateChanged(FbStatement sender, StatementState newState, StatementState previousState)
sender
- The FbStatement
that called this method.newState
- The new state of the statementpreviousState
- The old state of the statementvoid warningReceived(FbStatement sender, java.sql.SQLWarning warning)
sender
statement.sender
- Statement receiving the warningwarning
- Warningvoid sqlCounts(FbStatement sender, SqlCountHolder sqlCounts)
sender
- Statement that called this methodsqlCounts
- SQL countsCopyright © 2001-2021 Jaybird (Firebird JDBC/JCA) team. All rights reserved.