public class HibernateQueryFactory extends Object implements JPQLQueryFactory
Constructor and Description |
---|
HibernateQueryFactory(JPQLTemplates templates,
javax.inject.Provider<org.hibernate.Session> session) |
HibernateQueryFactory(JPQLTemplates templates,
org.hibernate.Session session) |
HibernateQueryFactory(javax.inject.Provider<org.hibernate.Session> session) |
HibernateQueryFactory(org.hibernate.Session session) |
Modifier and Type | Method and Description |
---|---|
HibernateDeleteClause |
delete(EntityPath<?> path)
Create a new DELETE clause
|
HibernateQuery<?> |
from(EntityPath<?>... from)
Create a new Query with the given source
|
HibernateQuery<?> |
from(EntityPath<?> from)
Create a new Query with the given source
|
HibernateQuery<?> |
query()
Create a new Query
|
HibernateQuery<Tuple> |
select(Expression<?>... exprs)
Create a new JPQLQuery instance with the given projection
|
<T> HibernateQuery<T> |
select(Expression<T> expr)
Create a new JPQLQuery instance with the given projection
|
HibernateQuery<Tuple> |
selectDistinct(Expression<?>... exprs)
Create a new JPQLQuery instance with the given projection
|
<T> HibernateQuery<T> |
selectDistinct(Expression<T> expr)
Create a new JPQLQuery instance with the given projection
|
<T> HibernateQuery<T> |
selectFrom(EntityPath<T> from)
Create a new JPQLQuery instance with the given source and projection
|
HibernateQuery<Integer> |
selectOne()
Create a new JPQLQuery instance with the projection one
|
HibernateQuery<Integer> |
selectZero()
Create a new JPQLQuery instance with the projection zero
|
HibernateUpdateClause |
update(EntityPath<?> path)
Create a new UPDATE clause
|
public HibernateQueryFactory(org.hibernate.Session session)
public HibernateQueryFactory(JPQLTemplates templates, org.hibernate.Session session)
public HibernateQueryFactory(javax.inject.Provider<org.hibernate.Session> session)
public HibernateQueryFactory(JPQLTemplates templates, javax.inject.Provider<org.hibernate.Session> session)
public HibernateDeleteClause delete(EntityPath<?> path)
JPQLQueryFactory
delete
in interface JPQLQueryFactory
path
- entity to delete frompublic <T> HibernateQuery<T> select(Expression<T> expr)
JPQLQueryFactory
select
in interface JPQLQueryFactory
expr
- projectionpublic HibernateQuery<Tuple> select(Expression<?>... exprs)
JPQLQueryFactory
select
in interface JPQLQueryFactory
exprs
- projectionpublic <T> HibernateQuery<T> selectDistinct(Expression<T> expr)
JPQLQueryFactory
selectDistinct
in interface JPQLQueryFactory
expr
- projectionpublic HibernateQuery<Tuple> selectDistinct(Expression<?>... exprs)
JPQLQueryFactory
selectDistinct
in interface JPQLQueryFactory
exprs
- projectionpublic HibernateQuery<Integer> selectOne()
JPQLQueryFactory
selectOne
in interface JPQLQueryFactory
public HibernateQuery<Integer> selectZero()
JPQLQueryFactory
selectZero
in interface JPQLQueryFactory
public <T> HibernateQuery<T> selectFrom(EntityPath<T> from)
JPQLQueryFactory
selectFrom
in interface JPQLQueryFactory
from
- projection and sourcepublic HibernateQuery<?> from(EntityPath<?> from)
JPQLQueryFactory
from
in interface JPQLQueryFactory
from
- frompublic HibernateQuery<?> from(EntityPath<?>... from)
JPQLQueryFactory
from
in interface JPQLQueryFactory
from
- frompublic HibernateUpdateClause update(EntityPath<?> path)
JPQLQueryFactory
update
in interface JPQLQueryFactory
path
- entity to updatepublic HibernateQuery<?> query()
QueryFactory
query
in interface QueryFactory<JPQLQuery<?>>
Copyright © 2007–2016 Querydsl. All rights reserved.