public class DefaultStatementListener extends java.lang.Object implements StatementListener
StatementListener where all implemented methods
 do nothing.| Constructor and Description | 
|---|
| DefaultStatementListener() | 
| 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  senderstatement. | 
public void receivedRow(FbStatement sender, RowValue rowValue)
StatementListenerreceivedRow in interface StatementListenersender - The FbStatement that called this method.rowValue - The row values.public void allRowsFetched(FbStatement sender)
StatementListenerThis method may also be called when the statement did not produce any rows (or did not open a result set).
allRowsFetched in interface StatementListenersender - The FbStatement that called this method.StatementListener.statementExecuted(FbStatement, boolean, boolean)public void statementExecuted(FbStatement sender, boolean hasResultSet, boolean hasSingletonResult)
StatementListener
 This event with hasResultSet=true can be seen as the counter part of StatementListener.allRowsFetched(FbStatement).
 
statementExecuted in interface StatementListenersender - 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.public void statementStateChanged(FbStatement sender, StatementState newState, StatementState previousState)
StatementListenerstatementStateChanged in interface StatementListenersender - The FbStatement that called this method.newState - The new state of the statementpreviousState - The old state of the statementpublic void warningReceived(FbStatement sender, java.sql.SQLWarning warning)
StatementListenersender statement.warningReceived in interface StatementListenersender - Statement receiving the warningwarning - Warningpublic void sqlCounts(FbStatement sender, SqlCountHolder sqlCounts)
StatementListenersqlCounts in interface StatementListenersender - Statement that called this methodsqlCounts - SQL countsCopyright © 2001-2022 Jaybird (Firebird JDBC/JCA) team. All rights reserved.