com.google.code.flyway.core
Class SqlStatement

java.lang.Object
  extended by com.google.code.flyway.core.SqlStatement

public class SqlStatement
extends java.lang.Object

A sql statement from a script that can be executed at once against a database.


Constructor Summary
SqlStatement(int lineNumber, java.lang.String sql)
          Creates a new sql statement.
 
Method Summary
 int getLineNumber()
           
 java.lang.String getSql()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SqlStatement

public SqlStatement(int lineNumber,
                    java.lang.String sql)
Creates a new sql statement.

Parameters:
lineNumber - The original line number where the statement was located in the script it came from.
sql - The sql to send to the database.
Method Detail

getLineNumber

public int getLineNumber()
Returns:
The original line number where the statement was located in the script it came from.

getSql

public java.lang.String getSql()
Returns:
The sql to send to the database.


Copyright © 2010. All Rights Reserved.