Class ContextualPooledDataSource
java.lang.Object
org.smallmind.persistence.sql.pool.AbstractPooledDataSource<DataSource,PooledConnection>
org.smallmind.persistence.sql.pool.context.ContextualPooledDataSource
- All Implemented Interfaces:
Wrapper,CommonDataSource,DataSource
public class ContextualPooledDataSource
extends AbstractPooledDataSource<DataSource,PooledConnection>
implements DataSource
-
Constructor Summary
ConstructorsConstructorDescriptionContextualPooledDataSource(ContextualPoolNameTranslator poolNameTranslator, ComponentPool... componentPools) -
Method Summary
Modifier and TypeMethodDescriptiongetConnection(String username, String password) voidshutdown()voidstartup()Methods inherited from class org.smallmind.persistence.sql.pool.AbstractPooledDataSource
getDataSourceClass, getLoginTimeout, getLogWriter, getParentLogger, getPooledConnectionClass, isWrapperFor, setLoginTimeout, setLogWriter, unwrapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.sql.CommonDataSource
createShardingKeyBuilder, getParentLoggerMethods inherited from interface javax.sql.DataSource
createConnectionBuilder, getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriterMethods inherited from interface java.sql.Wrapper
isWrapperFor, unwrap
-
Constructor Details
-
ContextualPooledDataSource
public ContextualPooledDataSource(ContextualPoolNameTranslator poolNameTranslator, ComponentPool... componentPools) throws ComponentPoolException - Throws:
ComponentPoolException
-
-
Method Details
-
getConnection
- Specified by:
getConnectionin interfaceDataSource- Throws:
SQLException
-
getConnection
- Specified by:
getConnectionin interfaceDataSource
-
startup
- Specified by:
startupin classAbstractPooledDataSource<DataSource,PooledConnection> - Throws:
ComponentPoolException
-
shutdown
- Specified by:
shutdownin classAbstractPooledDataSource<DataSource,PooledConnection> - Throws:
ComponentPoolException
-