Package org.smallmind.persistence.sql
Class DriverManagerDataSource
java.lang.Object
org.smallmind.persistence.sql.DriverManagerDataSource
- All Implemented Interfaces:
Wrapper,CommonDataSource,DataSource
-
Constructor Summary
ConstructorsConstructorDescriptionDriverManagerDataSource(String driverClassName, String jdbcUrl, String user, String password) -
Method Summary
Modifier and TypeMethodDescriptiongetConnection(String user, String password) intbooleanisWrapperFor(Class<?> iface) voidsetLoginTimeout(int timeoutSeconds) voidsetLogWriter(PrintWriter logWriter) <T> TMethods 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.DataSource
createConnectionBuilder
-
Constructor Details
-
DriverManagerDataSource
public DriverManagerDataSource(String driverClassName, String jdbcUrl, String user, String password) throws SQLException - Throws:
SQLException
-
-
Method Details
-
getConnection
- Specified by:
getConnectionin interfaceDataSource- Throws:
SQLException
-
getConnection
- Specified by:
getConnectionin interfaceDataSource- Throws:
SQLException
-
getParentLogger
- Specified by:
getParentLoggerin interfaceCommonDataSource- Throws:
SQLFeatureNotSupportedException
-
getLogWriter
- Specified by:
getLogWriterin interfaceCommonDataSource- Specified by:
getLogWriterin interfaceDataSource
-
setLogWriter
- Specified by:
setLogWriterin interfaceCommonDataSource- Specified by:
setLogWriterin interfaceDataSource
-
getLoginTimeout
public int getLoginTimeout()- Specified by:
getLoginTimeoutin interfaceCommonDataSource- Specified by:
getLoginTimeoutin interfaceDataSource
-
setLoginTimeout
public void setLoginTimeout(int timeoutSeconds) - Specified by:
setLoginTimeoutin interfaceCommonDataSource- Specified by:
setLoginTimeoutin interfaceDataSource
-
isWrapperFor
- Specified by:
isWrapperForin interfaceWrapper
-
unwrap
-