Top Description Fields Constructors Methods
org.hibernate.tool.schema.internal.exec

public abstract Class AbstractScriptSourceInput

extends Object
implements ScriptSourceInput
Class Inheritance
All Implemented Interfaces
org.hibernate.tool.schema.spi.ScriptSourceInput
Known Direct Subclasses
org.hibernate.tool.schema.internal.exec.ScriptSourceInputFromFile, org.hibernate.tool.schema.internal.exec.ScriptSourceInputFromReader, org.hibernate.tool.schema.internal.exec.ScriptSourceInputFromUrl
Imports
java.io.Reader, java.util.Arrays, .Collections, .List, org.hibernate.internal.CoreLogging, .CoreMessageLogger, org.hibernate.tool.hbm2ddl.ImportSqlCommandExtractor, org.hibernate.tool.schema.internal.SchemaCreatorImpl, org.hibernate.tool.schema.spi.ScriptSourceInput

Convenience base class for ScriptSourceInput implementations
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private static final CoreMessageLogger

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected abstract String
public void
prepare()

Implements org.hibernate.tool.schema.spi.ScriptSourceInput.prepare.

Prepare source for use, and log that this script is about to be imported.
public List<String>
read(ImportSqlCommandExtractor
The extractor for individual commands within the input.
commandExtractor
)

Implements org.hibernate.tool.schema.spi.ScriptSourceInput.read.

Read the abstracted script, using the given extractor to split up the input into individual commands.
protected abstract Reader
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

logback to summary
private static final CoreMessageLogger log

Constructor Detail

AbstractScriptSourceInputback to summary
public AbstractScriptSourceInput()

Method Detail

getScriptDescriptionback to summary
protected abstract String getScriptDescription()
prepareback to summary
public void prepare()

Implements org.hibernate.tool.schema.spi.ScriptSourceInput.prepare.

Doc from org.hibernate.tool.schema.spi.ScriptSourceInput.prepare.

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

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

Implements org.hibernate.tool.schema.spi.ScriptSourceInput.read.

Doc from org.hibernate.tool.schema.spi.ScriptSourceInput.read.

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

Annotations
@Override
readerback to summary
protected abstract Reader reader()
releaseback to summary
public void release()

Implements org.hibernate.tool.schema.spi.ScriptSourceInput.release.

Doc from org.hibernate.tool.schema.spi.ScriptSourceInput.release.

Release this input.

Annotations
@Override