public abstract class QueryUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
COUNT_QUERY_STRING
The constant COUNT_QUERY_STRING.
|
static String |
DELETE_ALL_QUERY_STRING
The constant DELETE_ALL_QUERY_STRING.
|
Modifier and Type | Method and Description |
---|---|
static String |
getExistsQueryString(String entityName,
String cntQryPlaceHolder,
Iterable<String> idAttrs)
Returns the query string to execute an exists query for the given id attributes.
|
static String |
getProjection(String qry)
Returns the projection part of the query, i.e. everything between
select and from . |
static String |
getQueryString(String template,
String entityName)
Returns the query string for the given class name.
|
static boolean |
hasConstructorExpression(String qry)
Returns whether the given JPQL query contains a constructor expression.
|
public static final String COUNT_QUERY_STRING
public static final String DELETE_ALL_QUERY_STRING
public static String getExistsQueryString(String entityName, String cntQryPlaceHolder, Iterable<String> idAttrs)
entityName
- the name of the entity to create the query for, must not be null.cntQryPlaceHolder
- the placeholder for the count clause, must not be null.idAttrs
- the id attributes for the entity, must not be null.public static String getQueryString(String template, String entityName)
template
- must not be null.entityName
- must not be null.public static boolean hasConstructorExpression(String qry)
qry
- must not be null or empty.
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024