1 19 20 package org.apache.cayenne.access; 21 22 import org.apache.cayenne.conn.ConnectionEventLoggingDelegate; 23 import org.apache.cayenne.conn.DataSourceInfo; 24 25 33 public class ConnectionLogger implements ConnectionEventLoggingDelegate { 34 35 public void logConnect(String url, String userName, String password) { 36 QueryLogger.logConnect(url, userName, password); 37 } 38 39 public void logConnectFailure(Throwable th) { 40 QueryLogger.logConnectFailure(th); 41 } 42 43 public void logConnectSuccess() { 44 QueryLogger.logConnectSuccess(); 45 } 46 47 public void logPoolCreated(DataSourceInfo info) { 48 QueryLogger.logPoolCreated(info); 49 } 50 } 51 | Popular Tags |