Class AutoSetAutoCommit

java.lang.Object
com.helixframework.db.tx.AutoSetAutoCommit
All Implemented Interfaces:
AutoCloseable

public class AutoSetAutoCommit extends Object implements AutoCloseable
AutoCloseable that automatically disables / re-enables JDBC auto-commit.
  • Constructor Details

    • AutoSetAutoCommit

      public AutoSetAutoCommit(Connection conn, boolean autoCommit) throws SQLException
      Creates a new instance of AutoSetAutoCommit.
      Parameters:
      conn - db connection
      autoCommit - desired auto commit state
      Throws:
      SQLException - if autocommit cannot be set on the connection
  • Method Details