Package org.hibernate.tool.schema.spi
Interface GenerationTarget
- All Known Implementing Classes:
GenerationTargetToDatabase
,GenerationTargetToScript
,GenerationTargetToStdout
,JournalingGenerationTarget
public interface GenerationTarget
Describes a schema generation target
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Accept a commanddefault void
beforeScript
(ScriptSourceInput scriptSource) Called just before a script is executed using one or more calls toaccept(String)
.void
prepare()
Prepare for accepting actionsvoid
release()
Release this target, giving it a change to release its resources.
-
Method Details
-
prepare
void prepare()Prepare for accepting actions- Throws:
SchemaManagementException
- If there is a problem preparing the target.
-
beforeScript
Called just before a script is executed using one or more calls toaccept(String)
.May be used for logging in particular.
- Parameters:
scriptSource
- The source for the script that is about to be executed.
-
accept
Accept a command- Parameters:
command
- The command- Throws:
SchemaManagementException
- If there is a problem accepting the action.
-
release
void release()Release this target, giving it a change to release its resources.- Throws:
SchemaManagementException
- If there is a problem releasing the target.
-