Package cn.net.pap.example.proguard.util
Class SearchUtil
java.lang.Object
cn.net.pap.example.proguard.util.SearchUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> List<T>
filterEntities
(List<SearchConditionDTO> conditions, jakarta.persistence.EntityManager entityManager, Class<T> entityClass) 高级查询static <T> List<T>
filterEntities
(List<SearchConditionDTO> conditions, jakarta.persistence.EntityManager entityManager, Class<T> entityClass, int pageNumber, int pageSize) 高级查询 分页
-
Constructor Details
-
SearchUtil
public SearchUtil()
-
-
Method Details
-
filterEntities
public static <T> List<T> filterEntities(List<SearchConditionDTO> conditions, jakarta.persistence.EntityManager entityManager, Class<T> entityClass) 高级查询- Type Parameters:
T
-- Parameters:
conditions
-entityManager
-entityClass
-- Returns:
-
filterEntities
public static <T> List<T> filterEntities(List<SearchConditionDTO> conditions, jakarta.persistence.EntityManager entityManager, Class<T> entityClass, int pageNumber, int pageSize) 高级查询 分页- Type Parameters:
T
-- Parameters:
conditions
-entityManager
-entityClass
-pageNumber
-pageSize
-- Returns:
-