Interface GenerationTarget

All Known Implementing Classes:
GenerationTargetToDatabase, GenerationTargetToScript, GenerationTargetToStdout, JournalingGenerationTarget

public interface GenerationTarget
Describes a schema generation target
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(String command)
    Accept a command
    default void
    Called just before a script is executed using one or more calls to accept(String).
    void
    Prepare for accepting actions
    void
    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

      default void beforeScript(ScriptSourceInput scriptSource)
      Called just before a script is executed using one or more calls to accept(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.