Class RecoverH2Database
- java.lang.Object
-
- com.tagtraum.beatunes.library.recovery.RecoverH2Database
-
public class RecoverH2Database extends Object
Recover the databases by first dumping SQL and then rebuilding the database files.- Author:
- Hendrik Schreiber
-
-
Constructor Summary
Constructors Constructor Description RecoverH2Database(File databaseDirectory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description File
getDatabaseDirectory()
void
markForRecovery()
void
recover()
boolean
requiresRecovery()
-
-
-
Constructor Detail
-
RecoverH2Database
public RecoverH2Database(File databaseDirectory)
-
-
Method Detail
-
getDatabaseDirectory
public File getDatabaseDirectory()
-
markForRecovery
public void markForRecovery() throws IOException
- Throws:
IOException
-
requiresRecovery
public boolean requiresRecovery()
-
recover
public void recover() throws SQLException, IOException
- Throws:
SQLException
IOException
-
-