Package migratedb.core.internal.command
Class DbClean
- java.lang.Object
-
- migratedb.core.internal.command.DbClean
-
public class DbClean extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected CallbackExecutorcallbackExecutorprotected Configurationconfigurationprotected Connection<?>connectionprotected Database<?>databaseprotected Schema<?,?>defaultSchemaprotected Schema<?,?>[]schemas
-
Constructor Summary
Constructors Constructor Description DbClean(Database<?> database, SchemaHistory schemaHistory, Schema<?,?> defaultSchema, Schema<?,?>[] schemas, CallbackExecutor callbackExecutor, Configuration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CleanResultclean()protected voidclean(Schema<?,?>[] schemas, CleanResult cleanResult, List<String> dropSchemas)protected voidclean(Schema<?,?> defaultSchema, Schema<?,?>[] schemas, CleanResult cleanResult)protected voidclean(CleanResult cleanResult)protected voiddoCleanSchema(Schema<?,?> schema)
-
-
-
Field Detail
-
defaultSchema
protected final Schema<?,?> defaultSchema
-
schemas
protected final Schema<?,?>[] schemas
-
connection
protected final Connection<?> connection
-
database
protected final Database<?> database
-
callbackExecutor
protected final CallbackExecutor callbackExecutor
-
configuration
protected final Configuration configuration
-
-
Constructor Detail
-
DbClean
public DbClean(Database<?> database, SchemaHistory schemaHistory, Schema<?,?> defaultSchema, Schema<?,?>[] schemas, CallbackExecutor callbackExecutor, Configuration configuration)
-
-
Method Detail
-
clean
public CleanResult clean() throws MigrateDbException
- Throws:
MigrateDbException
-
clean
protected void clean(CleanResult cleanResult)
-
clean
protected void clean(Schema<?,?> defaultSchema, Schema<?,?>[] schemas, CleanResult cleanResult)
-
clean
protected void clean(Schema<?,?>[] schemas, CleanResult cleanResult, List<String> dropSchemas)
-
doCleanSchema
protected void doCleanSchema(Schema<?,?> schema)
-
-