public class JPAQueryFactory extends Object implements JPQLQueryFactory
| Constructor and Description |
|---|
JPAQueryFactory(javax.persistence.EntityManager entityManager) |
JPAQueryFactory(JPQLTemplates templates,
javax.persistence.EntityManager entityManager) |
JPAQueryFactory(JPQLTemplates templates,
javax.inject.Provider<javax.persistence.EntityManager> entityManager) |
JPAQueryFactory(javax.inject.Provider<javax.persistence.EntityManager> entityManager) |
| Modifier and Type | Method and Description |
|---|---|
JPADeleteClause |
delete(EntityPath<?> path)
Create a new DELETE clause
|
JPAQuery<?> |
from(EntityPath<?>... from)
Create a new Query with the given source
|
JPAQuery<?> |
from(EntityPath<?> from)
Create a new Query with the given source
|
JPAQuery<?> |
query() |
JPAQuery<Tuple> |
select(Expression<?>... exprs)
Create a new JPQLQuery instance with the given projection
|
<T> JPAQuery<T> |
select(Expression<T> expr)
Create a new JPQLQuery instance with the given projection
|
JPAQuery<Tuple> |
selectDistinct(Expression<?>... exprs)
Create a new JPQLQuery instance with the given projection
|
<T> JPAQuery<T> |
selectDistinct(Expression<T> expr)
Create a new JPQLQuery instance with the given projection
|
<T> JPAQuery<T> |
selectFrom(EntityPath<T> from)
Create a new JPQLQuery instance with the given source and projection
|
JPAQuery<Integer> |
selectOne()
Create a new JPQLQuery instance with the projection one
|
JPAQuery<Integer> |
selectZero()
Create a new JPQLQuery instance with the projection zero
|
JPAUpdateClause |
update(EntityPath<?> path)
Create a new UPDATE clause
|
public JPAQueryFactory(javax.persistence.EntityManager entityManager)
public JPAQueryFactory(JPQLTemplates templates, javax.persistence.EntityManager entityManager)
public JPAQueryFactory(javax.inject.Provider<javax.persistence.EntityManager> entityManager)
public JPAQueryFactory(JPQLTemplates templates, javax.inject.Provider<javax.persistence.EntityManager> entityManager)
public JPADeleteClause delete(EntityPath<?> path)
JPQLQueryFactorydelete in interface JPQLQueryFactorypath - entity to delete frompublic <T> JPAQuery<T> select(Expression<T> expr)
JPQLQueryFactoryselect in interface JPQLQueryFactoryexpr - projectionpublic JPAQuery<Tuple> select(Expression<?>... exprs)
JPQLQueryFactoryselect in interface JPQLQueryFactoryexprs - projectionpublic <T> JPAQuery<T> selectDistinct(Expression<T> expr)
JPQLQueryFactoryselectDistinct in interface JPQLQueryFactoryexpr - projectionpublic JPAQuery<Tuple> selectDistinct(Expression<?>... exprs)
JPQLQueryFactoryselectDistinct in interface JPQLQueryFactoryexprs - projectionpublic JPAQuery<Integer> selectOne()
JPQLQueryFactoryselectOne in interface JPQLQueryFactorypublic JPAQuery<Integer> selectZero()
JPQLQueryFactoryselectZero in interface JPQLQueryFactorypublic <T> JPAQuery<T> selectFrom(EntityPath<T> from)
JPQLQueryFactoryselectFrom in interface JPQLQueryFactoryfrom - projection and sourcepublic JPAQuery<?> from(EntityPath<?> from)
JPQLQueryFactoryfrom in interface JPQLQueryFactoryfrom - frompublic JPAQuery<?> from(EntityPath<?>... from)
JPQLQueryFactoryfrom in interface JPQLQueryFactoryfrom - frompublic JPAUpdateClause update(EntityPath<?> path)
JPQLQueryFactoryupdate in interface JPQLQueryFactorypath - entity to updatepublic JPAQuery<?> query()
query in interface QueryFactory<JPQLQuery<?>>Copyright © 2007–2015 Mysema Ltd. All rights reserved.