Top Description Fields Constructors Methods
org.hibernate.tool.schema.internal

public Class SchemaTruncatorImpl

extends Object
implements SchemaTruncator
Class Inheritance
All Implemented Interfaces
org.hibernate.tool.schema.spi.SchemaTruncator
Imports
org.hibernate.boot.Metadata, org.hibernate.boot.model.relational.Database, .Exportable, .Namespace, .SqlStringGenerationContext, org.hibernate.boot.registry.classloading.spi.ClassLoaderService, org.hibernate.cfg.AvailableSettings, org.hibernate.dialect.Dialect, org.hibernate.engine.jdbc.internal.FormatStyle, .Formatter, org.hibernate.internal.util.collections.CollectionHelper, org.hibernate.internal.util.config.ConfigurationHelper, org.hibernate.mapping.ForeignKey, .Table, org.hibernate.service.ServiceRegistry, org.hibernate.tool.schema.internal.exec.GenerationTarget, .JdbcContext, .ScriptSourceInputFromUrl, .ScriptSourceInputNonExistentImpl, org.hibernate.tool.schema.spi.ContributableMatcher, .ExecutionOptions, .SchemaFilter, .SchemaManagementException, .SchemaTruncator, .ScriptSourceInput, .SqlScriptCommandExtractor, .TargetDescriptor, org.jboss.logging.Logger, java.net.URL, java.util.ArrayList, .List, .Set

Basic implementation of SchemaTruncator.
Author
Gavin King

Field Summary

Modifier and TypeField and Description
private static final Logger
private final HibernateSchemaManagementTool

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private void
applyImportSources(ExecutionOptions options, SqlScriptCommandExtractor commandExtractor, boolean format, Dialect dialect, GenerationTarget... targets)

private static void
checkExportIdentifier(Exportable exportable, Set<String> exportIdentifiers)

private void
disableConstraints(Namespace namespace, Metadata metadata, Formatter formatter, ExecutionOptions options, SqlStringGenerationContext context, ContributableMatcher contributableInclusionFilter, GenerationTarget... targets)

Deprecated as a consequence of Metadata being deprecated.
public void
doTruncate(Metadata
Represents the schema to be dropped.
metadata
,
ExecutionOptions
Options for executing the drop
options
,
ContributableMatcher
Filter for Contributable instances to use
contributableInclusionFilter
,
TargetDescriptor
description of the target(s) for the drop commands
targetDescriptor
)

Implements org.hibernate.tool.schema.spi.SchemaTruncator.doTruncate.

Deprecated as a consequence of Metadata being deprecated.
Perform a schema truncation from the indicated source(s) to the indicated target(s).
private void
doTruncate(Metadata metadata, ExecutionOptions options, ContributableMatcher contributableInclusionFilter, Dialect dialect, GenerationTarget... targets)

Deprecated as a consequence of Metadata being deprecated.
private void
enableConstraints(Namespace namespace, Metadata metadata, Formatter formatter, ExecutionOptions options, SqlStringGenerationContext context, ContributableMatcher contributableInclusionFilter, GenerationTarget... targets)

Deprecated as a consequence of Metadata being deprecated.
private ScriptSourceInput
interpretLegacyImportScriptSetting(String resourceName, ClassLoaderService classLoaderService, String charsetName)

private void
performTruncate(Metadata metadata, ExecutionOptions options, ContributableMatcher contributableInclusionFilter, Dialect dialect, GenerationTarget... targets)

Deprecated as a consequence of Metadata being deprecated.
private void
truncateFromMetadata(Metadata metadata, ExecutionOptions options, ContributableMatcher contributableInclusionFilter, Dialect dialect, Formatter formatter, GenerationTarget... targets)

Deprecated as a consequence of Metadata being deprecated.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

logback to summary
private static final Logger log
toolback to summary
private final HibernateSchemaManagementTool tool

Constructor Detail

SchemaTruncatorImplback to summary
public SchemaTruncatorImpl(HibernateSchemaManagementTool tool, SchemaFilter truncatorFilter)

Method Detail

applyImportSourcesback to summary
private void applyImportSources(ExecutionOptions options, SqlScriptCommandExtractor commandExtractor, boolean format, Dialect dialect, GenerationTarget... targets)
checkExportIdentifierback to summary
private static void checkExportIdentifier(Exportable exportable, Set<String> exportIdentifiers)
disableConstraintsback to summary
private void disableConstraints(Namespace namespace, Metadata metadata, Formatter formatter, ExecutionOptions options, SqlStringGenerationContext context, ContributableMatcher contributableInclusionFilter, GenerationTarget... targets)

Deprecated

as a consequence of Metadata being deprecated. See corresponding docs for further information.

doTruncateback to summary
public void doTruncate(Metadata metadata, ExecutionOptions options, ContributableMatcher contributableInclusionFilter, TargetDescriptor targetDescriptor)

Implements org.hibernate.tool.schema.spi.SchemaTruncator.doTruncate.

Doc from org.hibernate.tool.schema.spi.SchemaTruncator.doTruncate.

Deprecated

as a consequence of Metadata being deprecated. See corresponding docs for further information.

Perform a schema truncation from the indicated source(s) to the indicated target(s).

Parameters
metadata:Metadata

Represents the schema to be dropped.

options:ExecutionOptions

Options for executing the drop

contributableInclusionFilter:ContributableMatcher

Filter for Contributable instances to use

targetDescriptor:TargetDescriptor

description of the target(s) for the drop commands

Annotations
@Override
doTruncateback to summary
private void doTruncate(Metadata metadata, ExecutionOptions options, ContributableMatcher contributableInclusionFilter, Dialect dialect, GenerationTarget... targets)

Deprecated

as a consequence of Metadata being deprecated. See corresponding docs for further information.

enableConstraintsback to summary
private void enableConstraints(Namespace namespace, Metadata metadata, Formatter formatter, ExecutionOptions options, SqlStringGenerationContext context, ContributableMatcher contributableInclusionFilter, GenerationTarget... targets)

Deprecated

as a consequence of Metadata being deprecated. See corresponding docs for further information.

interpretLegacyImportScriptSettingback to summary
private ScriptSourceInput interpretLegacyImportScriptSetting(String resourceName, ClassLoaderService classLoaderService, String charsetName)
performTruncateback to summary
private void performTruncate(Metadata metadata, ExecutionOptions options, ContributableMatcher contributableInclusionFilter, Dialect dialect, GenerationTarget... targets)

Deprecated

as a consequence of Metadata being deprecated. See corresponding docs for further information.

truncateFromMetadataback to summary
private void truncateFromMetadata(Metadata metadata, ExecutionOptions options, ContributableMatcher contributableInclusionFilter, Dialect dialect, Formatter formatter, GenerationTarget... targets)

Deprecated

as a consequence of Metadata being deprecated. See corresponding docs for further information.