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

Method close

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

Closes the underlying connection this SQLHelper wraps

()

Source from the content-addressed store, hash-verified

491 * Closes the underlying connection this SQLHelper wraps
492 */
493 @Override
494 public void close() {
495 try {
496 setCommitInterval(-1);
497 connection.close();
498 connection = null;
499 System.gc();
500 } catch (SQLException e) {
501 sneakyThrow(e);
502 }
503 }
504
505 /**
506 * Wraps a {@link ResultSet} with easier use

Callers

nothing calls this directly

Calls 3

setCommitIntervalMethod · 0.95
sneakyThrowMethod · 0.95
closeMethod · 0.65

Tested by

no test coverage detected