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.EntityManagerqueryListLimit(String queryStr, Integer limit) queryListParam(String queryStr, Map<String, Object> params) static ObjectquerySingle(String queryStr) static ObjectquerySingleParam(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()
-