org.apache.log4j.jdbcplus
Interface JDBCConnectionHandler

All Known Subinterfaces:
JDBCPoolConnectionHandler
All Known Implementing Classes:
DbcpPoolConnectionHandler, FirebirdPoolConnectionHandler, JDBCDefaultConnectionHandler, MySqlConnectionHandler, OracleConnectionHandler

public interface JDBCConnectionHandler

This interface has to be implemented for your own database-connection-handling and its used in class JDBCLogger.

Since:
1.0
Version:
see jdbcappender.jar/META-INF/MANIFEST.MF for version information
Author:
Thomas Fenner

Method Summary
 Connection getConnection()
          Get a connection
 Connection getConnection(String _url, String _username, String _password)
          Get a defined connection
 

Method Detail

getConnection

public Connection getConnection()
                         throws Exception
Get a connection

Returns:
The Connection value
Throws:
Exception - Description of Exception

getConnection

public Connection getConnection(String _url,
                                String _username,
                                String _password)
                         throws Exception
Get a defined connection

Parameters:
_url - Description of Parameter
_username - Description of Parameter
_password - Description of Parameter
Returns:
The Connection value
Throws:
Exception - Description of Exception


Copyright 2000-2004 Apache Software Foundation.