Package org.firebirdsql.gds.ng.listeners
Class DefaultDatabaseListener
java.lang.Object
org.firebirdsql.gds.ng.listeners.DefaultDatabaseListener
- All Implemented Interfaces:
DatabaseListener
Default implementation of
DatabaseListener where all implemented methods
do nothing.- Since:
- 3.0
- Author:
- Mark Rotteveel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddetached(FbDatabase database) Called when thedatabaseconnection has been detachedvoiddetaching(FbDatabase database) Called before thedatabasewill be detached.voidwarningReceived(FbDatabase database, SQLWarning warning) Called when a warning was received for thedatabaseconnection.
-
Constructor Details
-
DefaultDatabaseListener
public DefaultDatabaseListener()
-
-
Method Details
-
detaching
Description copied from interface:DatabaseListenerCalled before thedatabasewill be detached.This event is intended for cleanup action, implementer should take care that no exceptions are thrown from this method.
- Specified by:
detachingin interfaceDatabaseListener- Parameters:
database- The database object that is detaching
-
detached
Description copied from interface:DatabaseListenerCalled when thedatabaseconnection has been detached- Specified by:
detachedin interfaceDatabaseListener- Parameters:
database- The database object that was detached
-
warningReceived
Description copied from interface:DatabaseListenerCalled when a warning was received for thedatabaseconnection.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
FbStatementimplementation).- Specified by:
warningReceivedin interfaceDatabaseListener- Parameters:
database- Database receiving the warningwarning- Warning
-