org.apache.maven.continuum.management
Interface DataManagementTool

All Known Implementing Classes:
JdoDataManagementTool, JdoDataManagementTool, LegacyJdoDataManagementTool, LegacyJdoDataManagementTool

public interface DataManagementTool

Delegate to the correct data management tool.

Version:
$Id: DataManagementTool.java 1372260 2012-08-13 04:29:09Z brett $

Method Summary
 void backupDatabase(File backupDirectory)
          Backup the database.
 void eraseDatabase()
          Smoke the database.
 void restoreDatabase(File backupDirectory, boolean strict)
          Restore the database.
 

Method Detail

backupDatabase

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

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

restoreDatabase

void restoreDatabase(File backupDirectory,
                     boolean strict)
                     throws IOException,
                            DataManagementException
Restore the database.

Parameters:
backupDirectory - the directory where the backup to restore from resides
strict -
Throws:
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.



Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.