Package org.firebirdsql.gds.ng.listeners
Class DatabaseListenerDispatcher
- java.lang.Object
- 
- org.firebirdsql.gds.ng.listeners.AbstractListenerDispatcher<DatabaseListener>
- 
- org.firebirdsql.gds.ng.listeners.DatabaseListenerDispatcher
 
 
- 
- All Implemented Interfaces:
- java.lang.Iterable<DatabaseListener>,- DatabaseListener
 
 public final class DatabaseListenerDispatcher extends AbstractListenerDispatcher<DatabaseListener> implements DatabaseListener Dispatcher to maintain and notify otherDatabaseListener.- Since:
- 3.0
- Author:
- Mark Rotteveel
 
- 
- 
Constructor SummaryConstructors Constructor Description DatabaseListenerDispatcher()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddetached(FbDatabase database)Called when thedatabaseconnection has been detachedvoiddetaching(FbDatabase database)Called before thedatabasewill be detached.protected voidlogError(java.lang.String message, java.lang.Throwable throwable)voidwarningReceived(FbDatabase database, java.sql.SQLWarning warning)Called when a warning was received for thedatabaseconnection.- 
Methods inherited from class org.firebirdsql.gds.ng.listeners.AbstractListenerDispatcheraddListener, addWeakListener, isShutdown, iterator, notify, removeAllListeners, removeListener, shutdown
 
- 
 
- 
- 
- 
Method Detail- 
detachingpublic void detaching(FbDatabase database) 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 interface- DatabaseListener
- Parameters:
- database- The database object that is detaching
 
 - 
detachedpublic void detached(FbDatabase database) Description copied from interface:DatabaseListenerCalled when thedatabaseconnection has been detached- Specified by:
- detachedin interface- DatabaseListener
- Parameters:
- database- The database object that was detached
 
 - 
warningReceivedpublic void warningReceived(FbDatabase database, java.sql.SQLWarning warning) 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 interface- DatabaseListener
- Parameters:
- database- Database receiving the warning
- warning- Warning
 
 - 
logErrorprotected void logError(java.lang.String message, java.lang.Throwable throwable)- Specified by:
- logErrorin class- AbstractListenerDispatcher<DatabaseListener>
 
 
- 
 
-