public class SimpleQueryHelper
extends java.lang.Object
Constructor and Description |
---|
SimpleQueryHelper() |
Modifier and Type | Method and Description |
---|---|
void |
amendJoinPaths(MethodInvocation invocation,
CriteriaBuilder qb,
Root r,
CriteriaQuery c,
java.lang.Class<? extends MetadataProvider> fromMetadata,
Join[] joinPath) |
void |
amendOrderBy(CriteriaBuilder qb,
Root r,
CriteriaQuery c,
java.lang.Class<? extends MetadataProvider> fromMetadata,
OrderBy[] orderBys) |
void |
amendSingleProjection(CriteriaBuilder qb,
Root r,
CriteriaQuery c,
java.lang.Class<? extends MetadataProvider> fromMetadata,
java.lang.String select) |
CriteriaQuery |
createQuery(CriteriaBuilder qb,
java.lang.Class<?> from,
java.lang.Class<? extends MetadataProvider> fromMetadata,
java.lang.String select) |
java.lang.Class<? extends MetadataProvider> |
getMetadataProviderFor(java.lang.Class<?> type) |
Predicate |
getPredicate(MethodInvocation invocation,
java.lang.Class<? extends MetadataProvider> fromMetadata,
CriteriaBuilder qb,
From from,
Predicate predData) |
<A> Predicate |
getPredicate(MethodInvocation invocation,
java.lang.Class<? extends MetadataProvider> fromMetadata,
CriteriaBuilder qb,
From from,
PredicateType type,
java.lang.String attribute,
A value) |
public Predicate getPredicate(MethodInvocation invocation, java.lang.Class<? extends MetadataProvider> fromMetadata, CriteriaBuilder qb, From from, Predicate predData)
public <A> Predicate getPredicate(MethodInvocation invocation, java.lang.Class<? extends MetadataProvider> fromMetadata, CriteriaBuilder qb, From from, PredicateType type, java.lang.String attribute, A value)
public java.lang.Class<? extends MetadataProvider> getMetadataProviderFor(java.lang.Class<?> type) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
public void amendOrderBy(CriteriaBuilder qb, Root r, CriteriaQuery c, java.lang.Class<? extends MetadataProvider> fromMetadata, OrderBy[] orderBys)
public void amendSingleProjection(CriteriaBuilder qb, Root r, CriteriaQuery c, java.lang.Class<? extends MetadataProvider> fromMetadata, java.lang.String select)
public CriteriaQuery createQuery(CriteriaBuilder qb, java.lang.Class<?> from, java.lang.Class<? extends MetadataProvider> fromMetadata, java.lang.String select)
public void amendJoinPaths(MethodInvocation invocation, CriteriaBuilder qb, Root r, CriteriaQuery c, java.lang.Class<? extends MetadataProvider> fromMetadata, Join[] joinPath) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException