Package org.hibernate.tool.hbm2ddl
Class MultipleLinesSqlCommandExtractor
- java.lang.Object
-
- org.hibernate.tool.hbm2ddl.MultipleLinesSqlCommandExtractor
-
- All Implemented Interfaces:
java.io.Serializable
,Service
,ImportSqlCommandExtractor
public class MultipleLinesSqlCommandExtractor extends java.lang.Object implements ImportSqlCommandExtractor
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
-
-
Constructor Summary
Constructors Constructor Description MultipleLinesSqlCommandExtractor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]
extractCommands(java.io.Reader reader)
-
-
-
Method Detail
-
extractCommands
public java.lang.String[] extractCommands(java.io.Reader reader)
- Specified by:
extractCommands
in interfaceImportSqlCommandExtractor
- Parameters:
reader
- Character stream reader of SQL script.- Returns:
- List of single SQL statements. Each command may or may not contain semicolon at the end.
-
-