com.bea.control
Class JdbcControl.SQLFragment

java.lang.Object
  extended by com.bea.control.JdbcControl.SQLFragment
Enclosing interface:
JdbcControl

public static class JdbcControl.SQLFragment
extends Object

SQLFragment.


Field Summary
protected  List parameters
           
protected  CharSequence sql
           
 
Constructor Summary
JdbcControl.SQLFragment()
           
JdbcControl.SQLFragment(String sql, JdbcControl.SQLParameter[] parameters)
          Create a new SQLFragment with the specified SQL and parameter list.
 
Method Summary
 JdbcControl.SQLParameter[] getParameters()
          Get the parameters contained within this fragment.
 String getSQL()
          Get the SQL of this fragment.
 String toString()
          Get the SQL string contained within this fragment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sql

protected CharSequence sql

parameters

protected List parameters
Constructor Detail

JdbcControl.SQLFragment

public JdbcControl.SQLFragment()

JdbcControl.SQLFragment

public JdbcControl.SQLFragment(String sql,
                               JdbcControl.SQLParameter[] parameters)
Create a new SQLFragment with the specified SQL and parameter list.

Parameters:
sql - SQL contents of the fragment.
parameters - Substitution parameters.
Method Detail

getSQL

public String getSQL()
Get the SQL of this fragment.

Returns:
String.

getParameters

public JdbcControl.SQLParameter[] getParameters()
Get the parameters contained within this fragment. Returns a zero-based array (NOTE: ResultSet is one-based).

Returns:
SQLParameter array.

toString

public String toString()
Get the SQL string contained within this fragment.

Overrides:
toString in class Object
Returns:
String.