Modifier and Type | Field and Description |
---|---|
private DatabaseConnection |
databaseConnection |
Constructor and Description |
---|
ObjectDB()
Class constructor that fetches the connection to the production database.
|
ObjectDB(DatabaseConnection databaseConnection)
Class constructor that stores the given database connection for later use.
|
Modifier and Type | Method and Description |
---|---|
void |
emptyAllTables()
Empties all the tables in the database
|
protected DatabaseConnection |
getDatabaseConnection() |
private DatabaseConnection databaseConnection
public ObjectDB() throws DatabaseConnectionException
DatabaseConnectionException
public ObjectDB(DatabaseConnection databaseConnection)
databaseConnection
- public void emptyAllTables() throws java.sql.SQLException
java.sql.SQLException
protected DatabaseConnection getDatabaseConnection()