public class Querydsl extends Object
| Constructor and Description |
|---|
Querydsl(javax.persistence.EntityManager em,
com.querydsl.core.types.dsl.PathBuilder<?> builder)
|
| Modifier and Type | Method and Description |
|---|---|
<T> com.querydsl.jpa.JPQLQuery<T> |
applyPagination(Pageable pageable,
com.querydsl.jpa.JPQLQuery<T> query)
Applies the given
Pageable to the given JPQLQuery. |
<T> com.querydsl.jpa.JPQLQuery<T> |
applySorting(Sort sort,
com.querydsl.jpa.JPQLQuery<T> query)
Applies sorting to the given
JPQLQuery. |
<T> com.querydsl.jpa.impl.AbstractJPAQuery<T,com.querydsl.jpa.impl.JPAQuery<T>> |
createQuery()
Creates the
JPQLQuery instance based on the configured EntityManager. |
com.querydsl.jpa.impl.AbstractJPAQuery<Object,com.querydsl.jpa.impl.JPAQuery<Object>> |
createQuery(com.querydsl.core.types.EntityPath<?>... paths)
Creates the
JPQLQuery instance based on the configured EntityManager. |
public Querydsl(javax.persistence.EntityManager em,
com.querydsl.core.types.dsl.PathBuilder<?> builder)
em - must not be null.builder - must not be null.public <T> com.querydsl.jpa.impl.AbstractJPAQuery<T,com.querydsl.jpa.impl.JPAQuery<T>> createQuery()
JPQLQuery instance based on the configured EntityManager.public com.querydsl.jpa.impl.AbstractJPAQuery<Object,com.querydsl.jpa.impl.JPAQuery<Object>> createQuery(com.querydsl.core.types.EntityPath<?>... paths)
JPQLQuery instance based on the configured EntityManager.paths - must not be null.public <T> com.querydsl.jpa.JPQLQuery<T> applyPagination(Pageable pageable, com.querydsl.jpa.JPQLQuery<T> query)
Pageable to the given JPQLQuery.pageable - must not be null.query - must not be null.JPQLQuery.public <T> com.querydsl.jpa.JPQLQuery<T> applySorting(Sort sort, com.querydsl.jpa.JPQLQuery<T> query)
JPQLQuery.sort - must not be null.query - must not be null.JPQLQueryCopyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.