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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MySqlConnectionHandler
public MySqlConnectionHandler()
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.