public class JpaELFilterImpl
extends java.lang.Object
Constructor and Description |
---|
JpaELFilterImpl(javax.persistence.EntityManager em,
java.lang.Class entityClass,
java.lang.Class resultClass) |
Modifier and Type | Method and Description |
---|---|
void |
buildExpression(java.lang.String filter) |
java.lang.Long |
count() |
JpaELFilterImpl |
distinct(java.lang.String... distinctFields) |
java.util.List |
getResultList(int limit,
int skip) |
java.util.List |
getResultList(int limit,
int skip,
javax.persistence.EntityGraph graph) |
java.lang.Object |
getSingleResult() |
JpaELFilterImpl |
groupBy(java.lang.String[] fields,
java.lang.String aggregate,
java.lang.String[] groupBy) |
JpaELFilterImpl |
orderBy(java.lang.String orderByFields) |
JpaELFilterImpl |
selectFields(java.lang.String[] fields) |
public JpaELFilterImpl(javax.persistence.EntityManager em, java.lang.Class entityClass, java.lang.Class resultClass)
public void buildExpression(java.lang.String filter) throws ParseException
filter
- ParseException
java.lang.IllegalArgumentException
public JpaELFilterImpl distinct(java.lang.String... distinctFields)
distinctFields
- java.lang.IllegalArgumentException
- if the field is not part of the entitypublic JpaELFilterImpl selectFields(java.lang.String[] fields)
fields
- java.lang.IllegalArgumentException
- if the field is not part of the entitypublic JpaELFilterImpl orderBy(java.lang.String orderByFields)
public java.lang.Long count()
public java.lang.Object getSingleResult()
public java.util.List getResultList(int limit, int skip)
public java.util.List getResultList(int limit, int skip, javax.persistence.EntityGraph graph)
public JpaELFilterImpl groupBy(java.lang.String[] fields, java.lang.String aggregate, java.lang.String[] groupBy)