Package org.firebirdsql.gds.ng.listeners
Interface StatementListener
- 
- All Known Implementing Classes:
- DefaultStatementListener,- StatementListenerDispatcher
 
 public interface StatementListenerListener interface for receiving rows and related information as retrieved by anFbStatement.fetchRows(int), orFbStatement.execute(RowValue)with a singleton result.- Since:
- 3.0
- Author:
- Mark Rotteveel
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidallRowsFetched(FbStatement sender)Method to be notified when all rows have been fetched.voidreceivedRow(FbStatement sender, RowValue rowValue)Method to be notified of a new row of data.voidsqlCounts(FbStatement sender, SqlCountHolder sqlCounts)Called when the SQL counts of a statement have been retrieved.voidstatementExecuted(FbStatement sender, boolean hasResultSet, boolean hasSingletonResult)Method to be notified when a statement has been executed.voidstatementStateChanged(FbStatement sender, StatementState newState, StatementState previousState)Method to be notified when the state of a statement has changed.voidwarningReceived(FbStatement sender, java.sql.SQLWarning warning)Called when a warning was received for thesenderstatement.
 
- 
- 
- 
Method Detail- 
receivedRowvoid receivedRow(FbStatement sender, RowValue rowValue) Method to be notified of a new row of data.- Parameters:
- sender- The- FbStatementthat called this method.
- rowValue- The row values.
 
 - 
allRowsFetchedvoid allRowsFetched(FbStatement sender) Method to be notified when all rows have been fetched.This method may also be called when the statement did not produce any rows (or did not open a result set). - Parameters:
- sender- The- FbStatementthat called this method.
- See Also:
- statementExecuted(FbStatement, boolean, boolean)
 
 - 
statementExecutedvoid statementExecuted(FbStatement sender, boolean hasResultSet, boolean hasSingletonResult) Method to be notified when a statement has been executed.This event with hasResultSet=truecan be seen as the counter part ofallRowsFetched(FbStatement).- Parameters:
- sender- The- FbStatementthat called this method.
- hasResultSet-- truethere is a result set,- falsethere is no result set
- hasSingletonResult-- truesingleton result,- falsestatement will produce indeterminate number of rows; can be ignored when- hasResultSetis false.
 
 - 
statementStateChangedvoid statementStateChanged(FbStatement sender, StatementState newState, StatementState previousState) Method to be notified when the state of a statement has changed.- Parameters:
- sender- The- FbStatementthat called this method.
- newState- The new state of the statement
- previousState- The old state of the statement
 
 - 
warningReceivedvoid warningReceived(FbStatement sender, java.sql.SQLWarning warning) Called when a warning was received for thesenderstatement.- Parameters:
- sender- Statement receiving the warning
- warning- Warning
 
 - 
sqlCountsvoid sqlCounts(FbStatement sender, SqlCountHolder sqlCounts) Called when the SQL counts of a statement have been retrieved.- Parameters:
- sender- Statement that called this method
- sqlCounts- SQL counts
 
 
- 
 
-