Package org.hibernate.tool.schema.spi
Interface ScriptSourceInput
-
public interface ScriptSourceInputContract for hiding the differences between a passed Reader, File or URL in terms of how we read input scripts.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidprepare()Prepare source for use, and log that this script is about to be imported.java.util.List<java.lang.String>read(ImportSqlCommandExtractor commandExtractor)Read the abstracted script, using the given extractor to split up the input into individual commands.voidrelease()Release this input.
-
-
-
Method Detail
-
prepare
void prepare()
Prepare source for use, and log that this script is about to be imported.
-
read
java.util.List<java.lang.String> read(ImportSqlCommandExtractor commandExtractor)
Read the abstracted script, using the given extractor to split up the input into individual commands.- Parameters:
commandExtractor- The extractor for individual commands within the input.- Returns:
- The scripted commands
-
release
void release()
Release this input.
-
-