net.java.ao.schema
Class BackupRestoreImpl

java.lang.Object
  extended by net.java.ao.schema.BackupRestoreImpl
All Implemented Interfaces:
BackupRestore

public class BackupRestoreImpl
extends java.lang.Object
implements BackupRestore


Constructor Summary
BackupRestoreImpl()
           
 
Method Summary
 java.util.List<DDLAction> backup(DatabaseProvider provider, SchemaConfiguration schemaConfiguration)
          Backs up the database into a list of DDLAction
 void restore(java.util.List<DDLAction> actions, DatabaseProvider provider)
          Restores a list of of DDLAction in the give database
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BackupRestoreImpl

public BackupRestoreImpl()
Method Detail

backup

public java.util.List<DDLAction> backup(DatabaseProvider provider,
                                        SchemaConfiguration schemaConfiguration)
Description copied from interface: BackupRestore
Backs up the database into a list of DDLAction

Specified by:
backup in interface BackupRestore
Parameters:
provider - the database provider
schemaConfiguration - the schema configuration
Returns:
a list of DDLAction representing the backed up database

restore

public void restore(java.util.List<DDLAction> actions,
                    DatabaseProvider provider)
Description copied from interface: BackupRestore
Restores a list of of DDLAction in the give database

Specified by:
restore in interface BackupRestore
Parameters:
actions - the DDL actions to execute.
provider - the provider to the database to restore


Copyright © 2007-2010. All Rights Reserved.