Package openbook.client
Class SQLLogger
- java.lang.Object
-
- org.apache.openjpa.lib.jdbc.AbstractJDBCListener
-
- openbook.client.SQLLogger
-
- All Implemented Interfaces:
JDBCListener
public class SQLLogger extends AbstractJDBCListener
Logs SQL statement to a graphic console.- Author:
- Pinaki Poddar
-
-
Constructor Summary
Constructors Constructor Description SQLLogger()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
beforeExecuteStatement(JDBCEvent event)
void
setOutput(GraphicOutputStream o)
-
Methods inherited from class org.apache.openjpa.lib.jdbc.AbstractJDBCListener
afterCommit, afterConnect, afterCreateStatement, afterExecuteStatement, afterPrepareStatement, afterReturn, afterRollback, beforeClose, beforeCommit, beforeCreateStatement, beforePrepareStatement, beforeReturn, beforeRollback, eventOccurred
-
-
-
-
Method Detail
-
setOutput
public void setOutput(GraphicOutputStream o)
-
beforeExecuteStatement
public void beforeExecuteStatement(JDBCEvent event)
- Specified by:
beforeExecuteStatement
in interfaceJDBCListener
- Overrides:
beforeExecuteStatement
in classAbstractJDBCListener
- See Also:
JDBCEvent.BEFORE_EXECUTE_STATEMENT
-
-