public class SpecCommon extends Object
构造器和说明 |
---|
SpecCommon() |
限定符和类型 | 方法和说明 |
---|---|
static <T> org.springframework.data.jpa.domain.Specifications<T> |
and(Collection<org.springframework.data.jpa.domain.Specification<T>> specList) |
static <T> org.springframework.data.jpa.domain.Specifications<T> |
and(org.springframework.data.jpa.domain.Specification<T>... specifications) |
static <ATTR,E> javax.persistence.criteria.Path<ATTR> |
getPath(javax.persistence.criteria.Root<E> root,
String attrName) |
static <ATTR,ENTITY> |
memberOf(Class<ENTITY> entityClass,
String attributeName,
ATTR attr) |
static <ATTR,ENTITY> |
memberOf(String attributeName,
ATTR attr) |
static <T> org.springframework.data.jpa.domain.Specification<T> |
not(org.springframework.data.jpa.domain.Specification<T> spec) |
static <T> org.springframework.data.jpa.domain.Specifications<T> |
or(Collection<org.springframework.data.jpa.domain.Specification<T>> specList) |
static <T> org.springframework.data.jpa.domain.Specifications<T> |
or(org.springframework.data.jpa.domain.Specification<T>... specifications) |
static <ATTR,ENTITY> |
spec(Class<ENTITY> entityClass,
Operators.Logical logical,
String attributeName,
ATTR... attributes) |
static <ATTR,ENTITY> |
spec(Operators.Logical logical,
String attributeName,
ATTR... attributes) |
public static <ATTR,E> javax.persistence.criteria.Path<ATTR> getPath(javax.persistence.criteria.Root<E> root, String attrName)
public static <T> org.springframework.data.jpa.domain.Specification<T> not(org.springframework.data.jpa.domain.Specification<T> spec)
public static <T> org.springframework.data.jpa.domain.Specifications<T> and(org.springframework.data.jpa.domain.Specification<T>... specifications)
public static <T> org.springframework.data.jpa.domain.Specifications<T> or(org.springframework.data.jpa.domain.Specification<T>... specifications)
public static <T> org.springframework.data.jpa.domain.Specifications<T> and(Collection<org.springframework.data.jpa.domain.Specification<T>> specList)
public static <T> org.springframework.data.jpa.domain.Specifications<T> or(Collection<org.springframework.data.jpa.domain.Specification<T>> specList)
public static <ATTR,ENTITY> org.springframework.data.jpa.domain.Specification<ENTITY> spec(Class<ENTITY> entityClass, Operators.Logical logical, String attributeName, ATTR... attributes)
public static <ATTR,ENTITY> org.springframework.data.jpa.domain.Specification<ENTITY> spec(Operators.Logical logical, String attributeName, ATTR... attributes)
public static <ATTR,ENTITY> org.springframework.data.jpa.domain.Specification<ENTITY> memberOf(Class<ENTITY> entityClass, String attributeName, ATTR attr)
public static <ATTR,ENTITY> org.springframework.data.jpa.domain.Specification<ENTITY> memberOf(String attributeName, ATTR attr)
Copyright © 2017. All rights reserved.