MCPcopy Create free account
hub / github.com/boxbeam/RedLib / setAutoCommit

Method setAutoCommit

src/redempt/redlib/sql/SQLHelper.java:416–424  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 1

setCommitIntervalMethod · 0.95

Calls 2

setCommitIntervalMethod · 0.95
sneakyThrowMethod · 0.95

Tested by

no test coverage detected