Enum Class SqlOperator

java.lang.Object
java.lang.Enum<SqlOperator>
overit.geocall.sql.code.criterion.SqlOperator
All Implemented Interfaces:
Serializable, Comparable<SqlOperator>, Constable

public enum SqlOperator extends Enum<SqlOperator>
Enum about possible SQL operators.
  • Enum Constant Details

  • Method Details

    • values

      public static SqlOperator[] 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

      public static SqlOperator valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getCode

      public String getCode()
      Returns a String about the SqlOperator code
      Returns:
      a String about the SqlOperator code
    • getSqlClause

      public String getSqlClause()
      Returns a String about the related SQL clause.
      Returns:
      a String about the related SQL clause.
    • getLabel

      public String getLabel()
      Returns a String about the human-readable label for UI display.
      Returns:
      a String about the human-readable label for UI display.
    • getFilterRegex

      public String getFilterRegex()
      Returns a String useful for filtering a filter parameter associated with this SqlOperator.
      Returns:
      a String useful for filtering a filter parameter associated with this SqlOperator.
    • fromCode

      public static Optional<SqlOperator> fromCode(@NotNull @NotNull String code)
      Returns a Optional<SqlOperator> associated to the provided code; or Optional.empty() otherwise.
      Parameters:
      code - String about the code filter.
      Returns:
      a Optional<SqlOperator> associated to the provided code; or Optional.empty() otherwise.