org.melati.poem
Class CachedCount
java.lang.Object
org.melati.poem.CachedQuery
org.melati.poem.CachedCount
- Direct Known Subclasses:
- CachedExists
public class CachedCount
- extends CachedQuery
A cached instance of an SQL count
query.
Method Summary |
int |
count()
|
CachedCount
public CachedCount(Table table,
String whereClause,
Table[] otherTables)
- Constructor.
- Parameters:
table
- the table of which we are a countwhereClause
- discriminator, may be nullotherTables
- other tables involved in whereClause, if any
CachedCount
public CachedCount(Persistent criteria,
boolean includeDeleted,
boolean excludeUnselectable)
- Create a count from a Persistent.
- Parameters:
criteria
- the Persistent representing the queryincludeDeleted
- whether to include records marked as deletedexcludeUnselectable
- Whether to append unselectable exclusion SQL
CachedCount
public CachedCount(Table table,
String whereClause)
- Constructor where whereClause does not involve other tables.
- Parameters:
table
- the table to countwhereClause
- discrimination, can be null
count
public int count()
- Returns:
- the count itself
Copyright © 2000-2010 PanEris. All Rights Reserved.