Closes the underlying connection this SQLHelper wraps
()
| 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 |
nothing calls this directly
no test coverage detected