public class Criteria extends Object implements Symbol
Criteria is an object that is used to encapsulate the semantics of
a complex query. Any any given time, objects of this class can exist in one
of two modes: building or built. When a Criteria is
built, it is guaranteed to represent a fully and well formed query
that can be processed. On the other hand, when a Criteria is building
it is in an incomplete state.
This class is the public interface to Criteria construction. It is meant to
be used in a chained manner, where the caller initially calls
where() and continues to construct the Criteria using the
options available from each subsequently returned state.
| Modifier | Constructor and Description |
|---|---|
protected |
Criteria()
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
add(Symbol symbol)
|
protected void |
close()
Mark this
Criteria as built. |
String |
getCclString()
Return a CCL string that is equivalent to this object.
|
protected List<Symbol> |
getSymbols()
Return the order list of symbols that make up this
Criteria. |
String |
toString() |
static StartState |
where()
Start building a new
Criteria. |
public static StartState where()
Criteria.public String getCclString()
protected void add(Symbol symbol)
symbol - protected void close()
Criteria as built.