org.melati.poem
Class CachedExists
java.lang.Object
org.melati.poem.CachedQuery
org.melati.poem.CachedCount
org.melati.poem.CachedExists
public class CachedExists
- extends CachedCount
A cached instance of an SQL count
> 0 query.
Method Summary |
boolean |
exists()
|
CachedExists
public CachedExists(Table table,
String whereClause,
Table[] otherTables)
- Constructor.
- Parameters:
table
- the Table we are dealing withwhereClause
- SQL snippetotherTables
- Array of other tables referred to in whereClause, if any
CachedExists
public CachedExists(Table table,
String whereClause)
- Parameters:
table
- the Table we are dealing withwhereClause
- SQL snippet
exists
public boolean exists()
- Returns:
- whether any record match the criteria or not
Copyright © 2000-2010 PanEris. All Rights Reserved.