Package org.apache.openjpa.lib.jdbc
Class JDBCEventConnectionDecorator
java.lang.Object
org.apache.openjpa.lib.util.concurrent.AbstractConcurrentEventManager
org.apache.openjpa.lib.jdbc.JDBCEventConnectionDecorator
- All Implemented Interfaces:
Serializable
,ConnectionDecorator
,EventManager
public class JDBCEventConnectionDecorator
extends AbstractConcurrentEventManager
implements ConnectionDecorator
Manages the firing of
JDBCEvent
s.- Author:
- Abe White
- See Also:
-
Field Summary
Fields inherited from class org.apache.openjpa.lib.util.concurrent.AbstractConcurrentEventManager
_listeners
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondecorate
(Connection conn) Decorate the given connection if desired.protected void
Fire the given event to all listeners.Methods inherited from class org.apache.openjpa.lib.util.concurrent.AbstractConcurrentEventManager
addListener, fireEvent, getListeners, hasListener, hasListeners, isFailFast, newListenerCollection, removeListener, setFailFast
-
Constructor Details
-
JDBCEventConnectionDecorator
public JDBCEventConnectionDecorator()
-
-
Method Details
-
decorate
Description copied from interface:ConnectionDecorator
Decorate the given connection if desired.- Specified by:
decorate
in interfaceConnectionDecorator
-
fireEvent
Fire the given event to all listeners.- Specified by:
fireEvent
in classAbstractConcurrentEventManager
-