Package com.github.kagkarlsson.jdbc
Class DataSourceConnectionSupplier
java.lang.Object
com.github.kagkarlsson.jdbc.DataSourceConnectionSupplier
- All Implemented Interfaces:
ConnectionSupplier
-
Constructor Summary
ConstructorsConstructorDescriptionDataSourceConnectionSupplier(DataSource dataSource, boolean commitWhenAutocommitDisabled) -
Method Summary
Modifier and TypeMethodDescriptionbooleanboolean
-
Constructor Details
-
DataSourceConnectionSupplier
-
-
Method Details
-
getConnection
- Specified by:
getConnectionin interfaceConnectionSupplier- Throws:
SQLException
-
commitWhenAutocommitDisabled
public boolean commitWhenAutocommitDisabled()- Specified by:
commitWhenAutocommitDisabledin interfaceConnectionSupplier
-
isExternallyManagedConnection
public boolean isExternallyManagedConnection()- Specified by:
isExternallyManagedConnectionin interfaceConnectionSupplier
-