Enum Class EntityQueryOps

java.lang.Object
java.lang.Enum<EntityQueryOps>
com.foreach.across.modules.entity.query.EntityQueryOps
All Implemented Interfaces:
Serializable, Comparable<EntityQueryOps>, Constable

public enum EntityQueryOps extends Enum<EntityQueryOps>
Different operand types that an EntityQueryCondition supports.
Author:
Arne Vandamme
  • Enum Constant Details

  • Method Details

    • values

      public static EntityQueryOps[] 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 EntityQueryOps 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
    • toString

      public String toString(String propertyName, Object... arguments)
    • getToken

      public String getToken()
    • isNegation

      public boolean isNegation()
      Returns:
      true if this is the negative (NOT) operand of an original
    • reverse

      public EntityQueryOps reverse()
      Returns:
      the reverse operand (if available), often the negation
    • forToken

      public static EntityQueryOps forToken(String token)
    • resolveMultiValueOperand

      public static EntityQueryOps resolveMultiValueOperand(@NonNull @NonNull EntityQueryOps single)
      Retrieve the multi-value equivalent operand for a single-value operand. Eg. the multi-value of EQ is IN.
      Parameters:
      single - value operand
      Returns:
      multi-value operand or null if there is none