org.hibernate.tool.schema.spi.Exporter 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.boot.Metadata;
import org.hibernate.boot.model.relational.Exportable;
/**
* Defines a contract for exporting of database objects (tables, sequences, etc) for use in SQL {@code CREATE} and
* {@code DROP} scripts.
*
* This is an ORM-centric contract
*
* @author Steve Ebersole
*/
public interface Exporter {
String[] NO_COMMANDS = new String[0];
/**
* Get the commands needed for creation.
*
* @return The commands needed for creation scripting.
*/
String[] getSqlCreateStrings(T exportable, Metadata metadata);
/**
* Get the commands needed for dropping.
*
* @return The commands needed for drop scripting.
*/
String[] getSqlDropStrings(T exportable, Metadata metadata);
}