Class QueryUtil
java.lang.Object
com.ssgllc.fish.service.util.registered.QueryUtil
-
Constructor Summary
ConstructorsConstructorDescriptionQueryUtil
(jakarta.persistence.EntityManager entityManager, com.ssgllc.fish.service.GenericQueryService genericQueryService) -
Method Summary
Modifier and TypeMethodDescriptionstatic jakarta.persistence.EntityManager
queryListLimit
(String queryStr, Integer limit) queryListParam
(String queryStr, Map<String, Object> params) static Object
querySingle
(String queryStr) static Object
querySingleParam
(String queryStr, Map<String, Object> params)
-
Constructor Details
-
QueryUtil
public QueryUtil(jakarta.persistence.EntityManager entityManager, com.ssgllc.fish.service.GenericQueryService genericQueryService)
-
-
Method Details
-
queryList
- Throws:
Exception
-
queryListLimit
- Throws:
Exception
-
queryListParam
public static List<Object> queryListParam(String queryStr, Map<String, Object> params) throws Exception- Throws:
Exception
-
queryListParamLimit
public static List<Object> queryListParamLimit(String queryStr, Map<String, Object> params, Integer limit) throws Exception- Throws:
Exception
-
querySingle
- Throws:
Exception
-
querySingleParam
- Throws:
Exception
-
getEntityManager
public static jakarta.persistence.EntityManager getEntityManager()
-