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
.public <T> com.querydsl.jpa.JPQLQuery<T> applyPagination(Pageable pageable, com.querydsl.jpa.JPQLQuery<T> query)
Pageable
to the given JPQLQuery
.pageable
- query
- must not be null.JPQLQuery
.public <T> com.querydsl.jpa.JPQLQuery<T> applySorting(Sort sort, com.querydsl.jpa.JPQLQuery<T> query)
JPQLQuery
.sort
- query
- must not be null.JPQLQuery
Copyright © 2011-2015–2016 Pivotal Software, Inc.. All rights reserved.