Class SchemaDropperImpl
- java.lang.Object
-
- org.hibernate.tool.schema.internal.SchemaDropperImpl
-
- All Implemented Interfaces:
SchemaDropper
public class SchemaDropperImpl extends Object implements SchemaDropper
This is functionally nothing more than the creation script from the older SchemaExport class (plus some additional stuff in the script).
-
-
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 contributableInclusionFilter, 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 contributableInclusionFilter, Dialect dialect, SourceDescriptor sourceDescriptor, GenerationTarget... targets)
For use from testingvoid
doDrop(Metadata metadata, ExecutionOptions options, ContributableMatcher contributableInclusionFilter, SourceDescriptor sourceDescriptor, TargetDescriptor targetDescriptor)
Perform a schema drop from the indicated source(s) to the indicated target(s).List<String>
generateDropCommands(Metadata metadata, boolean manageNamespaces)
For testing...
-
-
-
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 contributableInclusionFilter, 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 dropcontributableInclusionFilter
- 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 contributableInclusionFilter, Dialect dialect, SourceDescriptor sourceDescriptor, GenerationTarget... targets)
For use from testing
-
generateDropCommands
public List<String> generateDropCommands(Metadata metadata, boolean manageNamespaces)
For testing...- Parameters:
metadata
- The metadata for which to generate the creation commands.- Returns:
- The generation commands
-
buildDelayedAction
public DelayedDropAction buildDelayedAction(Metadata metadata, ExecutionOptions options, ContributableMatcher contributableInclusionFilter, 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 optionscontributableInclusionFilter
- 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
-
-