Package ru.sergkorot.dynamic.model.enums
Enum Class GlueOperation
- All Implemented Interfaces:
Serializable,Comparable<GlueOperation>,Constable
- 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 -
Method Summary
Modifier and TypeMethodDescriptionabstract org.springframework.data.mongodb.core.query.CriteriaglueCriteriaOperation(List<org.springframework.data.mongodb.core.query.Criteria> criteriaList) Method for gluing criteria with criteria list by conditionabstract <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 otherstatic GlueOperationReturns the enum constant of this class with the specified name.static GlueOperation[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AND
And gluing for operation -
OR
Or gluing for operation
-
-
Method Details
-
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
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 nameNullPointerException- 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 gluingsecond- - 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
-