public class SchemaDropperImpl extends Object implements SchemaDropper
Constructor and Description |
---|
SchemaDropperImpl(HibernateSchemaManagementTool tool) |
SchemaDropperImpl(HibernateSchemaManagementTool tool,
SchemaFilter schemaFilter) |
SchemaDropperImpl(ServiceRegistry serviceRegistry) |
SchemaDropperImpl(ServiceRegistry serviceRegistry,
SchemaFilter schemaFilter) |
Modifier and Type | Method and Description |
---|---|
DelayedDropAction |
buildDelayedAction(Metadata metadata,
ExecutionOptions options,
SourceDescriptor sourceDescriptor)
Build a delayed Runnable for performing schema dropping.
|
void |
doDrop(Metadata metadata,
boolean manageNamespaces,
GenerationTarget... targets)
For tests
|
void |
doDrop(Metadata metadata,
ExecutionOptions options,
Dialect dialect,
SourceDescriptor sourceDescriptor,
GenerationTarget... targets) |
void |
doDrop(Metadata metadata,
ExecutionOptions options,
SourceDescriptor sourceDescriptor,
TargetDescriptor targetDescriptor)
Perform a schema drop from the indicated source(s) to the indicated target(s).
|
void |
doDrop(Metadata metadata,
ServiceRegistry serviceRegistry,
Map settings,
boolean manageNamespaces,
GenerationTarget... targets)
For tests
|
List<String> |
generateDropCommands(Metadata metadata,
boolean manageNamespaces)
For testing...
|
public SchemaDropperImpl(HibernateSchemaManagementTool tool)
public SchemaDropperImpl(HibernateSchemaManagementTool tool, SchemaFilter schemaFilter)
public SchemaDropperImpl(ServiceRegistry serviceRegistry)
public SchemaDropperImpl(ServiceRegistry serviceRegistry, SchemaFilter schemaFilter)
public void doDrop(Metadata metadata, ExecutionOptions options, SourceDescriptor sourceDescriptor, TargetDescriptor targetDescriptor)
SchemaDropper
doDrop
in interface SchemaDropper
metadata
- Represents the schema to be dropped.options
- Options for executing the dropsourceDescriptor
- description of the source(s) of drop commandstargetDescriptor
- description of the target(s) for the drop commandspublic void doDrop(Metadata metadata, ExecutionOptions options, Dialect dialect, SourceDescriptor sourceDescriptor, GenerationTarget... targets)
public List<String> generateDropCommands(Metadata metadata, boolean manageNamespaces)
metadata
- The metadata for which to generate the creation commands.public DelayedDropAction buildDelayedAction(Metadata metadata, ExecutionOptions options, SourceDescriptor sourceDescriptor)
SchemaDropper
buildDelayedAction
in interface SchemaDropper
metadata
- The metadata to dropoptions
- The drop optionssourceDescriptor
- For access to the SourceDescriptor.getScriptSourceInput()
public void doDrop(Metadata metadata, boolean manageNamespaces, GenerationTarget... targets)
public void doDrop(Metadata metadata, ServiceRegistry serviceRegistry, Map settings, boolean manageNamespaces, GenerationTarget... targets)
Copyright © 2017 JBoss by Red Hat. All rights reserved.