Package com.exedio.cope.misc
Class DatabaseLogListener
- java.lang.Object
-
- com.exedio.cope.misc.DatabaseLogListener
-
- All Implemented Interfaces:
DatabaseListener
public final class DatabaseLogListener extends Object implements DatabaseListener
-
-
Constructor Summary
Constructors Constructor Description DatabaseLogListener(int threshold, String sql, PrintStream out)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Date
getDate()
String
getSQL()
int
getThreshold()
void
onStatement(String statement, List<Object> parameters, long durationPrepare, long durationExecute, long durationRead, long durationClose)
-
-
-
Constructor Detail
-
DatabaseLogListener
public DatabaseLogListener(int threshold, String sql, PrintStream out)
-
-
Method Detail
-
getDate
public Date getDate()
-
getThreshold
public int getThreshold()
-
getSQL
public String getSQL()
-
onStatement
public void onStatement(String statement, List<Object> parameters, long durationPrepare, long durationExecute, long durationRead, long durationClose)
- Specified by:
onStatement
in interfaceDatabaseListener
-
-