com.googlecode.flyway.core.dbsupport.oracle
Class OracleSqlScript

java.lang.Object
  extended by com.googlecode.flyway.core.migration.sql.SqlScript
      extended by com.googlecode.flyway.core.dbsupport.oracle.OracleSqlScript

public class OracleSqlScript
extends SqlScript

SqlScript supporting Oracle-specific PL/SQL constructs.


Constructor Summary
OracleSqlScript(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.
 
Methods inherited from class com.googlecode.flyway.core.migration.sql.SqlScript
execute, getChecksum, getSqlStatements, isDelimiterChangeExplicit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OracleSqlScript

public OracleSqlScript(java.lang.String sqlScriptSource,
                       PlaceholderReplacer placeholderReplacer)
Creates a new sql script from this source with these placeholders to replace.

Parameters:
sqlScriptSource - The sql script as a text block with all placeholders still present.
placeholderReplacer - The placeholder replacer to apply to sql migration scripts.
Throws:
java.lang.IllegalStateException - Thrown when the script could not be read from this resource.
Method Detail

checkForNewDelimiter

protected java.lang.String checkForNewDelimiter(java.lang.String line)
Description copied from class: SqlScript
Checks whether this line in the sql script indicates that the statement delimiter will be different from the default one. Useful for database-specific stored procedures and block constructs.

Overrides:
checkForNewDelimiter in class SqlScript
Parameters:
line - The line to analyse.
Returns:
The new delimiter to use or null if no change in delimiter is required.


Copyright © 2010. All Rights Reserved.