Enum Class GlueOperation

java.lang.Object
java.lang.Enum<GlueOperation>
ru.sergkorot.dynamic.model.enums.GlueOperation
All Implemented Interfaces:
Serializable, Comparable<GlueOperation>, Constable

public enum GlueOperation extends Enum<GlueOperation>
Author:
Sergey Korotaev Enum for And/or glue operation
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    And gluing for operation
    Or gluing for operation
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract org.springframework.data.mongodb.core.query.Criteria
    glueCriteriaOperation(List<org.springframework.data.mongodb.core.query.Criteria> criteriaList)
    Method for gluing criteria with criteria list by condition
    abstract <T> org.springframework.data.jpa.domain.Specification<T>
    glueSpecOperation(org.springframework.data.jpa.domain.Specification<T> first, org.springframework.data.jpa.domain.Specification<T> second)
    Method for gluing two specification with each other
    Returns the enum constant of this class with the specified name.
    static GlueOperation[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • AND

      public static final GlueOperation AND
      And gluing for operation
    • OR

      public static final GlueOperation OR
      Or gluing for operation
  • Method Details

    • values

      public static GlueOperation[] 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 GlueOperation 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
    • glueSpecOperation

      public abstract <T> org.springframework.data.jpa.domain.Specification<T> glueSpecOperation(org.springframework.data.jpa.domain.Specification<T> first, org.springframework.data.jpa.domain.Specification<T> second)
      Method for gluing two specification with each other
      Type Parameters:
      T - - entity for which building condition
      Parameters:
      first - - first specification for gluing
      second - - second specification for gluing
      Returns:
      - specification constructed from two other
    • glueCriteriaOperation

      public abstract org.springframework.data.mongodb.core.query.Criteria glueCriteriaOperation(List<org.springframework.data.mongodb.core.query.Criteria> criteriaList)
      Method for gluing criteria with criteria list by condition
      Parameters:
      criteriaList - - list with criteria parameters
      Returns:
      - criteria constructed from others