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.
CachedSelection
public CachedSelection(Table table,
String whereClause,
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,
String whereClause,
String orderByClause)
- Constructor for a single Table query.
- Parameters:
table - the primary Table we are selecting rows fromwhereClause - SQL snippetorderByClause - SQL snippet
troids
public Enumeration<Integer> troids()
- Returns:
- an Enumeration of Table Row Object Ids
objects
public 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-2010 PanEris. All Rights Reserved.