Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.objectstyle.cayenne.access.util
Class ConnectionEventLogger  view ConnectionEventLogger download ConnectionEventLogger.java

java.lang.Object
  extended byorg.objectstyle.cayenne.access.util.ConnectionEventLogger
All Implemented Interfaces:
org.objectstyle.cayenne.conn.ConnectionEventLoggingDelegate

public class ConnectionEventLogger
extends java.lang.Object
implements org.objectstyle.cayenne.conn.ConnectionEventLoggingDelegate


Field Summary
protected  org.apache.log4j.Level logLevel
           
 
Constructor Summary
ConnectionEventLogger(org.apache.log4j.Level logLevel)
           
 
Method Summary
 void logConnect(java.lang.String url, java.lang.String userName, java.lang.String password)
           
 void logConnectFailure(java.lang.Throwable th)
           
 void logConnectSuccess()
           
 void logPoolCreated(org.objectstyle.cayenne.conn.DataSourceInfo info)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logLevel

protected org.apache.log4j.Level logLevel
Constructor Detail

ConnectionEventLogger

public ConnectionEventLogger(org.apache.log4j.Level logLevel)
Method Detail

logConnect

public void logConnect(java.lang.String url,
                       java.lang.String userName,
                       java.lang.String password)
Specified by:
logConnect in interface org.objectstyle.cayenne.conn.ConnectionEventLoggingDelegate

logConnectFailure

public void logConnectFailure(java.lang.Throwable th)
Specified by:
logConnectFailure in interface org.objectstyle.cayenne.conn.ConnectionEventLoggingDelegate

logConnectSuccess

public void logConnectSuccess()
Specified by:
logConnectSuccess in interface org.objectstyle.cayenne.conn.ConnectionEventLoggingDelegate

logPoolCreated

public void logPoolCreated(org.objectstyle.cayenne.conn.DataSourceInfo info)
Specified by:
logPoolCreated in interface org.objectstyle.cayenne.conn.ConnectionEventLoggingDelegate