com.googlecode.flyway.core.clean
Class DbCleaner

java.lang.Object
  extended by com.googlecode.flyway.core.clean.DbCleaner

public class DbCleaner
extends java.lang.Object

Main workflow for cleaning the database.


Constructor Summary
DbCleaner(org.springframework.transaction.support.TransactionTemplate transactionTemplate, org.springframework.jdbc.core.JdbcTemplate jdbcTemplate, DbSupport dbSupport, java.lang.String[] schemas)
          Creates a new database cleaner.
 
Method Summary
 void clean()
          Cleans the schemas of all objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DbCleaner

public DbCleaner(org.springframework.transaction.support.TransactionTemplate transactionTemplate,
                 org.springframework.jdbc.core.JdbcTemplate jdbcTemplate,
                 DbSupport dbSupport,
                 java.lang.String[] schemas)
Creates a new database cleaner.

Parameters:
transactionTemplate - The transaction template to use.
jdbcTemplate - JdbcTemplate with ddl manipulation access to the database.
dbSupport - Database-specific functionality.
schemas - The schemas to clean.
Method Detail

clean

public void clean()
           throws FlywayException
Cleans the schemas of all objects.

Throws:
FlywayException - when clean failed.


Copyright © 2011. All Rights Reserved.