org.apache.log4j.jdbcplus.examples
Class FirebirdPoolConnectionHandler

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

public class FirebirdPoolConnectionHandler
extends Object
implements JDBCPoolConnectionHandler

Custom JDBCPoolConnectionHandler to handle connection management for a Firebird database

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

Constructor Summary
FirebirdPoolConnectionHandler()
           
 
Method Summary
 void freeConnection(Connection con)
          The connection is free again, and can be used elsewhere
 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

FirebirdPoolConnectionHandler

public FirebirdPoolConnectionHandler()
Method Detail

getConnection

public Connection getConnection()
                         throws Exception
Get a connection

Specified by:
getConnection in interface JDBCConnectionHandler
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

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

freeConnection

public void freeConnection(Connection con)
                    throws Exception
The connection is free again, and can be used elsewhere

Specified by:
freeConnection in interface JDBCPoolConnectionHandler
Parameters:
con - connection to be freed
Throws:
Exception - if any error occurs


Copyright 2000-2004 Apache Software Foundation.