|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.elca.el4j.services.search.criterias.AbstractCriteria
ch.elca.el4j.services.search.criterias.ComparisonCriteria
public class ComparisonCriteria
Criteria to compare fields to values.
Field Summary | |
---|---|
static String |
TYPE_PREFIX
Is the type prefix. |
Constructor Summary | |
---|---|
protected |
ComparisonCriteria()
Default constructor for remoting protocols like hessian added. |
|
ComparisonCriteria(String field,
Object value,
String operator,
String typeSuffix)
Constructor to create new special comparison Criteria objects. |
Method Summary | |
---|---|
static ComparisonCriteria |
equals(String field,
boolean value)
|
static ComparisonCriteria |
equals(String field,
byte value)
|
static ComparisonCriteria |
equals(String field,
double value)
|
static ComparisonCriteria |
equals(String field,
Enum<?> value)
|
static ComparisonCriteria |
equals(String field,
float value)
|
static ComparisonCriteria |
equals(String field,
int value)
|
static ComparisonCriteria |
equals(String field,
long value)
|
static ComparisonCriteria |
equals(String field,
short value)
|
static ComparisonCriteria |
equals(String field,
String value)
|
static ComparisonCriteria |
equalsObject(String field,
Object value)
|
String |
getOperator()
|
String |
getSqlWhereCondition()
The full Criteria as SQL representation. |
String |
getType()
|
String |
toString()
|
Methods inherited from class ch.elca.el4j.services.search.criterias.AbstractCriteria |
---|
getBooleanValue, getByteValue, getDoubleValue, getField, getFloatValue, getIntegerValue, getLongValue, getShortValue, getStringValue, getValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String TYPE_PREFIX
Constructor Detail |
---|
protected ComparisonCriteria()
public ComparisonCriteria(String field, Object value, String operator, String typeSuffix)
field
- Is the field the criteria is made for.value
- Is the value of this criteria.operator
- Is the compare operator.typeSuffix
- is the type suffix of this criteria.
(we use the unqualified class name of the basic Java types (
Boolean,Integer, ...))Method Detail |
---|
public static ComparisonCriteria equals(String field, boolean value)
field
- Is the field the criteria is made for.value
- Is the value of this criteria.
public static ComparisonCriteria equals(String field, int value)
field
- Is the field the criteria is made for.value
- Is the value of this criteria.
public static ComparisonCriteria equals(String field, long value)
field
- Is the field the criteria is made for.value
- Is the value of this criteria.
public static ComparisonCriteria equals(String field, short value)
field
- Is the field the criteria is made for.value
- Is the value of this criteria.
public static ComparisonCriteria equals(String field, byte value)
field
- Is the field the criteria is made for.value
- Is the value of this criteria.
public static ComparisonCriteria equals(String field, double value)
field
- Is the field the criteria is made for.value
- Is the value of this criteria.
public static ComparisonCriteria equals(String field, Enum<?> value)
field
- Is the field the criteria is made for.value
- Is the value of this criteria.
public static ComparisonCriteria equals(String field, float value)
field
- Is the field the criteria is made for.value
- Is the value of this criteria.
public static ComparisonCriteria equals(String field, String value)
field
- Is the field the criteria is made for.value
- Is the value of this criteria.
public static ComparisonCriteria equalsObject(String field, Object value)
field
- Is the field the criteria is made for.value
- Is the value of this criteria.
public String getOperator()
public String getType()
public String toString()
toString
in class Object
public String getSqlWhereCondition()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |