Interface GenerationTarget
-
- All Known Implementing Classes:
GenerationTargetToDatabase
,GenerationTargetToScript
,GenerationTargetToStdout
,JournalingGenerationTarget
public interface GenerationTarget
Describes a schema generation target
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
accept(String command)
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 Detail
-
prepare
void prepare()
Prepare for accepting actions- Throws:
SchemaManagementException
- If there is a problem preparing the target.
-
beforeScript
default void beforeScript(ScriptSourceInput scriptSource)
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
void accept(String command)
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.
-
-