|
||||||||||
| 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.mysql.MySQLSqlScript
public class MySQLSqlScript
SqlScript supporting MySQL-specific delimiter changes.
| Constructor Summary | |
|---|---|
MySQLSqlScript(java.lang.String sqlScriptSource,
PlaceholderReplacer placeholderReplacer)
Creates a new sql script from this source with these placeholders to replace. |
|
| Method Summary | |
|---|---|
protected java.lang.String |
checkForNewDelimiter(java.lang.String line)
Checks whether this line in the sql script indicates that the statement delimiter will be different from the default one. |
protected boolean |
isDelimiterChangeExplicit()
|
| Methods inherited from class com.googlecode.flyway.core.migration.sql.SqlScript |
|---|
execute, getChecksum, getSqlStatements |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MySQLSqlScript(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 java.lang.String checkForNewDelimiter(java.lang.String line)
SqlScript
checkForNewDelimiter in class SqlScriptline - The line to analyse.
null if no change in delimiter is required.protected boolean isDelimiterChangeExplicit()
isDelimiterChangeExplicit in class SqlScripttrue if this database uses an explicit delimiter change statement.
false if a delimiter change is implied by certain statements.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||