org.hibernate.tool.schema.spi.SchemaDropper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-core Show documentation
Show all versions of hibernate-core Show documentation
JPMS Module-Info's for a few of the Jakarta Libraries just until they add them in themselves
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or .
*/
package org.hibernate.tool.schema.spi;
import org.hibernate.Incubating;
import org.hibernate.boot.Metadata;
/**
* Service delegate for handling schema dropping.
*
* @author Steve Ebersole
*/
@Incubating
public interface SchemaDropper {
/**
* Perform a schema drop from the indicated source(s) to the indicated target(s).
*
* @param metadata Represents the schema to be dropped.
* @param options Options for executing the drop
* @param sourceDescriptor description of the source(s) of drop commands
* @param targetDescriptor description of the target(s) for the drop commands
*/
void doDrop(Metadata metadata, ExecutionOptions options, SourceDescriptor sourceDescriptor, TargetDescriptor targetDescriptor);
/**
* Build a delayed Runnable for performing schema dropping. This implicitly
* targets the underlying data-store.
*
* @param metadata The metadata to drop
* @param options The drop options
* @param sourceDescriptor For access to the {@link SourceDescriptor#getScriptSourceInput()}
*
* @return The Runnable
*/
DelayedDropAction buildDelayedAction(Metadata metadata, ExecutionOptions options, SourceDescriptor sourceDescriptor);
}