public class HibernateQueryFactory extends java.lang.Object implements JPQLQueryFactory
| Constructor and Description |
|---|
HibernateQueryFactory(JPQLTemplates templates,
org.hibernate.Session session) |
HibernateQueryFactory(JPQLTemplates templates,
java.util.function.Supplier<org.hibernate.Session> session) |
HibernateQueryFactory(org.hibernate.Session session) |
HibernateQueryFactory(java.util.function.Supplier<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
|
HibernateInsertClause |
insert(EntityPath<?> path)
Create a new INSERT clause
|
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<java.lang.Integer> |
selectOne()
Create a new JPQLQuery instance with the projection one
|
HibernateQuery<java.lang.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(java.util.function.Supplier<org.hibernate.Session> session)
public HibernateQueryFactory(JPQLTemplates templates, java.util.function.Supplier<org.hibernate.Session> session)
public HibernateDeleteClause delete(EntityPath<?> path)
JPQLQueryFactorydelete in interface JPQLQueryFactorypath - entity to delete frompublic <T> HibernateQuery<T> select(Expression<T> expr)
JPQLQueryFactoryselect in interface JPQLQueryFactoryexpr - projectionpublic HibernateQuery<Tuple> select(Expression<?>... exprs)
JPQLQueryFactoryselect in interface JPQLQueryFactoryexprs - projectionpublic <T> HibernateQuery<T> selectDistinct(Expression<T> expr)
JPQLQueryFactoryselectDistinct in interface JPQLQueryFactoryexpr - projectionpublic HibernateQuery<Tuple> selectDistinct(Expression<?>... exprs)
JPQLQueryFactoryselectDistinct in interface JPQLQueryFactoryexprs - projectionpublic HibernateQuery<java.lang.Integer> selectOne()
JPQLQueryFactoryselectOne in interface JPQLQueryFactorypublic HibernateQuery<java.lang.Integer> selectZero()
JPQLQueryFactoryselectZero in interface JPQLQueryFactorypublic <T> HibernateQuery<T> selectFrom(EntityPath<T> from)
JPQLQueryFactoryselectFrom in interface JPQLQueryFactoryfrom - projection and sourcepublic HibernateQuery<?> from(EntityPath<?> from)
JPQLQueryFactoryfrom in interface JPQLQueryFactoryfrom - frompublic HibernateQuery<?> from(EntityPath<?>... from)
JPQLQueryFactoryfrom in interface JPQLQueryFactoryfrom - frompublic HibernateUpdateClause update(EntityPath<?> path)
JPQLQueryFactoryupdate in interface JPQLQueryFactorypath - entity to updatepublic HibernateInsertClause insert(EntityPath<?> path)
JPQLQueryFactoryinsert in interface JPQLQueryFactorypath - entity to insert topublic HibernateQuery<?> query()
QueryFactoryquery in interface QueryFactory<JPQLQuery<?>>Copyright © 2007–2021 Querydsl. All rights reserved.