public class CachedCount extends CachedQuery<Integer>
count query.| Constructor and Description |
|---|
CachedCount(Persistent criteria,
boolean includeDeleted,
boolean excludeUnselectable)
Create a count from a Persistent.
|
CachedCount(Table<?> table,
String whereClause)
Constructor where whereClause does not involve other tables.
|
CachedCount(Table<?> table,
String whereClause,
Table<?>[] otherTables)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
count() |
getTable, toStringpublic CachedCount(Table<?> table, String whereClause, Table<?>[] otherTables)
table - the table of which we are a countwhereClause - discriminator, may be nullotherTables - other tables involved in whereClause, if anypublic CachedCount(Persistent criteria, boolean includeDeleted, boolean excludeUnselectable)
criteria - the Persistent representing the queryincludeDeleted - whether to include records marked as deletedexcludeUnselectable - Whether to append unselectable exclusion SQLCopyright © 2000–2021 PanEris. All rights reserved.