Class DemoSqlServerSingleLineSqlCommandExtractor

java.lang.Object
org.hibernate.tool.hbm2ddl.SingleLineSqlCommandExtractor
org.broadleafcommerce.common.util.sql.importsql.DemoSqlServerSingleLineSqlCommandExtractor
All Implemented Interfaces:
Serializable, org.hibernate.service.Service, org.hibernate.tool.hbm2ddl.ImportSqlCommandExtractor

public class DemoSqlServerSingleLineSqlCommandExtractor extends org.hibernate.tool.hbm2ddl.SingleLineSqlCommandExtractor
This is a utility class that is only meant to be used for testing the BLC demo on SQL Server. In our current import sql files, there are a number of value declarations that are incompatible with Sql Server. This custom extractor takes care of transforming those values into something SQL Server understands.
Author:
Jeff Fischer
See Also:
  • Field Details

  • Constructor Details

    • DemoSqlServerSingleLineSqlCommandExtractor

      public DemoSqlServerSingleLineSqlCommandExtractor()
  • Method Details

    • extractCommands

      public String[] extractCommands(Reader reader)
      Specified by:
      extractCommands in interface org.hibernate.tool.hbm2ddl.ImportSqlCommandExtractor
      Overrides:
      extractCommands in class org.hibernate.tool.hbm2ddl.SingleLineSqlCommandExtractor
    • handleReplacements

      protected void handleReplacements(String[] statements)
    • replaceBoolean

      protected String replaceBoolean(String statement)