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

public Class SingleLineSqlScriptExtractor

extends Object
implements SqlScriptCommandExtractor
Class Inheritance
All Implemented Interfaces
org.hibernate.tool.schema.spi.SqlScriptCommandExtractor, org.hibernate.service.Service, java.io.Serializable
Imports
java.io.BufferedReader, .IOException, .Reader, java.util.LinkedList, .List, org.hibernate.dialect.Dialect, org.hibernate.tool.schema.spi.SqlScriptCommandExtractor, .SqlScriptException

Class responsible for extracting SQL statements from import script. Treats each line as a complete SQL statement. Comment lines shall start with --, // or /* character sequence.
Authors
Lukasz Antoniak, Steve Ebersole

Field Summary

Modifier and TypeField and Description
public static final SqlScriptCommandExtractor
public static final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public List<String>
extractCommands(Reader reader, Dialect dialect)

Implements org.hibernate.tool.schema.spi.SqlScriptCommandExtractor.extractCommands.

Read the commands from the SQL script represented by the incoming reader, returning those commands as an array
private boolean
isComment(final String line)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
public static final SqlScriptCommandExtractor INSTANCE
SHORT_NAMEback to summary
public static final String SHORT_NAME

Constructor Detail

SingleLineSqlScriptExtractorback to summary
public SingleLineSqlScriptExtractor()

Method Detail

extractCommandsback to summary
public List<String> extractCommands(Reader reader, Dialect dialect)

Implements org.hibernate.tool.schema.spi.SqlScriptCommandExtractor.extractCommands.

Doc from org.hibernate.tool.schema.spi.SqlScriptCommandExtractor.extractCommands.

Read the commands from the SQL script represented by the incoming reader, returning those commands as an array

Annotations
@Override
isCommentback to summary
private boolean isComment(final String line)