Package org.firebirdsql.gds.ng.listeners
Class StatementListenerDispatcher
- java.lang.Object
- 
- org.firebirdsql.gds.ng.listeners.AbstractListenerDispatcher<StatementListener>
- 
- org.firebirdsql.gds.ng.listeners.StatementListenerDispatcher
 
 
- 
- All Implemented Interfaces:
- java.lang.Iterable<StatementListener>,- StatementListener
 
 public final class StatementListenerDispatcher extends AbstractListenerDispatcher<StatementListener> implements StatementListener Dispatcher to maintain and notify otherStatementListener.- Since:
- 3.0
- Author:
- Mark Rotteveel
 
- 
- 
Constructor SummaryConstructors Constructor Description StatementListenerDispatcher()
 - 
Method SummaryAll Methods Instance Methods Concrete 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.- 
Methods inherited from class org.firebirdsql.gds.ng.listeners.AbstractListenerDispatcheraddListener, addWeakListener, isShutdown, iterator, removeAllListeners, removeListener, shutdown
 
- 
 
- 
- 
- 
Method Detail- 
receivedRowpublic void receivedRow(FbStatement sender, RowValue rowValue) Description copied from interface:StatementListenerMethod to be notified of a new row of data.- Specified by:
- receivedRowin interface- StatementListener
- Parameters:
- sender- The- FbStatementthat called this method.
- rowValue- The row values.
 
 - 
allRowsFetchedpublic void allRowsFetched(FbStatement sender) Description copied from interface:StatementListenerMethod 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). - Specified by:
- allRowsFetchedin interface- StatementListener
- Parameters:
- sender- The- FbStatementthat called this method.
- See Also:
- StatementListener.statementExecuted(FbStatement, boolean, boolean)
 
 - 
statementExecutedpublic void statementExecuted(FbStatement sender, boolean hasResultSet, boolean hasSingletonResult) Description copied from interface:StatementListenerMethod to be notified when a statement has been executed.This event with hasResultSet=truecan be seen as the counter part ofStatementListener.allRowsFetched(FbStatement).- Specified by:
- statementExecutedin interface- StatementListener
- 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.
 
 - 
statementStateChangedpublic void statementStateChanged(FbStatement sender, StatementState newState, StatementState previousState) Description copied from interface:StatementListenerMethod to be notified when the state of a statement has changed.- Specified by:
- statementStateChangedin interface- StatementListener
- Parameters:
- sender- The- FbStatementthat called this method.
- newState- The new state of the statement
- previousState- The old state of the statement
 
 - 
warningReceivedpublic void warningReceived(FbStatement sender, java.sql.SQLWarning warning) Description copied from interface:StatementListenerCalled when a warning was received for thesenderstatement.- Specified by:
- warningReceivedin interface- StatementListener
- Parameters:
- sender- Statement receiving the warning
- warning- Warning
 
 - 
sqlCountspublic void sqlCounts(FbStatement sender, SqlCountHolder sqlCounts) Description copied from interface:StatementListenerCalled when the SQL counts of a statement have been retrieved.- Specified by:
- sqlCountsin interface- StatementListener
- Parameters:
- sender- Statement that called this method
- sqlCounts- SQL counts
 
 
- 
 
-