public abstract class SqlUtils extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
SqlUtils.LastScriptLineDecorator
Line decorator decorates last script lines with custom logic.
|
Modifier and Type | Field and Description |
---|---|
static String |
SQL_COMMENT
Constant representing SQL comment
|
static String |
STMT_ENDING
Default sql statement ending
|
Modifier and Type | Method and Description |
---|---|
static List<String> |
createStatementsFromFileResource(org.springframework.core.io.Resource sqlResource)
Reads SQL statements from external file resource.
|
static List<String> |
createStatementsFromFileResource(org.springframework.core.io.Resource sqlResource,
SqlUtils.LastScriptLineDecorator lineDecorator)
Reads SQL statements from external file resource.
|
static String |
getStatementEndingCharacter(SqlUtils.LastScriptLineDecorator lineDecorator)
Gets the SQL statement ending character sequence.
|
public static final String SQL_COMMENT
public static final String STMT_ENDING
public static List<String> createStatementsFromFileResource(org.springframework.core.io.Resource sqlResource)
sqlResource
- the sql file resource.public static List<String> createStatementsFromFileResource(org.springframework.core.io.Resource sqlResource, SqlUtils.LastScriptLineDecorator lineDecorator)
sqlResource
- the sql file resource.lineDecorator
- optional line decorator for last script lines.public static String getStatementEndingCharacter(SqlUtils.LastScriptLineDecorator lineDecorator)
lineDecorator
- Copyright © 2008–2017 ConSol Software GmbH. All rights reserved.