org.apache.maven.continuum.management
Interface DataManagementTool

Package class diagram package DataManagementTool

public interface DataManagementTool

Delegate to the correct data management tool.


Method Summary
 void backupDatabase(java.io.File backupDirectory)
          Backup the database.
 void eraseDatabase()
          Smoke the database.
 void restoreDatabase(java.io.File backupDirectory)
          Restore the database.
 

Method Detail

backupDatabase

void backupDatabase(java.io.File backupDirectory)
                    throws java.io.IOException,
                           DataManagementException
Backup the database.

Parameters:
backupDirectory - the directory to backup to
Throws:
java.io.IOException - if there is a problem writing to the backup file
DataManagementException - if there is a problem reading from the database

restoreDatabase

void restoreDatabase(java.io.File backupDirectory)
                     throws java.io.IOException,
                            DataManagementException
Restore the database.

Parameters:
backupDirectory - the directory where the backup to restore from resides
Throws:
java.io.IOException - if there is a problem reading the backup file
DataManagementException - if there is a problem parsing the backup file

eraseDatabase

void eraseDatabase()
Smoke the database.