public class EntityAttributeSpecificationProvider extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> org.springframework.data.jpa.domain.Specification<T> |
provideSpecificationForEntityAttribute(String attribute,
String value)
Provides specification for the attribute in some entity.
|
static <T> org.springframework.data.jpa.domain.Specification<T> |
provideSpecificationForJoinedEntityAttribute(@NotNull javax.persistence.criteria.Join<T,?> join,
@NotNull String attribute,
@Nullable Object value)
Provides specification for the attribute in a joined entity.
|
static <T> org.springframework.data.jpa.domain.Specification<T> |
provideSpecificationForJoinedEntityAttribute(@NotNull javax.persistence.criteria.Join<T,?> join,
@NotNull String attribute,
@Nullable String value)
Provides specification for the attribute in a joined entity.
|
public static <T> org.springframework.data.jpa.domain.Specification<T> provideSpecificationForEntityAttribute(String attribute, String value)
T - type of the entity, for which this specification will be createdattribute - name of the attribute in entityvalue - optional value of the attributenull if the attribute's value was omittedpublic static <T> org.springframework.data.jpa.domain.Specification<T> provideSpecificationForJoinedEntityAttribute(@NotNull
@NotNull javax.persistence.criteria.Join<T,?> join,
@NotNull
@NotNull String attribute,
@Nullable
@Nullable String value)
T - type of the entity, for which this specification will be createdjoin - join to an entityattribute - name of the attribute in joined entityvalue - optional value of the attributenull if the attribute's value was omittedpublic static <T> org.springframework.data.jpa.domain.Specification<T> provideSpecificationForJoinedEntityAttribute(@NotNull
@NotNull javax.persistence.criteria.Join<T,?> join,
@NotNull
@NotNull String attribute,
@Nullable
@Nullable Object value)
T - type of the entity, for which this specification will be createdjoin - join to an entityattribute - name of the attribute in joined entityvalue - optional value of the attribute as Objectnull if the attribute's value was omittedCopyright © 2019. All rights reserved.