Enum ComparisonOperator

  • All Implemented Interfaces:
    Serializable, Comparable<ComparisonOperator>

    public enum ComparisonOperator
    extends Enum<ComparisonOperator>
    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
    • Field Detail

      • operatorKey

        protected final String operatorKey
      • numberOfOperand

        protected final int numberOfOperand
      • dbOperator

        protected final String dbOperator
      • allowed

        protected final org.gcube.informationsystem.types.PropertyTypeName.BaseTypeGroup allowed
      • description

        protected final String description
    • Method Detail

      • values

        public static ComparisonOperator[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ComparisonOperator c : ComparisonOperator.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ComparisonOperator valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null
      • getOperatorKey

        protected String getOperatorKey()
      • getDbOperator

        public String getDbOperator()
      • getDescription

        public String getDescription()
      • getOperators

        public static Set<String> getOperators()
      • getValue

        public static String getValue​(org.gcube.com.fasterxml.jackson.databind.JsonNode jsonNode)
      • addCondition

        public StringBuffer addCondition​(org.gcube.com.fasterxml.jackson.databind.JsonNode jn,
                                         String fieldNamePrefix)