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

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

There is a newer version: 6.5.0.CR2
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;

/**
 * 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();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy