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 voidaccept(String command)Accept the given command and write it to the abstracted scriptvoidprepare()Prepare the script target to accept commandsvoidrelease()Release this outputprotected abstract Writerwriter()
-
-
-
Method Detail
-
writer
protected abstract Writer writer()
-
prepare
public void prepare()
Description copied from interface:ScriptTargetOutputPrepare the script target to accept commands- Specified by:
preparein interfaceScriptTargetOutput
-
accept
public void accept(String command)
Description copied from interface:ScriptTargetOutputAccept the given command and write it to the abstracted script- Specified by:
acceptin interfaceScriptTargetOutput- Parameters:
command- The command
-
release
public void release()
Description copied from interface:ScriptTargetOutputRelease this output- Specified by:
releasein interfaceScriptTargetOutput
-
-