public class CachedSelection<P extends Persistent> extends CachedQuery<P>
select query.| Constructor and Description |
|---|
CachedSelection(Table<?> table,
String whereClause,
String orderByClause,
Table<?>[] otherTables)
Constructor.
|
CachedSelection(Table<P> table,
String whereClause,
String orderByClause)
Constructor for a single Table query.
|
| Modifier and Type | Method and Description |
|---|---|
int |
count() |
Persistent |
firstObject() |
Persistent |
nth(int n) |
List<P> |
objectList()
Convenience method.
|
Enumeration<P> |
objects() |
Enumeration<Integer> |
troids() |
getTable, toStringpublic CachedSelection(Table<?> table, String whereClause, String orderByClause, Table<?>[] otherTables)
table - the primary Table we are selecting rows fromwhereClause - SQL snippetorderByClause - SQL snippetotherTables - an Array of Tables which are also referenced in querypublic Enumeration<Integer> troids()
public Enumeration<P> objects()
public List<P> objectList()
public Persistent firstObject()
public Persistent nth(int n)
n - index into ResultSetpublic int count()
Copyright © 2000–2021 PanEris. All rights reserved.