|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object mondrian.rolap.RolapConnectionPool
class RolapConnectionPool
Singleton class that holds a connection pool. Call RolapConnectionPool.instance().getPoolingDataSource(connectionFactory) to get a DataSource in return that is a pooled data source.
Method Summary | |
---|---|
(package private) void |
clearPool()
Clears the connection pool for testing purposes |
DataSource |
getPoolingDataSource(Object key,
org.apache.commons.dbcp.ConnectionFactory connectionFactory)
Sets up a pooling data source for connection pooling. |
static RolapConnectionPool |
instance()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static RolapConnectionPool instance()
public DataSource getPoolingDataSource(Object key, org.apache.commons.dbcp.ConnectionFactory connectionFactory)
DriverManagerConnectionFactory
to create connections to the
database.
An alternative method of configuring a pooling driver is to use an external
configuration file. See the the Apache jakarta-commons commons-pool
documentation.
key
- Identifies which connection factory to use. A typical key is
a JDBC connect string, since each JDBC connect string requires a
different connection factory.connectionFactory
- Creates connections from an underlying
JDBC connect string or DataSource
void clearPool()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |