The Spring Framework

org.springframework.jdbc.core.namedparam
Class ParsedSql

java.lang.Object
  extended by org.springframework.jdbc.core.namedparam.ParsedSql

 class ParsedSql
extends Object

Holds information for parsed SQL statements.

Since:
2.0
Author:
Thomas Risberg

Constructor Summary
ParsedSql()
          Creates a new instance of the ParsedSql class.
ParsedSql(String sql)
          Creates a new instance of the ParsedSql class.
 
Method Summary
 int getNamedParameterCount()
          Get the count of named parameters in the SQL statement.
 String getNewSql()
          Get the new (parsed) SQL.
 String[] getParameterNames()
          Get all of the parameters (bind variables) in the parsed SQL statement.
 String getSql()
          Get the SQL statement that is being (or is to be) parsed.
 int getTotalParameterCount()
          Get the total count of all of the parameters in the SQL statement.
 int getUnnamedParameterCount()
          Gets the count of all of the unnamed parameters in the SQL statement.
 void setNamedParameterCount(int namedParameterCount)
          Set the count of named parameters in the SQL statement.
 void setNewSql(String newSql)
          Set the new (parsed) SQL.
 void setParameterNames(String[] parameterNames)
          Set the parameters (bind variables) in the parsed SQL statement.
 void setSql(String sql)
          Set the SQL statement that is being (or is to be) parsed.
 void setTotalParameterCount(int totalParameterCount)
          Set the total count of all of the parameters in the SQL statement.
 void setUnnamedParameterCount(int unnamedParameterCount)
          Set the count of all of the unnamed parameters in the SQL statement.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParsedSql

public ParsedSql()
Creates a new instance of the ParsedSql class.


ParsedSql

public ParsedSql(String sql)
Creates a new instance of the ParsedSql class.

Parameters:
sql - the SQL statement that is being (or is to be) parsed
Method Detail

setSql

public void setSql(String sql)
Set the SQL statement that is being (or is to be) parsed.


getSql

public String getSql()
Get the SQL statement that is being (or is to be) parsed.


setNewSql

public void setNewSql(String newSql)
Set the new (parsed) SQL.


getNewSql

public String getNewSql()
Get the new (parsed) SQL.


setParameterNames

public void setParameterNames(String[] parameterNames)
Set the parameters (bind variables) in the parsed SQL statement. Repeated occurences of the same parameter name are included here.


getParameterNames

public String[] getParameterNames()
Get all of the parameters (bind variables) in the parsed SQL statement. Repeated occurences of the same parameter name are included here.


setNamedParameterCount

public void setNamedParameterCount(int namedParameterCount)
Set the count of named parameters in the SQL statement. Each parameter name counts once; repeated occurences do not count here.


getNamedParameterCount

public int getNamedParameterCount()
Get the count of named parameters in the SQL statement. Each parameter name counts once; repeated occurences do not count here.


setUnnamedParameterCount

public void setUnnamedParameterCount(int unnamedParameterCount)
Set the count of all of the unnamed parameters in the SQL statement.


getUnnamedParameterCount

public int getUnnamedParameterCount()
Gets the count of all of the unnamed parameters in the SQL statement.


setTotalParameterCount

public void setTotalParameterCount(int totalParameterCount)
Set the total count of all of the parameters in the SQL statement. Repeated occurences of the same parameter name do count here.


getTotalParameterCount

public int getTotalParameterCount()
Get the total count of all of the parameters in the SQL statement. Repeated occurences of the same parameter name do count here.


The Spring Framework

Copyright © 2002-2006 The Spring Framework.