private static class TemporaryDatabaseManager.SharedTempDbManager extends java.lang.Object implements TemporaryDatabaseManager.TempDbManager
Modifier and Type | Field and Description |
---|---|
private boolean |
initialized
Flag to indicate if the temporary database was initialized or not
|
Modifier | Constructor and Description |
---|---|
private |
SharedTempDbManager() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMyTempDbName()
Retrieve the name of the temporary database.
|
void |
initializeMyTempDatabase()
Initialize the current temporary database only if it wasn't already initialized.
|
boolean |
removeMyTempDatabase()
Remove the temporary database.
|
private boolean initialized
public void initializeMyTempDatabase()
initializeMyTempDatabase
in interface TemporaryDatabaseManager.TempDbManager
public java.lang.String getMyTempDbName()
getMyTempDbName
in interface TemporaryDatabaseManager.TempDbManager
public boolean removeMyTempDatabase()
removeMyTempDatabase
in interface TemporaryDatabaseManager.TempDbManager
true
as there is only one physical temporary database, so
only one remove is needed to eliminate this database.