Package com.helixframework.db.tx
Class AutoSetAutoCommit
java.lang.Object
com.helixframework.db.tx.AutoSetAutoCommit
- All Implemented Interfaces:
AutoCloseable
AutoCloseable that automatically disables / re-enables JDBC auto-commit.
-
Constructor Summary
ConstructorsConstructorDescriptionAutoSetAutoCommit(Connection conn, boolean autoCommit) Creates a new instance ofAutoSetAutoCommit. -
Method Summary
-
Constructor Details
-
AutoSetAutoCommit
Creates a new instance ofAutoSetAutoCommit.- Parameters:
conn- db connectionautoCommit- desired auto commit state- Throws:
SQLException- if autocommit cannot be set on the connection
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-