All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.tool.schema.spi.Exporter Maven / Gradle / Ivy

There is a newer version: 7.0.0.Alpha1
Show newest version
/*
 * 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); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy