Java 类org.hibernate.tool.hbm2ddl.ImportSqlCommandExtractor 实例源码

项目:esup-dematec    文件:CustomImportSqlCommandExtractor.java   
@Override
public String[] extractCommands(Reader reader) {
    ImportSqlCommandExtractor sqlCommandExtractor = singleLinesSqlCommandExtractor;
    if(fileNum == 0) {
        sqlCommandExtractor =  multipleLinesSqlCommandExtractor;
    } 
    fileNum++;
    return sqlCommandExtractor.extractCommands(reader);
}