Top Description Methods
org.hibernate.tool.schema.spi

public Interface ScriptSourceInput

Known Direct Implementers
org.hibernate.tool.schema.internal.exec.AbstractScriptSourceInput, org.hibernate.tool.schema.internal.exec.ScriptSourceInputAggregate, org.hibernate.tool.schema.internal.exec.ScriptSourceInputFromFile, org.hibernate.tool.schema.internal.exec.ScriptSourceInputFromReader, org.hibernate.tool.schema.internal.exec.ScriptSourceInputFromUrl, org.hibernate.tool.schema.internal.exec.ScriptSourceInputNonExistentImpl
Imports
java.util.List, org.hibernate.tool.hbm2ddl.ImportSqlCommandExtractor

Contract for hiding the differences between a passed Reader, File or URL in terms of how we read input scripts.
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public void
prepare()

Prepare source for use, and log that this script is about to be imported.

public List<String>

Returns:

The scripted commands
read
(ImportSqlCommandExtractor
The extractor for individual commands within the input.
commandExtractor
)

Read the abstracted script, using the given extractor to split up the input into individual commands.

public void
release()

Release this input.

Method Detail

prepareback to summary
public void prepare()

Prepare source for use, and log that this script is about to be imported.

readback to summary
public List<String> read(ImportSqlCommandExtractor commandExtractor)

Read the abstracted script, using the given extractor to split up the input into individual commands.

Parameters
commandExtractor:ImportSqlCommandExtractor

The extractor for individual commands within the input.

Returns:List<String>

The scripted commands

releaseback to summary
public void release()

Release this input.