Package com.github.kagkarlsson.jdbc
Class DataSourceConnectionSupplier
- java.lang.Object
-
- com.github.kagkarlsson.jdbc.DataSourceConnectionSupplier
-
- All Implemented Interfaces:
ConnectionSupplier
public class DataSourceConnectionSupplier extends Object implements ConnectionSupplier
-
-
Constructor Summary
Constructors Constructor Description DataSourceConnectionSupplier(DataSource dataSource, boolean commitWhenAutocommitDisabled)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancommitWhenAutocommitDisabled()ConnectiongetConnection()booleanisExternallyManagedConnection()
-
-
-
Constructor Detail
-
DataSourceConnectionSupplier
public DataSourceConnectionSupplier(DataSource dataSource, boolean commitWhenAutocommitDisabled)
-
-
Method Detail
-
getConnection
public Connection getConnection() throws SQLException
- Specified by:
getConnectionin interfaceConnectionSupplier- Throws:
SQLException
-
commitWhenAutocommitDisabled
public boolean commitWhenAutocommitDisabled()
- Specified by:
commitWhenAutocommitDisabledin interfaceConnectionSupplier
-
isExternallyManagedConnection
public boolean isExternallyManagedConnection()
- Specified by:
isExternallyManagedConnectionin interfaceConnectionSupplier
-
-