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.
|
boolean |
getNoLock()
Check if the current temporary database can avoid using locks.
|
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.TempDbManagerpublic boolean getNoLock()
getNoLock in interface TemporaryDatabaseManager.TempDbManagerpublic java.lang.String getMyTempDbName()
getMyTempDbName in interface TemporaryDatabaseManager.TempDbManagerpublic boolean removeMyTempDatabase()
removeMyTempDatabase in interface TemporaryDatabaseManager.TempDbManagertrue as there is only one physical temporary database, so
only one remove is needed to eliminate this database.