net.sf.farrago.jdbc.engine
Class FarragoJdbcEngineDatabaseMetaData.QueryBuilder

java.lang.Object
  extended by net.sf.farrago.jdbc.engine.FarragoJdbcEngineDatabaseMetaData.QueryBuilder
Enclosing class:
FarragoJdbcEngineDatabaseMetaData

protected class FarragoJdbcEngineDatabaseMetaData.QueryBuilder
extends Object

Helper class for building up queries used by metadata calls.


Field Summary
protected  StringBuilder sql
           
protected  List<Serializable> values
           
private  boolean whereAdded
           
 
Constructor Summary
protected FarragoJdbcEngineDatabaseMetaData.QueryBuilder(String base)
           
 
Method Summary
(package private)  void addConjunction()
           
(package private)  void addExact(String colName, Serializable value)
           
(package private)  void addInList(String colName, String[] valueList)
           
(package private)  void addOrderBy(String colList)
           
(package private)  void addPattern(String colName, String value)
           
protected  ResultSet execute()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sql

protected StringBuilder sql

values

protected List<Serializable> values

whereAdded

private boolean whereAdded
Constructor Detail

FarragoJdbcEngineDatabaseMetaData.QueryBuilder

protected FarragoJdbcEngineDatabaseMetaData.QueryBuilder(String base)
Method Detail

addConjunction

void addConjunction()

addPattern

void addPattern(String colName,
                String value)

addExact

void addExact(String colName,
              Serializable value)

addInList

void addInList(String colName,
               String[] valueList)

addOrderBy

void addOrderBy(String colList)

execute

protected ResultSet execute()
                     throws SQLException
Throws:
SQLException