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.
|
Constructor Summary |
CachedCount(Persistent criteria,
boolean includeDeleted,
boolean excludeUnselectable)
Create a count from a Persistent. |
CachedCount(Table table,
java.lang.String whereClause)
Constructor where whereClause does not involve other tables. |
CachedCount(Table table,
java.lang.String whereClause,
Table[] otherTables)
Constructor. |
|
Method Summary |
int |
count()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CachedCount
public CachedCount(Table table,
java.lang.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,
java.lang.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-2009 PanEris. All Rights Reserved.