|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.flyway.core.migration.sql.SqlScript
com.googlecode.flyway.core.dbsupport.db2.DB2SqlScript
public class DB2SqlScript
SqlScript supporting DB2-specific delimiter changes.
TODO Support for Procedures.
| Field Summary |
|---|
| Fields inherited from class com.googlecode.flyway.core.migration.sql.SqlScript |
|---|
DEFAULT_STATEMENT_DELIMITER |
| Constructor Summary | |
|---|---|
DB2SqlScript(java.lang.String sqlScriptSource,
PlaceholderReplacer placeholderReplacer)
Creates a new sql script from this source with these placeholders to replace. |
|
| Method Summary | |
|---|---|
protected boolean |
endsWithOpenMultilineStringLiteral(java.lang.String statement)
Checks whether the statement we have assembled so far ends with an open multi-line string literal (which will be continued on the next line). |
| Methods inherited from class com.googlecode.flyway.core.migration.sql.SqlScript |
|---|
changeDelimiterIfNecessary, execute, getSqlStatements, isCommentDirective, isDelimiterChangeExplicit |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DB2SqlScript(java.lang.String sqlScriptSource,
PlaceholderReplacer placeholderReplacer)
sqlScriptSource - The sql script as a text block with all placeholders still present.placeholderReplacer - The placeholder replacer to apply to sql migration scripts.
java.lang.IllegalStateException - Thrown when the script could not be read from this resource.| Method Detail |
|---|
protected boolean endsWithOpenMultilineStringLiteral(java.lang.String statement)
SqlScript
endsWithOpenMultilineStringLiteral in class SqlScriptstatement - The current statement, assembled from the lines we have parsed so far. May not yet be complete.
true if the statement is unfinished and the end is currently in the middle of a multi-line string
literal. false if not.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||