org.apache.cayenne.access
Class ConnectionLogger
java.lang.Object
org.apache.cayenne.access.ConnectionLogger
- All Implemented Interfaces:
- ConnectionEventLoggingDelegate
- Direct Known Subclasses:
- ConnectionEventLogger
public class ConnectionLogger
- extends java.lang.Object
- implements ConnectionEventLoggingDelegate
Adapts QueryLogger
to be used as a
ConnectionEventLoggingDelegate
with Cayenne
connection pools.
- Since:
- 1.2
- Author:
- Andrus Adamchik
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConnectionLogger
public ConnectionLogger()
logConnect
public void logConnect(java.lang.String url,
java.lang.String userName,
java.lang.String password)
- Specified by:
logConnect
in interface ConnectionEventLoggingDelegate
logConnectFailure
public void logConnectFailure(java.lang.Throwable th)
- Specified by:
logConnectFailure
in interface ConnectionEventLoggingDelegate
logConnectSuccess
public void logConnectSuccess()
- Specified by:
logConnectSuccess
in interface ConnectionEventLoggingDelegate
logPoolCreated
public void logPoolCreated(DataSourceInfo info)
- Specified by:
logPoolCreated
in interface ConnectionEventLoggingDelegate
Copyright © 2001-2006 Apache.org All Rights Reserved.