Package com.querydsl.jpa
Interface JPQLQueryFactory
- All Superinterfaces:
QueryFactory<JPQLQuery<?>>
- All Known Implementing Classes:
HibernateQueryFactory,JPAQueryFactory
Common interface for JPA related QueryFactory implementations
- Author:
- tiwe
-
Method Summary
Modifier and TypeMethodDescriptionDeleteClause<?>delete(EntityPath<?> path) Create a new DELETE clauseJPQLQuery<?>from(EntityPath<?> from) Create a new Query with the given sourceJPQLQuery<?>from(EntityPath<?>... from) Create a new Query with the given sourceInsertClause<?>insert(EntityPath<?> path) Create a new INSERT clauseselect(Expression<?>... exprs) Create a new JPQLQuery instance with the given projection<T> JPQLQuery<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> JPQLQuery<T>selectDistinct(Expression<T> expr) Create a new JPQLQuery instance with the given projection<T> JPQLQuery<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 zeroUpdateClause<?>update(EntityPath<?> path) Create a new UPDATE clauseMethods inherited from interface com.querydsl.core.QueryFactory
query
-
Method Details
-
delete
Create a new DELETE clause- Parameters:
path- entity to delete from- Returns:
- delete clause
-
select
Create a new JPQLQuery instance with the given projection- Type Parameters:
T-- Parameters:
expr- projection- Returns:
- select(expr)
-
select
Create a new JPQLQuery instance with the given projection- Parameters:
exprs- projection- Returns:
- select(exprs)
-
selectDistinct
Create a new JPQLQuery instance with the given projection- Type Parameters:
T-- Parameters:
expr- projection- Returns:
- select(distinct expr)
-
selectDistinct
Create a new JPQLQuery instance with the given projection- Parameters:
exprs- projection- Returns:
- select(distinct exprs)
-
selectOne
Create a new JPQLQuery instance with the projection one- Returns:
- select(1)
-
selectZero
Create a new JPQLQuery instance with the projection zero- Returns:
- select(0)
-
selectFrom
Create a new JPQLQuery instance with the given source and projection- Type Parameters:
T-- Parameters:
from- projection and source- Returns:
- select(from).from(from)
-
from
Create a new Query with the given source- Parameters:
from- from- Returns:
- from(from)
-
from
Create a new Query with the given source- Parameters:
from- from- Returns:
- from(from)
-
update
Create a new UPDATE clause- Parameters:
path- entity to update- Returns:
- update clause
-
insert
Create a new INSERT clause- Parameters:
path- entity to insert to- Returns:
- insert clause
-