Top Description Methods
org.hibernate.tool.schema.spi

public Interface SchemaDropper

Known Direct Implementers
org.hibernate.tool.schema.internal.SchemaDropperImpl
Annotations
@Incubating
Imports
org.hibernate.Incubating, org.hibernate.boot.Metadata

Service delegate for handling schema dropping.
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public DelayedDropAction

Returns:

The Runnable
buildDelayedAction
(Metadata
The metadata to drop
metadata
,
ExecutionOptions
The drop options
options
,
SourceDescriptor sourceDescriptor)

Build a delayed Runnable for performing schema dropping.

public void
doDrop(Metadata
Represents the schema to be dropped.
metadata
,
ExecutionOptions
Options for executing the drop
options
,
SourceDescriptor
description of the source(s) of drop commands
sourceDescriptor
,
TargetDescriptor
description of the target(s) for the drop commands
targetDescriptor
)

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

Method Detail

buildDelayedActionback to summary
public DelayedDropAction buildDelayedAction(Metadata metadata, ExecutionOptions options, SourceDescriptor sourceDescriptor)

Build a delayed Runnable for performing schema dropping. This implicitly targets the underlying data-store.

Parameters
metadata:Metadata

The metadata to drop

options:ExecutionOptions

The drop options

sourceDescriptor:SourceDescriptor

For access to the SourceDescriptor#getScriptSourceInput()

Returns:DelayedDropAction

The Runnable

doDropback to summary
public void doDrop(Metadata metadata, ExecutionOptions options, SourceDescriptor sourceDescriptor, TargetDescriptor targetDescriptor)

Perform a schema drop 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

sourceDescriptor:SourceDescriptor

description of the source(s) of drop commands

targetDescriptor:TargetDescriptor

description of the target(s) for the drop commands