Package org.hibernate.tool.hbm2ddl
Class SingleLineSqlCommandExtractor
- java.lang.Object
-
- org.hibernate.tool.hbm2ddl.SingleLineSqlCommandExtractor
-
- All Implemented Interfaces:
Serializable
,Service
,ImportSqlCommandExtractor
public class SingleLineSqlCommandExtractor extends Object implements ImportSqlCommandExtractor
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
-
-
Constructor Summary
Constructors Constructor Description SingleLineSqlCommandExtractor()
-
-
-
Method Detail
-
extractCommands
public String[] extractCommands(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.
-
-