org.apache.maven.continuum.management.redback
Class JdoDataManagementTool

java.lang.Object
  extended by org.apache.maven.continuum.management.redback.JdoDataManagementTool
All Implemented Interfaces:
DataManagementTool

public class JdoDataManagementTool
extends Object
implements DataManagementTool

JDO implementation the database management tool API.

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

Constructor Summary
JdoDataManagementTool()
           
 
Method Summary
 void backupDatabase(File backupDirectory)
          Backup the database.
 void eraseDatabase()
          Smoke the database.
 void restoreDatabase(File backupDirectory, boolean strict)
          Restore the database.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdoDataManagementTool

public JdoDataManagementTool()
Method Detail

backupDatabase

public void backupDatabase(File backupDirectory)
                    throws IOException
Description copied from interface: DataManagementTool
Backup the database.

Specified by:
backupDatabase in interface DataManagementTool
Parameters:
backupDirectory - the directory to backup to
Throws:
IOException - if there is a problem writing to the backup file

eraseDatabase

public void eraseDatabase()
Description copied from interface: DataManagementTool
Smoke the database.

Specified by:
eraseDatabase in interface DataManagementTool

restoreDatabase

public void restoreDatabase(File backupDirectory,
                            boolean strict)
                     throws IOException
Description copied from interface: DataManagementTool
Restore the database.

Specified by:
restoreDatabase in interface DataManagementTool
Parameters:
backupDirectory - the directory where the backup to restore from resides
Throws:
IOException - if there is a problem reading the backup file


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