gov.usda.gdpc.database
Class SQLStatements

java.lang.Object
  extended bygov.usda.gdpc.database.SQLStatements

public class SQLStatements
extends java.lang.Object

Author:
terryc

Constructor Summary
SQLStatements()
          SQLStatements constructor.
 
Method Summary
 void addConstant(java.lang.Object constant)
          Adds a constant value that will be added to the final list of distinct values.
 void addSQLStatements(SQLStatements statements)
          Adds another SQL statements instance to this one.
 void addStatement(java.lang.String statement, ExtraInfo info)
          Add a SQL statement with its extra information.
 java.lang.Object[] getConstants()
          Returns a list of the constants.
 ExtraInfo[] getExtraInfo()
          This gets a list of extra information which goes with the statements.
 java.lang.String[] getStatements()
          This gets a list of statements.
 int size()
          Returns the number of statements defined in this instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLStatements

public SQLStatements()
SQLStatements constructor.

Method Detail

addStatement

public void addStatement(java.lang.String statement,
                         ExtraInfo info)
Add a SQL statement with its extra information.

Parameters:
statement - the statement
info - the extra information. null if not needed.

getStatements

public java.lang.String[] getStatements()
This gets a list of statements.

Returns:
list of statements

getExtraInfo

public ExtraInfo[] getExtraInfo()
This gets a list of extra information which goes with the statements.

Returns:
list of extra information

addConstant

public void addConstant(java.lang.Object constant)
Adds a constant value that will be added to the final list of distinct values.

Parameters:
constant - constant

getConstants

public java.lang.Object[] getConstants()
Returns a list of the constants.

Returns:
list of constants

addSQLStatements

public void addSQLStatements(SQLStatements statements)
Adds another SQL statements instance to this one.

Parameters:
statements - SQL statements

size

public int size()
Returns the number of statements defined in this instance.

Returns:
size