public class DefaultDatabaseListener extends java.lang.Object implements DatabaseListener
DatabaseListener
where all implemented methods
do nothing.Constructor and Description |
---|
DefaultDatabaseListener() |
Modifier and Type | Method and Description |
---|---|
void |
detached(FbDatabase database)
Called when the
database connection has been detached |
void |
detaching(FbDatabase database)
Called before the
database will be detached. |
void |
warningReceived(FbDatabase database,
java.sql.SQLWarning warning)
Called when a warning was received for the
database connection. |
public void detaching(FbDatabase database)
DatabaseListener
database
will be detached.
This event is intended for cleanup action, implementer should take care that no exceptions are thrown from this method.
detaching
in interface DatabaseListener
database
- The database object that is detachingpublic void detached(FbDatabase database)
DatabaseListener
database
connection has been detacheddetached
in interface DatabaseListener
database
- The database object that was detachedpublic void warningReceived(FbDatabase database, java.sql.SQLWarning warning)
DatabaseListener
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).
warningReceived
in interface DatabaseListener
database
- Database receiving the warningwarning
- WarningCopyright © 2001-2021 Jaybird (Firebird JDBC/JCA) team. All rights reserved.