Package org.apache.openjpa.lib.jdbc
Class AbstractJDBCListener
java.lang.Object
org.apache.openjpa.lib.jdbc.AbstractJDBCListener
- All Implemented Interfaces:
JDBCListener
An abstract implementation of the
JDBCListener
listener. It allows simple implementation of fine-grained event handling.- Author:
- Marc Prud'hommeaux
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
afterCommit
(JDBCEvent event) void
afterConnect
(JDBCEvent event) void
afterCreateStatement
(JDBCEvent event) void
afterExecuteStatement
(JDBCEvent event) void
afterPrepareStatement
(JDBCEvent event) void
afterReturn
(JDBCEvent event) void
afterRollback
(JDBCEvent event) void
beforeClose
(JDBCEvent event) void
beforeCommit
(JDBCEvent event) void
beforeCreateStatement
(JDBCEvent event) void
beforeExecuteStatement
(JDBCEvent event) void
beforePrepareStatement
(JDBCEvent event) void
beforeReturn
(JDBCEvent event) void
beforeRollback
(JDBCEvent event) protected void
eventOccurred
(JDBCEvent event) Catch-all for unhandled events.
-
Constructor Details
-
AbstractJDBCListener
public AbstractJDBCListener()
-
-
Method Details
-
eventOccurred
Catch-all for unhandled events. This method is called by all other event methods if you do not override them. Does nothing by default. -
beforePrepareStatement
- Specified by:
beforePrepareStatement
in interfaceJDBCListener
- See Also:
-
afterPrepareStatement
- Specified by:
afterPrepareStatement
in interfaceJDBCListener
- See Also:
-
beforeCreateStatement
- Specified by:
beforeCreateStatement
in interfaceJDBCListener
- See Also:
-
afterCreateStatement
- Specified by:
afterCreateStatement
in interfaceJDBCListener
- See Also:
-
beforeExecuteStatement
- Specified by:
beforeExecuteStatement
in interfaceJDBCListener
- See Also:
-
afterExecuteStatement
- Specified by:
afterExecuteStatement
in interfaceJDBCListener
- See Also:
-
beforeCommit
- Specified by:
beforeCommit
in interfaceJDBCListener
- See Also:
-
afterCommit
- Specified by:
afterCommit
in interfaceJDBCListener
- See Also:
-
beforeRollback
- Specified by:
beforeRollback
in interfaceJDBCListener
- See Also:
-
afterRollback
- Specified by:
afterRollback
in interfaceJDBCListener
- See Also:
-
beforeReturn
-
afterReturn
-
afterConnect
- Specified by:
afterConnect
in interfaceJDBCListener
- See Also:
-
beforeClose
- Specified by:
beforeClose
in interfaceJDBCListener
- See Also:
-