Class AbstractScriptSourceInput
- java.lang.Object
-
- org.hibernate.tool.schema.internal.exec.AbstractScriptSourceInput
-
- All Implemented Interfaces:
ScriptSourceInput
- Direct Known Subclasses:
ScriptSourceInputFromFile
,ScriptSourceInputFromReader
,ScriptSourceInputFromUrl
,ScriptSourceInputNonExistentImpl
public abstract class AbstractScriptSourceInput extends Object implements ScriptSourceInput
Convenience base class for ScriptSourceInput implementations
-
-
Constructor Summary
Constructors Constructor Description AbstractScriptSourceInput()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description List<String>
extract(Function<Reader,List<String>> extractor)
Allows managed access to the input's Reader, returning a resultprotected abstract Reader
prepareReader()
protected abstract void
releaseReader(Reader reader)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.tool.schema.spi.ScriptSourceInput
containsScript, exists, getScriptDescription
-
-
-
-
Method Detail
-
prepareReader
protected abstract Reader prepareReader()
-
releaseReader
protected abstract void releaseReader(Reader reader)
-
extract
public List<String> extract(Function<Reader,List<String>> extractor)
Description copied from interface:ScriptSourceInput
Allows managed access to the input's Reader, returning a result- Specified by:
extract
in interfaceScriptSourceInput
-
-