Package com.querydsl.jpa.hibernate
Class HibernateQueryFactory
java.lang.Object
com.querydsl.jpa.hibernate.HibernateQueryFactory
- All Implemented Interfaces:
QueryFactory<JPQLQuery<?>>,JPQLQueryFactory
Factory class for query and DML clause creation
- Author:
- tiwe
-
Constructor Summary
ConstructorsConstructorDescriptionHibernateQueryFactory(JPQLTemplates templates, Supplier<org.hibernate.Session> session) HibernateQueryFactory(JPQLTemplates templates, org.hibernate.Session session) HibernateQueryFactory(Supplier<org.hibernate.Session> session) HibernateQueryFactory(org.hibernate.Session session) -
Method Summary
Modifier and TypeMethodDescriptiondelete(EntityPath<?> path) Create a new DELETE clausefrom(EntityPath<?> from) Create a new Query with the given sourcefrom(EntityPath<?>... from) Create a new Query with the given sourceinsert(EntityPath<?> path) Create a new INSERT clausequery()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 projectionselectDistinct(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 projectionCreate a new JPQLQuery instance with the projection oneCreate a new JPQLQuery instance with the projection zeroupdate(EntityPath<?> path) Create a new UPDATE clause
-
Constructor Details
-
HibernateQueryFactory
public HibernateQueryFactory(org.hibernate.Session session) -
HibernateQueryFactory
-
HibernateQueryFactory
-
HibernateQueryFactory
-
-
Method Details
-
delete
Description copied from interface:JPQLQueryFactoryCreate a new DELETE clause- Specified by:
deletein interfaceJPQLQueryFactory- Parameters:
path- entity to delete from- Returns:
- delete clause
-
select
Description copied from interface:JPQLQueryFactoryCreate a new JPQLQuery instance with the given projection- Specified by:
selectin interfaceJPQLQueryFactory- Parameters:
expr- projection- Returns:
- select(expr)
-
select
Description copied from interface:JPQLQueryFactoryCreate a new JPQLQuery instance with the given projection- Specified by:
selectin interfaceJPQLQueryFactory- Parameters:
exprs- projection- Returns:
- select(exprs)
-
selectDistinct
Description copied from interface:JPQLQueryFactoryCreate a new JPQLQuery instance with the given projection- Specified by:
selectDistinctin interfaceJPQLQueryFactory- Parameters:
expr- projection- Returns:
- select(distinct expr)
-
selectDistinct
Description copied from interface:JPQLQueryFactoryCreate a new JPQLQuery instance with the given projection- Specified by:
selectDistinctin interfaceJPQLQueryFactory- Parameters:
exprs- projection- Returns:
- select(distinct exprs)
-
selectOne
Description copied from interface:JPQLQueryFactoryCreate a new JPQLQuery instance with the projection one- Specified by:
selectOnein interfaceJPQLQueryFactory- Returns:
- select(1)
-
selectZero
Description copied from interface:JPQLQueryFactoryCreate a new JPQLQuery instance with the projection zero- Specified by:
selectZeroin interfaceJPQLQueryFactory- Returns:
- select(0)
-
selectFrom
Description copied from interface:JPQLQueryFactoryCreate a new JPQLQuery instance with the given source and projection- Specified by:
selectFromin interfaceJPQLQueryFactory- Parameters:
from- projection and source- Returns:
- select(from).from(from)
-
from
Description copied from interface:JPQLQueryFactoryCreate a new Query with the given source- Specified by:
fromin interfaceJPQLQueryFactory- Parameters:
from- from- Returns:
- from(from)
-
from
Description copied from interface:JPQLQueryFactoryCreate a new Query with the given source- Specified by:
fromin interfaceJPQLQueryFactory- Parameters:
from- from- Returns:
- from(from)
-
update
Description copied from interface:JPQLQueryFactoryCreate a new UPDATE clause- Specified by:
updatein interfaceJPQLQueryFactory- Parameters:
path- entity to update- Returns:
- update clause
-
insert
Description copied from interface:JPQLQueryFactoryCreate a new INSERT clause- Specified by:
insertin interfaceJPQLQueryFactory- Parameters:
path- entity to insert to- Returns:
- insert clause
-
query
- Specified by:
queryin interfaceQueryFactory<JPQLQuery<?>>
-