org.melati.poem
Class CachedTailoredQuery

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

public class CachedTailoredQuery
extends PreparedTailoredQuery

A cached instance of a PreparedTailoredQuery.

Author:
WilliamC At paneris.org

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
CachedTailoredQuery(Column[] selectedColumns, Table[] otherTables, String whereClause, String orderByClause)
          Constructor with modifier null.
CachedTailoredQuery(String modifier, Column[] selectedColumns, Table[] otherTables, String whereClause, String orderByClause)
          Full Constructor.
 
Method Summary
 Enumeration selection_firstRaw()
          
 Enumeration selection()
          The results of the query.
protected  boolean upToDate()
           
 
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

CachedTailoredQuery

public CachedTailoredQuery(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 ours whose modification state needs to be taken into account
whereClause - Raw SQL
orderByClause - Raw ORDER BY clause

CachedTailoredQuery

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

Parameters:
selectedColumns - An array of columns we know we need
otherTables - Tables other than ours whose modification state needs to be taken into account
whereClause - Raw SQL
orderByClause - Raw ORDER BY clause
Method Detail

upToDate

protected boolean upToDate()
Returns:
whether the underlying tables have changed since last run.

selection

public Enumeration selection()
The results of the query.

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

selection_firstRaw

public Enumeration selection_firstRaw()

Overrides:
selection_firstRaw in class PreparedTailoredQuery
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.