public interface DatabaseListener
All listener methods have a default implementation that does nothing.
Modifier and Type | Method and Description |
---|---|
default void |
detached(FbDatabase database)
Called when the
database connection has been detached |
default void |
detaching(FbDatabase database)
Called before the
database will be detached. |
default void |
warningReceived(FbDatabase database,
java.sql.SQLWarning warning)
Called when a warning was received for the
database connection. |
default void detaching(FbDatabase database)
database
will be detached.
This event is intended for cleanup action, implementer should take care that no exceptions are thrown from this method.
database
- The database object that is detachingdefault void detached(FbDatabase database)
database
connection has been detacheddatabase
- The database object that was detacheddefault void warningReceived(FbDatabase database, java.sql.SQLWarning warning)
database
connection.
In implementation it is possible that some warnings are not sent to listeners on the database, but only to
listeners on
specific connection derived objects (like an FbStatement
implementation).
database
- Database receiving the warningwarning
- WarningCopyright © 2001-2024 Jaybird (Firebird JDBC) team. All rights reserved.