Enum CriteriaType

java.lang.Object
java.lang.Enum<CriteriaType>
com.oracle.nosql.spring.data.core.query.CriteriaType
All Implemented Interfaces:
Serializable, Comparable<CriteriaType>, java.lang.constant.Constable

public enum CriteriaType extends Enum<CriteriaType>
  • Enum Constant Details

  • Method Details

    • values

      public static CriteriaType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static CriteriaType 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
    • getSqlKeyword

      public String getSqlKeyword()
    • isPartTypeUnSupported

      public static boolean isPartTypeUnSupported(@NonNull org.springframework.data.repository.query.parser.Part.Type partType)
      Check if PartType is NOT supported.
      Returns:
      True if unsupported, or false.
    • isPartTypeSupported

      public static boolean isPartTypeSupported(@NonNull org.springframework.data.repository.query.parser.Part.Type partType)
      Check if PartType is supported.
      Returns:
      True if supported, or false.
    • toCriteriaType

      public static CriteriaType toCriteriaType(@NonNull org.springframework.data.repository.query.parser.Part.Type partType)
    • isClosed

      public static boolean isClosed(CriteriaType type)
      Check if CriteriaType operation is closure, with format of (A ops A -> A). Example: AND, OR.
      Returns:
      True if match, or false.
    • isBinary

      public static boolean isBinary(CriteriaType type)
      Check if CriteriaType operation is binary, with format of (A ops A -> B). Example: IS_EQUAL, AFTER.
      Returns:
      True if match, or false.
    • isFunction

      public static boolean isFunction(CriteriaType type)
      Check if CriteriaType operation is a function.
      Returns:
      True if match, or false.
    • isUnary

      public static boolean isUnary(CriteriaType type)
      Check if CriteriaType operation is unary, with format of (ops A -> B).
      Returns:
      True if match, or false.