|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Dictionary<K,V>
java.util.Hashtable
eTextReader.clientInterface.Criteria
public class Criteria
A class to hold a set of criteria for a client-server interaction
Field Summary | |
---|---|
private java.lang.String |
groupBy
|
private boolean |
grouped
|
private java.lang.String |
orderBy
|
private boolean |
ordered
|
static Criteria |
RETRIEVE_ALL
Serves as a marker to denote that all fields should be downloaded for a notation |
Constructor Summary | |
---|---|
Criteria()
Constructs a new, empty Criteria set. |
Method Summary | |
---|---|
java.lang.String |
getGrouped()
Returns the group_by clause of this Criteria. |
java.lang.String |
getOrdered()
Returns the order_by clause of this Criteria. |
java.lang.Object |
getValue(java.lang.String field)
Gets the value of the given field. |
boolean |
isGrouped()
returns whether or not there is a group_by clause for this Criteria. |
boolean |
isOrdered()
returns whether or not there is an order_by clause for this Criteria. |
void |
reset(java.lang.String field,
int value)
Sets the given field to the given int value, replacing any values already present. |
void |
reset(java.lang.String field,
java.lang.String value)
Sets the given field to the given String value, replacing any values already present. |
void |
set(java.lang.String field,
boolean value)
Sets the given field to the given boolean value. |
void |
set(java.lang.String field,
double value)
Sets the given field to the given double value. |
void |
set(java.lang.String field,
int value)
Sets the given field to the given int value. |
void |
set(java.lang.String field,
java.lang.Object value)
Sets the given field to the given value. |
void |
set(java.lang.String field,
java.lang.String value)
Sets the given field to the given String value, OR'ed the old value if the field has already been set. |
void |
setGrouped(java.lang.String clause)
Sets the group_by clause for this Criteria |
void |
setOrdered(java.lang.String clause)
Sets the order_by clause for this Criteria. |
Methods inherited from class java.util.Hashtable |
---|
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static Criteria RETRIEVE_ALL
private boolean ordered
private boolean grouped
private java.lang.String orderBy
private java.lang.String groupBy
Constructor Detail |
---|
public Criteria()
Method Detail |
---|
public void set(java.lang.String field, java.lang.String value)
field
- The field to set.value
- The value to set the field to.public void reset(java.lang.String field, java.lang.String value)
field
- The field to set.value
- The value to set the field to.public void set(java.lang.String field, java.lang.Object value)
field
- The field to set.value
- The value to set the field to.public void set(java.lang.String field, boolean value)
field
- The field to set.value
- The value to set the field to.public void set(java.lang.String field, int value)
field
- The field to set.value
- The value to set the field to.public void reset(java.lang.String field, int value)
field
- The field to set.value
- The value to set the field to.public void set(java.lang.String field, double value)
field
- The field to set.value
- The value to set the field to.public java.lang.Object getValue(java.lang.String field)
field
- The field to get.
public boolean isOrdered()
public boolean isGrouped()
public void setOrdered(java.lang.String clause)
clause
- the new value for the order_by clause This
automatically sets isOrdered totrue
.public void setGrouped(java.lang.String clause)
clause
- the new value for the group_by clause This
automatically sets isGrouped totrue
.public java.lang.String getOrdered()
public java.lang.String getGrouped()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |