org.apache.maven.continuum.management
Class JdoDataManagementTool

java.lang.Object
  extended by org.apache.maven.continuum.management.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 $

Field Summary
protected static String BUILDS_XML
           
protected  org.codehaus.plexus.jdo.ConfigurableJdoFactory factory
           
 
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
 

Field Detail

BUILDS_XML

protected static final String BUILDS_XML
See Also:
Constant Field Values

factory

protected org.codehaus.plexus.jdo.ConfigurableJdoFactory factory
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.