Package org.ametys.cms.search.query
Class QueryHelper
- java.lang.Object
-
- org.ametys.cms.search.query.QueryHelper
-
public final class QueryHelper extends Object
Class providing helper methods to Query implementations.
-
-
Field Summary
Fields Modifier and Type Field Description static String
EXISTS_VALUE
The special value testing that the field exists.
-
Constructor Summary
Constructors Modifier Constructor Description private
QueryHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getStandardQuery(String fieldName, Query.Operator operator, Object value)
Get a standard query on a value, with all possible standard operators.
-
-
-
Field Detail
-
EXISTS_VALUE
public static final String EXISTS_VALUE
The special value testing that the field exists.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
QueryHelper
private QueryHelper()
-
-
Method Detail
-
getStandardQuery
public static final String getStandardQuery(String fieldName, Query.Operator operator, Object value)
Get a standard query on a value, with all possible standard operators.- Parameters:
fieldName
- The field name.operator
- The operator.value
- The value, can be null if the operator is EXISTS.- Returns:
- The standard value query.
-
-