org.melati.poem
Class PreparedTailoredQuery

Package class diagram package PreparedTailoredQuery
java.lang.Object
  extended by org.melati.poem.TailoredQuery
      extended by org.melati.poem.PreparedTailoredQuery
Direct Known Subclasses:
CachedTailoredQuery

public class PreparedTailoredQuery
extends TailoredQuery

A TailoredQuery which uses a PreparedStatement.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.melati.poem.TailoredQuery
TailoredQuery.FirstRawTailoredResultSetEnumeration<T>
 
Field Summary
 
Fields inherited from class org.melati.poem.TailoredQuery
database, sql
 
Constructor Summary
PreparedTailoredQuery(Column[] selectedColumns, Table[] otherTables, String whereClause, String orderByClause)
          Constructor with null modifier.
PreparedTailoredQuery(String modifier, Column[] selectedColumns, Table[] otherTables, String whereClause, String orderByClause)
          Full constructor.
 
Method Summary
 Enumeration<Object> selection_firstRaw()
           
 Enumeration<Object> selection()
          The results of the query.
 
Methods inherited from class org.melati.poem.TailoredQuery
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PreparedTailoredQuery

public PreparedTailoredQuery(String modifier,
                             Column[] selectedColumns,
                             Table[] otherTables,
                             String whereClause,
                             String orderByClause)
Full constructor.

Parameters:
modifier - SQL modifier eg DISTINCT
selectedColumns - an array of columns we know we need
otherTables - tables other than the one we belong to
whereClause - raw SQL where clause
orderByClause - raw SQL order by clasue

PreparedTailoredQuery

public PreparedTailoredQuery(Column[] selectedColumns,
                             Table[] otherTables,
                             String whereClause,
                             String orderByClause)
Constructor with null modifier.

Parameters:
selectedColumns - an array of columns we know we need
otherTables - tables other than the one we belong to
whereClause - raw SQL where clause
orderByClause - raw SQL order by clasue
Method Detail

selection

public Enumeration<Object> selection()
The results of the query.

Overrides:
selection in class TailoredQuery
Returns:
the results (a TailoredResultSetEnumeration) as an Enumeration.
See Also:
TailoredQuery.selection()

selection_firstRaw

public Enumeration<Object> selection_firstRaw()
Overrides:
selection_firstRaw in class TailoredQuery
Returns:
an enumeration of the Columns in the first row of a ResultSet the first row of this TailoredQuery
See Also:
TailoredQuery.selection_firstRaw()


Copyright © 2000-2010 PanEris. All Rights Reserved.