Package org.apache.openjpa.lib.jdbc
Class DataSourceLogs
java.lang.Object
org.apache.openjpa.lib.jdbc.DataSourceLogs
Provies basic logging facilities to a DataSource.
- Author:
- Marc Prud'hommeaux
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe log to write JDBC messages to.The log to write SQL messages to.booleanReturn true if JDBC logging is enabled.booleanReturn true if SQL logging is enabled.voidlogJDBC(String msg, long startTime, Connection conn) Log a JDBC message on behalf of the given connection.voidlogJDBC(String msg, Connection conn) Log a JDBC message on behalf of the given connection.voidlogSQL(String msg, long startTime, Connection conn) Log a SQL message on behalf of the given connection.voidlogSQL(String msg, Connection conn) Log a SQL message on behalf of the given connection.voidsetJDBCLog(Log log) The log to write JDBC messages to.voidThe log to write SQL messages to.
-
Constructor Details
-
DataSourceLogs
public DataSourceLogs()
-
-
Method Details
-
getJDBCLog
The log to write JDBC messages to. -
setJDBCLog
The log to write JDBC messages to. -
isJDBCEnabled
public boolean isJDBCEnabled()Return true if JDBC logging is enabled. -
getSQLLog
The log to write SQL messages to. -
setSQLLog
The log to write SQL messages to. -
isSQLEnabled
public boolean isSQLEnabled()Return true if SQL logging is enabled. -
logJDBC
Log a JDBC message on behalf of the given connection. -
logJDBC
Log a JDBC message on behalf of the given connection. -
logSQL
Log a SQL message on behalf of the given connection. -
logSQL
Log a SQL message on behalf of the given connection.
-