Enum Class ComparisonOperator
java.lang.Object
java.lang.Enum<ComparisonOperator>
org.gcube.informationsystem.resourceregistry.queries.operators.ComparisonOperator
- All Implemented Interfaces:
Serializable,Comparable<ComparisonOperator>,Constable
- Author:
- Luca Frosini (ISTI - CNR) See https://www.orientdb.com/docs/3.0.x/sql/SQL-Where.html https://www.orientdb.com/docs/3.0.x/sql/SQL-Syntax.html#conditions https://www.orientdb.com/docs/3.0.x/sql/SQL-Syntax.html#comparison-operators https://www.orientdb.com/docs/3.0.x/sql/SQL-Syntax.html#boolean-operators
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionaddCondition(String... operands) addCondition(org.gcube.com.fasterxml.jackson.databind.JsonNode jn, String fieldNamePrefix) static ComparisonOperatorgetOperator(String key) protected Stringstatic StringgetValue(org.gcube.com.fasterxml.jackson.databind.JsonNode jsonNode) static ComparisonOperatorReturns the enum constant of this class with the specified name.static ComparisonOperator[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EQ
-
GT
-
GTE
-
LT
-
LTE
-
NE
-
BETWEEN
-
IS
-
LIKE
-
CONTAINS_TEXT
-
MATCHES
-
IN
-
CONTAINS
-
CONTAINS_ALL
-
CONTAINS_ANY
-
CONTAINS_KEY
-
CONTAINS_VALUE
-
IS_DEFINED
-
IS_NOT_DEFINED
-
-
Field Details
-
operatorKey
-
numberOfOperand
protected final int numberOfOperand -
dbOperator
-
allowed
protected final org.gcube.informationsystem.types.PropertyTypeName.BaseTypeGroup allowed -
description
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getOperatorKey
-
getDbOperator
-
getDescription
-
getOperators
-
getOperator
-
addCondition
-
getValue
-
addCondition
public StringBuffer addCondition(org.gcube.com.fasterxml.jackson.databind.JsonNode jn, String fieldNamePrefix)
-