public class DatabaseHistory
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
addDatabase(TypeDataBase typeDb,
java.lang.String path)
Add a database type with it's path to the history file.
|
void |
clear()
Clear the list of known databases.
|
boolean |
exists(java.lang.String path)
Check if the provided database exist.
|
boolean |
exists(TypeDataBase typeDb,
java.lang.String path)
Check if the provided database exist.
|
java.util.List<java.lang.String> |
getDb(TypeDataBase typeDb)
Return a list of path readed in the file for database type provided.
|
static DatabaseHistory |
getInstance()
Create an instance if needed then return it.
|
public static DatabaseHistory getInstance()
public java.util.List<java.lang.String> getDb(TypeDataBase typeDb)
typeDb - The type of database from we want the list of path.public boolean addDatabase(TypeDataBase typeDb, java.lang.String path)
typeDb - The TypeDataBase.path - The path of the database.public boolean exists(TypeDataBase typeDb, java.lang.String path)
typeDb - The TypeDataBase.path - The path of database.public boolean exists(java.lang.String path)
path - The path of database.public void clear()