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