Class SchemaDropperImpl
- java.lang.Object
-
- org.hibernate.tool.schema.internal.SchemaDropperImpl
-
- All Implemented Interfaces:
SchemaDropper
public class SchemaDropperImpl extends Object implements SchemaDropper
Basic implementation ofSchemaDropper
.
-
-
Constructor Summary
Constructors Constructor Description SchemaDropperImpl(ServiceRegistry serviceRegistry)
SchemaDropperImpl(ServiceRegistry serviceRegistry, SchemaFilter schemaFilter)
SchemaDropperImpl(HibernateSchemaManagementTool tool)
SchemaDropperImpl(HibernateSchemaManagementTool tool, SchemaFilter schemaFilter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DelayedDropAction
buildDelayedAction(Metadata metadata, ExecutionOptions options, ContributableMatcher inclusionFilter, SourceDescriptor sourceDescriptor)
Build a delayed Runnable for performing schema dropping.void
doDrop(Metadata metadata, boolean manageNamespaces, GenerationTarget... targets)
For testsvoid
doDrop(Metadata metadata, ServiceRegistry serviceRegistry, Map<String,Object> settings, boolean manageNamespaces, GenerationTarget... targets)
For testsvoid
doDrop(Metadata metadata, ExecutionOptions options, Dialect dialect, SourceDescriptor sourceDescriptor, GenerationTarget... targets)
For use from testingvoid
doDrop(Metadata metadata, ExecutionOptions options, ContributableMatcher inclusionFilter, Dialect dialect, SourceDescriptor sourceDescriptor, GenerationTarget... targets)
For use from testingvoid
doDrop(Metadata metadata, ExecutionOptions options, ContributableMatcher inclusionFilter, SourceDescriptor sourceDescriptor, TargetDescriptor targetDescriptor)
Perform a schema drop from the indicated source(s) to the indicated target(s).
-
-
-
Constructor Detail
-
SchemaDropperImpl
public SchemaDropperImpl(HibernateSchemaManagementTool tool)
-
SchemaDropperImpl
public SchemaDropperImpl(HibernateSchemaManagementTool tool, SchemaFilter schemaFilter)
-
SchemaDropperImpl
public SchemaDropperImpl(ServiceRegistry serviceRegistry)
-
SchemaDropperImpl
public SchemaDropperImpl(ServiceRegistry serviceRegistry, SchemaFilter schemaFilter)
-
-
Method Detail
-
doDrop
public void doDrop(Metadata metadata, ExecutionOptions options, ContributableMatcher inclusionFilter, SourceDescriptor sourceDescriptor, TargetDescriptor targetDescriptor)
Description copied from interface:SchemaDropper
Perform a schema drop from the indicated source(s) to the indicated target(s).- Specified by:
doDrop
in interfaceSchemaDropper
- Parameters:
metadata
- Represents the schema to be dropped.options
- Options for executing the dropinclusionFilter
- Filter for Contributable instances to usesourceDescriptor
- description of the source(s) of drop commandstargetDescriptor
- description of the target(s) for the drop commands
-
doDrop
public void doDrop(Metadata metadata, ExecutionOptions options, Dialect dialect, SourceDescriptor sourceDescriptor, GenerationTarget... targets)
For use from testing
-
doDrop
public void doDrop(Metadata metadata, ExecutionOptions options, ContributableMatcher inclusionFilter, Dialect dialect, SourceDescriptor sourceDescriptor, GenerationTarget... targets)
For use from testing
-
buildDelayedAction
public DelayedDropAction buildDelayedAction(Metadata metadata, ExecutionOptions options, ContributableMatcher inclusionFilter, SourceDescriptor sourceDescriptor)
Description copied from interface:SchemaDropper
Build a delayed Runnable for performing schema dropping. This implicitly targets the underlying data-store.- Specified by:
buildDelayedAction
in interfaceSchemaDropper
- Parameters:
metadata
- The metadata to dropoptions
- The drop optionsinclusionFilter
- Filter for Contributable instances to usesourceDescriptor
- For access to theSourceDescriptor.getScriptSourceInput()
- Returns:
- The Runnable
-
doDrop
public void doDrop(Metadata metadata, boolean manageNamespaces, GenerationTarget... targets)
For tests
-
doDrop
public void doDrop(Metadata metadata, ServiceRegistry serviceRegistry, Map<String,Object> settings, boolean manageNamespaces, GenerationTarget... targets)
For tests
-
-