public class TARDISDatabaseConnection
extends java.lang.Object
Many facts, figures, and formulas are contained within the Matrix - a supercomputer and micro-universe used by the High Council of the Time Lords as a storehouse of knowledge to predict future events.
Modifier and Type | Field and Description |
---|---|
java.sql.Connection |
connection |
Constructor and Description |
---|
TARDISDatabaseConnection() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
clone() |
java.sql.Connection |
getConnection() |
static TARDISDatabaseConnection |
getINSTANCE() |
void |
setConnection() |
void |
setConnection(java.lang.String path) |
void |
testConnection(java.sql.Connection connection)
Test the database connection
|
public static TARDISDatabaseConnection getINSTANCE()
public void setConnection(java.lang.String path) throws java.lang.Exception
java.lang.Exception
public void setConnection()
public java.sql.Connection getConnection()
protected java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- No cloning allowedpublic void testConnection(java.sql.Connection connection)
connection
- the database connection to test