fr.lri.bd.olap.db
Class DBPool

java.lang.Object
  extended by fr.lri.bd.olap.db.DBPool

public class DBPool
extends Object

DBPool class is database pool for specified OlapTree class. It encapsulate pool of database connection for each loaded OlapTree.

Author:
holubec

Constructor Summary
DBPool(DBConnectionProperties props)
          Initialize DB pool using connection properties
 
Method Summary
 void destroy()
          Destroy this pool
 Connection getConnection()
           
 DBConnectionProperties getDBConnectionProperties()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBPool

public DBPool(DBConnectionProperties props)
Initialize DB pool using connection properties

Parameters:
props - DB Connection properties DTO
Method Detail

getDBConnectionProperties

public DBConnectionProperties getDBConnectionProperties()
Returns:
DB Connection properties of this pool

getConnection

public Connection getConnection()
                         throws SQLException
Returns:
connection to database
Throws:
SQLException

destroy

public void destroy()
             throws SQLException
Destroy this pool

Throws:
SQLException