Class SingleLineSqlScriptExtractor
- java.lang.Object
-
- org.hibernate.tool.schema.internal.script.SingleLineSqlScriptExtractor
-
- All Implemented Interfaces:
Serializable
,Service
,SqlScriptCommandExtractor
public class SingleLineSqlScriptExtractor extends Object implements SqlScriptCommandExtractor
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.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static SqlScriptCommandExtractor
INSTANCE
static String
SHORT_NAME
-
Constructor Summary
Constructors Constructor Description SingleLineSqlScriptExtractor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
extractCommands(Reader reader, Dialect dialect)
Read the commands from the SQL script represented by the incoming reader, returning those commands as an array
-
-
-
Field Detail
-
SHORT_NAME
public static final String SHORT_NAME
- See Also:
- Constant Field Values
-
INSTANCE
public static final SqlScriptCommandExtractor INSTANCE
-
-
Method Detail
-
extractCommands
public List<String> extractCommands(Reader reader, Dialect dialect)
Description copied from interface:SqlScriptCommandExtractor
Read the commands from the SQL script represented by the incoming reader, returning those commands as an array- Specified by:
extractCommands
in interfaceSqlScriptCommandExtractor
-
-