Package org.smallmind.persistence.sql
Class OmnivorousConnectionPoolDataSource<D extends CommonDataSource,P extends PooledConnection>
java.lang.Object
org.smallmind.persistence.sql.OmnivorousConnectionPoolDataSource<D,P>
- All Implemented Interfaces:
CommonDataSource,ConnectionPoolDataSource
public class OmnivorousConnectionPoolDataSource<D extends CommonDataSource,P extends PooledConnection>
extends Object
implements ConnectionPoolDataSource
-
Constructor Summary
ConstructorsConstructorDescriptionOmnivorousConnectionPoolDataSource(D dataSource, Class<P> pooledConnectionClass) OmnivorousConnectionPoolDataSource(D dataSource, Class<P> pooledConnectionClass, int maxStatements) -
Method Summary
Modifier and TypeMethodDescriptionintgetPooledConnection(String user, String password) voidsetLoginTimeout(int seconds) voidsetLogWriter(PrintWriter out) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.sql.CommonDataSource
createShardingKeyBuilderMethods inherited from interface javax.sql.ConnectionPoolDataSource
createPooledConnectionBuilder
-
Constructor Details
-
OmnivorousConnectionPoolDataSource
-
OmnivorousConnectionPoolDataSource
-
-
Method Details
-
getPooledConnection
- Specified by:
getPooledConnectionin interfaceConnectionPoolDataSource- Throws:
SQLException
-
getPooledConnection
- Specified by:
getPooledConnectionin interfaceConnectionPoolDataSource- Throws:
SQLException
-
getParentLogger
- Specified by:
getParentLoggerin interfaceCommonDataSource- Throws:
SQLFeatureNotSupportedException
-
getLogWriter
- Specified by:
getLogWriterin interfaceCommonDataSource- Specified by:
getLogWriterin interfaceConnectionPoolDataSource- Throws:
SQLException
-
setLogWriter
- Specified by:
setLogWriterin interfaceCommonDataSource- Specified by:
setLogWriterin interfaceConnectionPoolDataSource- Throws:
SQLException
-
getLoginTimeout
- Specified by:
getLoginTimeoutin interfaceCommonDataSource- Specified by:
getLoginTimeoutin interfaceConnectionPoolDataSource- Throws:
SQLException
-
setLoginTimeout
- Specified by:
setLoginTimeoutin interfaceCommonDataSource- Specified by:
setLoginTimeoutin interfaceConnectionPoolDataSource- Throws:
SQLException
-