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()
Create a new 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)
JPQLQueryFactory
delete
in interface JPQLQueryFactory
path
- entity to delete frompublic <T> JPAQuery<T> select(Expression<T> expr)
JPQLQueryFactory
select
in interface JPQLQueryFactory
expr
- projectionpublic JPAQuery<Tuple> select(Expression<?>... exprs)
JPQLQueryFactory
select
in interface JPQLQueryFactory
exprs
- projectionpublic <T> JPAQuery<T> selectDistinct(Expression<T> expr)
JPQLQueryFactory
selectDistinct
in interface JPQLQueryFactory
expr
- projectionpublic JPAQuery<Tuple> selectDistinct(Expression<?>... exprs)
JPQLQueryFactory
selectDistinct
in interface JPQLQueryFactory
exprs
- projectionpublic JPAQuery<Integer> selectOne()
JPQLQueryFactory
selectOne
in interface JPQLQueryFactory
public JPAQuery<Integer> selectZero()
JPQLQueryFactory
selectZero
in interface JPQLQueryFactory
public <T> JPAQuery<T> selectFrom(EntityPath<T> from)
JPQLQueryFactory
selectFrom
in interface JPQLQueryFactory
from
- projection and sourcepublic JPAQuery<?> from(EntityPath<?> from)
JPQLQueryFactory
from
in interface JPQLQueryFactory
from
- frompublic JPAQuery<?> from(EntityPath<?>... from)
JPQLQueryFactory
from
in interface JPQLQueryFactory
from
- frompublic JPAUpdateClause update(EntityPath<?> path)
JPQLQueryFactory
update
in interface JPQLQueryFactory
path
- entity to updatepublic JPAQuery<?> query()
QueryFactory
query
in interface QueryFactory<JPQLQuery<?>>
Copyright © 2007–2016 Querydsl. All rights reserved.