Class ScriptSourceInputNonExistentImpl
- java.lang.Object
-
- org.hibernate.tool.schema.internal.exec.AbstractScriptSourceInput
-
- org.hibernate.tool.schema.internal.exec.ScriptSourceInputNonExistentImpl
-
- All Implemented Interfaces:
ScriptSourceInput
public class ScriptSourceInputNonExistentImpl extends AbstractScriptSourceInput
Used in cases where a specified source cannot be found
-
-
Field Summary
Fields Modifier and Type Field Description static ScriptSourceInputNonExistentImplINSTANCESingleton access
-
Constructor Summary
Constructors Constructor Description ScriptSourceInputNonExistentImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsScript(URL url)booleanexists()List<String>extract(Function<Reader,List<String>> extractor)Allows managed access to the input's Reader, returning a resultStringgetScriptDescription()protected ReaderprepareReader()protected voidreleaseReader(Reader reader)
-
-
-
Field Detail
-
INSTANCE
public static final ScriptSourceInputNonExistentImpl INSTANCE
Singleton access
-
-
Method Detail
-
getScriptDescription
public String getScriptDescription()
-
prepareReader
protected Reader prepareReader()
- Specified by:
prepareReaderin classAbstractScriptSourceInput
-
releaseReader
protected void releaseReader(Reader reader)
- Specified by:
releaseReaderin classAbstractScriptSourceInput
-
containsScript
public boolean containsScript(URL url)
-
extract
public List<String> extract(Function<Reader,List<String>> extractor)
Description copied from interface:ScriptSourceInputAllows managed access to the input's Reader, returning a result- Specified by:
extractin interfaceScriptSourceInput- Overrides:
extractin classAbstractScriptSourceInput
-
exists
public boolean exists()
-
-