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
sender statement. |
public void receivedRow(FbStatement sender, RowValue rowValue)
StatementListener
receivedRow
in interface StatementListener
sender
- The FbStatement
that called this method.rowValue
- The row values.public void allRowsFetched(FbStatement sender)
StatementListener
This method may also be called when the statement did not produce any rows (or did not open a result set).
allRowsFetched
in interface StatementListener
sender
- 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 StatementListener
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.public void statementStateChanged(FbStatement sender, StatementState newState, StatementState previousState)
StatementListener
statementStateChanged
in interface StatementListener
sender
- 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)
StatementListener
sender
statement.warningReceived
in interface StatementListener
sender
- Statement receiving the warningwarning
- Warningpublic void sqlCounts(FbStatement sender, SqlCountHolder sqlCounts)
StatementListener
sqlCounts
in interface StatementListener
sender
- Statement that called this methodsqlCounts
- SQL countsCopyright © 2001-2021 Jaybird (Firebird JDBC/JCA) team. All rights reserved.