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

org.hibernate.tool.schema.internal.exec.GenerationTarget 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.internal.exec;

import org.hibernate.tool.schema.spi.SchemaManagementException;

/**
 * Describes a schema generation target
 *
 * @author Steve Ebersole
 */
public interface GenerationTarget {
	/**
	 * Prepare for accepting actions
	 *
	 * @throws SchemaManagementException If there is a problem preparing the target.
	 */
	void prepare();

	/**
	 * Accept a command
	 *
	 * @param command The command
	 *
	 * @throws SchemaManagementException If there is a problem accepting the action.
	 */
	void accept(String command);

	/**
	 * Release this target, giving it a change to release its resources.
	 *
	 * @throws SchemaManagementException If there is a problem releasing the target.
	 */
	void release();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy