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

Method getConnection

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

Source from the content-addressed store, hash-verified

193 }
194
195 public synchronized Connection getConnection() throws NoConnectionException {
196 if (!connected)
197 throw new NoConnectionException("No SQL Connection available!");
198
199 if (!hasConnection())
200 return openConnection();
201
202 return this.connection;
203 }
204
205 public synchronized boolean hasConnection() {
206 try {

Callers 2

doUpdateMethod · 0.95

Calls 2

hasConnectionMethod · 0.95
openConnectionMethod · 0.95

Tested by

no test coverage detected