Class DeleteH2Database
- java.lang.Object
-
- com.tagtraum.beatunes.library.recovery.DeleteH2Database
-
public class DeleteH2Database extends Object
Deletes the databases by renaming the database folder to[originalName] deleted on [yyyy-MM-dd HH-mm-ss]
.- Author:
- Hendrik Schreiber
-
-
Constructor Summary
Constructors Constructor Description DeleteH2Database(File databaseDirectory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete()
Renames the old database.File
getDatabaseDirectory()
void
markForDeletion()
boolean
requiresDeletion()
-
-
-
Constructor Detail
-
DeleteH2Database
public DeleteH2Database(File databaseDirectory)
-
-
Method Detail
-
getDatabaseDirectory
public File getDatabaseDirectory()
-
markForDeletion
public void markForDeletion() throws IOException
- Throws:
IOException
-
requiresDeletion
public boolean requiresDeletion()
-
delete
public void delete() throws IOException
Renames the old database.- Throws:
IOException
-
-