Class TomcatConnectionPoolFactory.TomcatConnectionPool
java.lang.Object
org.datanucleus.store.rdbms.connectionpool.TomcatConnectionPoolFactory.TomcatConnectionPool
- All Implemented Interfaces:
ConnectionPool
- Enclosing class:
TomcatConnectionPoolFactory
public class TomcatConnectionPoolFactory.TomcatConnectionPool
extends Object
implements ConnectionPool
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final org.apache.tomcat.jdbc.pool.DataSource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Method to call when closing the StoreManager down, and consequently to close the pool.Accessor for the pooled DataSource.
-
Field Details
-
dataSource
final org.apache.tomcat.jdbc.pool.DataSource dataSource
-
-
Constructor Details
-
TomcatConnectionPool
public TomcatConnectionPool(org.apache.tomcat.jdbc.pool.DataSource ds)
-
-
Method Details
-
close
public void close()Description copied from interface:ConnectionPool
Method to call when closing the StoreManager down, and consequently to close the pool.- Specified by:
close
in interfaceConnectionPool
-
getDataSource
Description copied from interface:ConnectionPool
Accessor for the pooled DataSource.- Specified by:
getDataSource
in interfaceConnectionPool
- Returns:
- The DataSource
-