Package com.querydsl.jpa.impl
Class JPAQueryFactory
java.lang.Object
com.querydsl.jpa.impl.JPAQueryFactory
- All Implemented Interfaces:
QueryFactory<JPQLQuery<?>>,JPQLQueryFactory
Factory class for query and DML clause creation
- Author:
- tiwe
-
Constructor Summary
ConstructorsConstructorDescriptionJPAQueryFactory(JPQLTemplates templates, Supplier<javax.persistence.EntityManager> entityManager) JPAQueryFactory(JPQLTemplates templates, javax.persistence.EntityManager entityManager) JPAQueryFactory(Supplier<javax.persistence.EntityManager> entityManager) JPAQueryFactory(javax.persistence.EntityManager entityManager) -
Method Summary
Modifier and TypeMethodDescriptiondelete(EntityPath<?> path) Create a new DELETE clauseJPAQuery<?>from(EntityPath<?> from) Create a new Query with the given sourceJPAQuery<?>from(EntityPath<?>... from) Create a new Query with the given sourceinsert(EntityPath<?> path) Create a new INSERT clauseJPAQuery<?>query()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 projectionselectDistinct(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 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
-
JPAQueryFactory
public JPAQueryFactory(javax.persistence.EntityManager entityManager) -
JPAQueryFactory
-
JPAQueryFactory
-
JPAQueryFactory
public JPAQueryFactory(JPQLTemplates templates, Supplier<javax.persistence.EntityManager> entityManager)
-
-
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<?>>
-