org.melati.poem
Class CachedSelection
java.lang.Object
org.melati.poem.CachedQuery
org.melati.poem.CachedSelection
public class CachedSelection
- extends CachedQuery
A cached instance of an SQL select query.
|
Constructor Summary |
CachedSelection(Table table,
java.lang.String whereClause,
java.lang.String orderByClause)
Constructor for a single Table query. |
CachedSelection(Table table,
java.lang.String whereClause,
java.lang.String orderByClause,
Table[] otherTables)
Constructor. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CachedSelection
public CachedSelection(Table table,
java.lang.String whereClause,
java.lang.String orderByClause,
Table[] otherTables)
- Constructor.
- Parameters:
table - the primary Table we are selecting rows fromwhereClause - SQL snippetorderByClause - SQL snippetotherTables - an Array of Tables which are also referenced in query
CachedSelection
public CachedSelection(Table table,
java.lang.String whereClause,
java.lang.String orderByClause)
- Constructor for a single Table query.
- Parameters:
table - the primary Table we are selecting rows fromwhereClause - SQL snippetorderByClause - SQL snippet
troids
public java.util.Enumeration troids()
- Returns:
- an Enumeration of Table Row Object Ids
objects
public java.util.Enumeration objects()
- Returns:
- an Enumeration of Table Row ReferencePoemType objects
firstObject
public Persistent firstObject()
- Returns:
- the first, often only, result
nth
public Persistent nth(int n)
- Parameters:
n - index into ResultSet
- Returns:
- the row corresponding to the index
count
public int count()
- Returns:
- the number of results
Copyright © 2000-2009 PanEris. All Rights Reserved.