Class DemoSqlServerSingleLineSqlCommandExtractor
java.lang.Object
org.hibernate.tool.schema.internal.script.SingleLineSqlScriptExtractor
org.broadleafcommerce.common.util.sql.importsql.DemoSqlServerSingleLineSqlCommandExtractor
- All Implemented Interfaces:
Serializable,org.hibernate.service.Service,org.hibernate.tool.schema.spi.SqlScriptCommandExtractor
public class DemoSqlServerSingleLineSqlCommandExtractor
extends org.hibernate.tool.schema.internal.script.SingleLineSqlScriptExtractor
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 Summary
FieldsModifier and TypeFieldDescriptionprotected booleanstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.hibernate.tool.schema.internal.script.SingleLineSqlScriptExtractor
INSTANCE, SHORT_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionextractCommands(Reader reader, org.hibernate.dialect.Dialect dialect) handleReplacements(List<String> statements) protected StringreplaceBoolean(String statement)
-
Field Details
-
DOUBLEBACKSLASHMATCH
- See Also:
-
TRUE
- See Also:
-
FALSE
- See Also:
-
CURRENT_TIMESTAMP
- See Also:
-
alreadyRun
protected boolean alreadyRun
-
-
Constructor Details
-
DemoSqlServerSingleLineSqlCommandExtractor
public DemoSqlServerSingleLineSqlCommandExtractor()
-
-
Method Details
-
extractCommands
- Specified by:
extractCommandsin interfaceorg.hibernate.tool.schema.spi.SqlScriptCommandExtractor- Overrides:
extractCommandsin classorg.hibernate.tool.schema.internal.script.SingleLineSqlScriptExtractor
-
handleReplacements
-
replaceBoolean
-