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)
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<java.lang.Integer> selectOne()
JPQLQueryFactory
selectOne
in interface JPQLQueryFactory
public HibernateQuery<java.lang.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 HibernateInsertClause insert(EntityPath<?> path)
JPQLQueryFactory
insert
in interface JPQLQueryFactory
path
- entity to insert topublic HibernateQuery<?> query()
QueryFactory
query
in interface QueryFactory<JPQLQuery<?>>
Copyright © 2007–2021 Querydsl. All rights reserved.