Class AbstractScriptTargetOutput
- java.lang.Object
-
- org.hibernate.tool.schema.internal.exec.AbstractScriptTargetOutput
-
- All Implemented Interfaces:
ScriptTargetOutput
- Direct Known Subclasses:
ScriptTargetOutputToFile
,ScriptTargetOutputToStdout
,ScriptTargetOutputToUrl
,ScriptTargetOutputToWriter
public abstract class AbstractScriptTargetOutput extends Object implements ScriptTargetOutput
-
-
Constructor Summary
Constructors Constructor Description AbstractScriptTargetOutput()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
accept(String command)
Accept the given command and write it to the abstracted scriptvoid
prepare()
Prepare the script target to accept commandsvoid
release()
Release this outputprotected abstract Writer
writer()
-
-
-
Method Detail
-
writer
protected abstract Writer writer()
-
prepare
public void prepare()
Description copied from interface:ScriptTargetOutput
Prepare the script target to accept commands- Specified by:
prepare
in interfaceScriptTargetOutput
-
accept
public void accept(String command)
Description copied from interface:ScriptTargetOutput
Accept the given command and write it to the abstracted script- Specified by:
accept
in interfaceScriptTargetOutput
- Parameters:
command
- The command
-
release
public void release()
Description copied from interface:ScriptTargetOutput
Release this output- Specified by:
release
in interfaceScriptTargetOutput
-
-