public class Criteria extends DataClass
ResultSet
s via ResultSet.applyFilter
.
Client- and server-side systems built into Smart GWT understand two criteria formats by default: simple key-value
pairs (Criteria) or the AdvancedCriteria
format.
Use DataSource.combineCriteria
to combine two Criteria objects
(including Criteria and AdvancedCriteria) or DataSource.convertCriteria
to convert simple Criteria to the AdvancedCriteria format.
When sent to the Smart GWT
server, the Java representation of the criteria is described here
.
When sent to other servers, the operationBinding.dataProtocol
affects the
format.
factoryCreated, factoryProperties
Constructor and Description |
---|
Criteria() |
Criteria(JavaScriptObject jsObj) |
Criteria(java.lang.String field,
java.lang.String value) |
Modifier and Type | Method and Description |
---|---|
void |
addCriteria(Criteria otherCriteria)
Adds the criteria from the passed criteria object.
|
void |
addCriteria(java.lang.String field,
java.lang.Boolean value) |
void |
addCriteria(java.lang.String field,
java.util.Date value) |
void |
addCriteria(java.lang.String field,
java.lang.Double value) |
void |
addCriteria(java.lang.String field,
java.lang.Double[] value) |
void |
addCriteria(java.lang.String field,
java.lang.Float value) |
void |
addCriteria(java.lang.String field,
java.lang.Integer value) |
void |
addCriteria(java.lang.String field,
java.lang.Integer[] value) |
void |
addCriteria(java.lang.String field,
java.lang.Long value) |
void |
addCriteria(java.lang.String field,
java.lang.Object value) |
void |
addCriteria(java.lang.String field,
java.lang.String value) |
void |
addCriteria(java.lang.String field,
java.lang.String[] value) |
AdvancedCriteria |
asAdvancedCriteria()
Returns an AdvancedCriteria derived from this Criteria object.
|
static Criteria[] |
convertToCriteriaArray(JavaScriptObject nativeArray) |
static Criteria |
getOrCreateRef(JavaScriptObject jsObj) |
java.util.Map |
getValues()
Return the criteria values as a name-value Map.
|
boolean |
isAdvanced()
Does this represent an underlying AdvancedCriteria object in JavaScript?
|
applyFactoryProperties, doAddHandler, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsDoubleArray, getAttributeAsFloat, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getAttributes, getHandlerCount, isFactoryCreated, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeAsJavaObject, setFactoryCreated
public Criteria()
public Criteria(java.lang.String field, java.lang.String value)
public Criteria(JavaScriptObject jsObj)
public static Criteria getOrCreateRef(JavaScriptObject jsObj)
public void addCriteria(java.lang.String field, java.lang.String value)
public void addCriteria(java.lang.String field, java.lang.Boolean value)
public void addCriteria(java.lang.String field, java.lang.Integer value)
public void addCriteria(java.lang.String field, java.lang.Float value)
public void addCriteria(java.lang.String field, java.lang.Double value)
public void addCriteria(java.lang.String field, java.lang.Long value)
public void addCriteria(java.lang.String field, java.util.Date value)
public void addCriteria(java.lang.String field, java.lang.String[] value)
public void addCriteria(java.lang.String field, java.lang.Integer[] value)
public void addCriteria(java.lang.String field, java.lang.Double[] value)
public void addCriteria(java.lang.String field, java.lang.Object value)
public void addCriteria(Criteria otherCriteria)
otherCriteria
- the passed criteria objectpublic java.util.Map getValues()
public static Criteria[] convertToCriteriaArray(JavaScriptObject nativeArray)
public boolean isAdvanced()
public AdvancedCriteria asAdvancedCriteria()