Class MultiLineSqlScriptExtractor
- java.lang.Object
-
- org.hibernate.tool.schema.internal.script.MultiLineSqlScriptExtractor
-
- All Implemented Interfaces:
Serializable
,Service
,SqlScriptCommandExtractor
public class MultiLineSqlScriptExtractor extends Object implements SqlScriptCommandExtractor
Class responsible for extracting SQL statements from import script. Supports instructions/comments and quoted strings spread over multiple lines. Each statement must end with semicolon.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MultiLineSqlScriptExtractor.VerboseListener
-
Field Summary
Fields Modifier and Type Field Description static MultiLineSqlScriptExtractor
INSTANCE
static String
SHORT_NAME
-
Constructor Summary
Constructors Constructor Description MultiLineSqlScriptExtractor()
-
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 MultiLineSqlScriptExtractor 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
-
-