org.rimudb.pool
Interface IConnectionManager

All Known Implementing Classes:
C3P0ConnectionManager, DBCPConnectionManager, JNDIConnectionManager

public interface IConnectionManager

Author:
Simon Ritchie

Method Summary
 void connect(java.lang.String user, java.lang.String password)
          Connect to the database.
 void disconnect()
          Disconnect from the database.
 java.sql.Connection getDatabaseConnection()
          Get a database connection, presumably from a pool.
 PoolStatistic getPoolStatistic()
          Return a PoolStatistic describing the current status of the pool.
 

Method Detail

connect

void connect(java.lang.String user,
             java.lang.String password)
             throws java.lang.Exception
Connect to the database.

Parameters:
user - String
password - String
Throws:
java.lang.Exception

disconnect

void disconnect()
                throws RimuDBException
Disconnect from the database.

Throws:
RimuDBException

getDatabaseConnection

java.sql.Connection getDatabaseConnection()
                                          throws java.sql.SQLException
Get a database connection, presumably from a pool.

Returns:
Connection
Throws:
java.sql.SQLException

getPoolStatistic

PoolStatistic getPoolStatistic()
                               throws RimuDBException
Return a PoolStatistic describing the current status of the pool.

Returns:
PoolStatistic
Throws:
RimuDBException


Copyright © 2008-2011 Simon Ritchie. All Rights Reserved.