net.java.ao.schema
Interface BackupRestore

All Known Implementing Classes:
BackupRestoreImpl

public interface BackupRestore

Allows backing up and restoring to a database "defined" by the given DatabaseProvider.

calling restore(backup(provider,configuration) provider) with the DefaultSchemaConfiguration should be idempotent.


Method Summary
 List<DDLAction> backup(DatabaseProvider provider, SchemaConfiguration configuration)
          Backs up the database into a list of DDLAction
 void restore(List<DDLAction> actions, DatabaseProvider provider)
          Restores a list of of DDLAction in the give database
 

Method Detail

backup

List<DDLAction> backup(DatabaseProvider provider,
                       SchemaConfiguration configuration)
Backs up the database into a list of DDLAction

Parameters:
provider - the database provider
configuration - the schema configuration
Returns:
a list of DDLAction representing the backed up database

restore

void restore(List<DDLAction> actions,
             DatabaseProvider provider)
Restores a list of of DDLAction in the give database

Parameters:
actions - the DDL actions to execute.
provider - the provider to the database to restore


Copyright © 2007-2010. All Rights Reserved.