Class PanacheJpaUtil
java.lang.Object
io.quarkus.panache.hibernate.common.runtime.PanacheJpaUtil
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringcreateDeleteQuery(Class<?> entityClass, String query, int paramCount) static StringcreateFindQuery(Class<?> entityClass, String query, int paramCount) static StringcreateQueryForCount(Class<?> entityClass, String query, int paramCount) static StringcreateUpdateQuery(Class<?> entityClass, String query, int paramCount) static StringgetEntityName(Class<?> entityClass) static booleanisNamedQuery(String query) static Stringstatic StringtrimForAnalysis(String query) Removes \n, \r and outside spaces, and turns to lower case.
-
Field Details
-
SELECT_PATTERN
-
FROM_PATTERN
-
FETCH_PATTERN
-
LONE_SELECT_PATTERN
-
WITH_PATTERN
-
-
Constructor Details
-
PanacheJpaUtil
public PanacheJpaUtil()
-
-
Method Details
-
getEntityName
-
trimForAnalysis
Removes \n, \r and outside spaces, and turns to lower case. DO NOT USE the result to pass it on to ORM, because the query is likely to be invalid since we replace newlines even if they are in quoted strings. This is only useful to analyse the start of the query for quick processing. NEVER use this to pass it to the DB or to replace user queries. -
createFindQuery
-
isNamedQuery
-
createQueryForCount
-
createUpdateQuery
-
createDeleteQuery
-
toOrderBy
-