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

public Class ScriptSourceInputFromUrl

extends AbstractScriptSourceInput
implements ScriptSourceInput
Class Inheritance
All Implemented Interfaces
org.hibernate.tool.schema.spi.ScriptSourceInput
Imports
java.io.IOException, .InputStreamReader, .Reader, java.net.URL, org.hibernate.tool.schema.spi.SchemaManagementException, .ScriptSourceInput, org.jboss.logging.Logger

ScriptSourceInput implementation for URL references. A reader is opened here and then explicitly closed on release.
Authors
Christian Beikov, Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final String
private static final Logger
private Reader
private final URL

Constructor Summary

AccessConstructor and Description
public
ScriptSourceInputFromUrl(URL
The url to read from
url
,
String
The charset name
charsetName
)

Constructs a ScriptSourceInputFromUrl instance

Method Summary

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

Overrides org.hibernate.tool.schema.internal.exec.AbstractScriptSourceInput.prepare.

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

Prepare source for use, and log that this script is about to be imported.
protected Reader
public void
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from org.hibernate.tool.schema.internal.exec.AbstractScriptSourceInput:
read

Field Detail

charsetNameback to summary
private final String charsetName
logback to summary
private static final Logger log

Hides org.hibernate.tool.schema.internal.exec.AbstractScriptSourceInput.log.

readerback to summary
private Reader reader
urlback to summary
private final URL url

Constructor Detail

ScriptSourceInputFromUrlback to summary
public ScriptSourceInputFromUrl(URL url, String charsetName)

Constructs a ScriptSourceInputFromUrl instance

Parameters
url:URL

The url to read from

charsetName:String

The charset name

Method Detail

getScriptDescriptionback to summary
protected String getScriptDescription()

Implements abstract org.hibernate.tool.schema.internal.exec.AbstractScriptSourceInput.getScriptDescription.

Annotations
@Override
prepareback to summary
public void prepare()

Overrides org.hibernate.tool.schema.internal.exec.AbstractScriptSourceInput.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
readerback to summary
protected Reader reader()

Implements abstract org.hibernate.tool.schema.internal.exec.AbstractScriptSourceInput.reader.

Annotations
@Override
releaseback to summary
public void release()

Overrides org.hibernate.tool.schema.internal.exec.AbstractScriptSourceInput.release.

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

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

Release this input.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override