MCPcopy Create free account
hub / github.com/5zig/The-5zig-Mod / closeConnection

Method closeConnection

Utils/src/eu/the5zig/util/db/Database.java:213–223  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

211 }
212
213 public synchronized void closeConnection() {
214 if (!this.connected)
215 return;
216 try {
217 this.connection.close();
218 } catch (SQLException e) {
219 getLogger().error("Could not close SQL Connection!", e);
220 } finally {
221 this.connection = null;
222 }
223 }
224
225 public Logger getLogger() {
226 return LOGGER;

Callers 3

openConnectionMethod · 0.95
shutdownMethod · 0.45

Calls 3

getLoggerMethod · 0.95
closeMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected