org.apache.log4j.jdbcplus.examples
Class MySqlConnectionHandler

java.lang.Object
  |
  +--org.apache.log4j.jdbcplus.examples.MySqlConnectionHandler
All Implemented Interfaces:
JDBCConnectionHandler

public class MySqlConnectionHandler
extends Object
implements JDBCConnectionHandler

Implement a sample JDBCConnectionHandler for MySQL database

Since:
2.0
Version:
see jdbcappender.jar/META-INF/MANIFEST.MF for version information
Author:
Danko Mannhaupt

Constructor Summary
MySqlConnectionHandler()
           
 
Method Summary
 Connection getConnection()
          Get a connection
 Connection getConnection(String _url, String _username, String _password)
          Get a defined connection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MySqlConnectionHandler

public MySqlConnectionHandler()
Method Detail

getConnection

public Connection getConnection()
Description copied from interface: JDBCConnectionHandler
Get a connection

Specified by:
getConnection in interface JDBCConnectionHandler
Returns:
The Connection value

getConnection

public Connection getConnection(String _url,
                                String _username,
                                String _password)
Description copied from interface: JDBCConnectionHandler
Get a defined connection

Specified by:
getConnection in interface JDBCConnectionHandler
Parameters:
_url - Description of Parameter
_username - Description of Parameter
_password - Description of Parameter
Returns:
The Connection value


Copyright 2000-2004 Apache Software Foundation.