Sets the wrapped connection's auto-commit property. Calling this method will automatically disable the task started by SQLHelper#setCommitInterval(int). @param autoCommit The auto-commit property - whether it will commit with every command
(boolean autoCommit)
| 414 | * @param autoCommit The auto-commit property - whether it will commit with every command |
| 415 | */ |
| 416 | public void setAutoCommit(boolean autoCommit) { |
| 417 | try { |
| 418 | setCommitInterval(-1); |
| 419 | connection.setAutoCommit(autoCommit); |
| 420 | } catch (SQLException e) { |
| 421 | sneakyThrow(e); |
| 422 | |
| 423 | } |
| 424 | } |
| 425 | |
| 426 | /** |
| 427 | * @return The auto-commit property of the wrapped connection |
no test coverage detected