Class SchemaTruncatorImpl
java.lang.Object
org.hibernate.tool.schema.internal.SchemaTruncatorImpl
- All Implemented Interfaces:
SchemaTruncator
Basic implementation of
SchemaTruncator
.-
Constructor Summary
ConstructorsConstructorDescriptionSchemaTruncatorImpl
(HibernateSchemaManagementTool tool, SchemaFilter truncatorFilter) -
Method Summary
Modifier and TypeMethodDescriptionvoid
doTruncate
(Metadata metadata, boolean manageNamespaces, GenerationTarget... targets) Intended for use from testsvoid
doTruncate
(Metadata metadata, ServiceRegistry serviceRegistry, Map<String, Object> settings, boolean manageNamespaces, GenerationTarget... targets) Intended for use from testsvoid
doTruncate
(Metadata metadata, ExecutionOptions options, ContributableMatcher contributableInclusionFilter, Dialect dialect, GenerationTarget... targets) void
doTruncate
(Metadata metadata, ExecutionOptions options, ContributableMatcher contributableInclusionFilter, TargetDescriptor targetDescriptor) Perform a schema truncation from the indicated source(s) to the indicated target(s).
-
Constructor Details
-
SchemaTruncatorImpl
-
-
Method Details
-
doTruncate
public void doTruncate(Metadata metadata, ExecutionOptions options, ContributableMatcher contributableInclusionFilter, TargetDescriptor targetDescriptor) Description copied from interface:SchemaTruncator
Perform a schema truncation from the indicated source(s) to the indicated target(s).- Specified by:
doTruncate
in interfaceSchemaTruncator
- Parameters:
metadata
- Represents the schema to be dropped.options
- Options for executing the dropcontributableInclusionFilter
- Filter for Contributable instances to usetargetDescriptor
- description of the target(s) for the drop commands
-
doTruncate
@Internal public void doTruncate(Metadata metadata, ExecutionOptions options, ContributableMatcher contributableInclusionFilter, Dialect dialect, GenerationTarget... targets) -
doTruncate
@Internal public void doTruncate(Metadata metadata, boolean manageNamespaces, GenerationTarget... targets) Intended for use from tests -
doTruncate
@Internal public void doTruncate(Metadata metadata, ServiceRegistry serviceRegistry, Map<String, Object> settings, boolean manageNamespaces, GenerationTarget... targets) Intended for use from tests
-