org.hibernate.tool.schema.spi.ScriptTargetOutput 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
Hibernate's core ORM functionality
/*
* 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;
/**
* Contract for hiding the differences between a passed Writer, File or URL in
* terms of how we write output scripts.
*
* @author Steve Ebersole
*/
public interface ScriptTargetOutput {
/**
* Prepare the script target to {@link #accept(String) accept} commands
*/
void prepare();
/**
* Accept the given command and write it to the abstracted script
*
* @param command The command
*/
void accept(String command);
/**
* Release this output
*/
void release();
}