Interface QueryDsl
-
- All Superinterfaces:
com.holonplatform.core.datastore.DatastoreCommodity,Serializable
- All Known Implementing Classes:
DefaultQueryDslCommodity
public interface QueryDsl extends com.holonplatform.core.datastore.DatastoreCommodityADatastoreCommodityfor JPADatastoreQueryDSL integration.- Since:
- 5.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description JpaDeleteClausedelete(com.querydsl.core.types.EntityPath<?> entity)Create a new DELETE clause.default JpaQuery<?>from(com.querydsl.core.types.EntityPath<?> from)Create a newJpaQuerywith the given source.default JpaQuery<?>from(com.querydsl.core.types.EntityPath<?>... froms)Create a newJpaQuerywith the given sources.JpaQuery<?>query()Create a new query.default JpaQuery<com.querydsl.core.Tuple>select(com.querydsl.core.types.Expression<?>... expressions)Create a newJpaQueryinstance with the given projection.default <T> JpaQuery<T>select(com.querydsl.core.types.Expression<T> expression)Create a newJpaQueryinstance with the given projection.default JpaQuery<com.querydsl.core.Tuple>selectDistinct(com.querydsl.core.types.Expression<?>... expressions)Create a newJpaQueryinstance with the given distinct projection.default <T> JpaQuery<T>selectDistinct(com.querydsl.core.types.Expression<T> expression)Create a newJpaQueryinstance with the given distinct projection.default <T> JpaQuery<T>selectFrom(com.querydsl.core.types.EntityPath<T> from)Create a newJpaQueryinstance with the given source and projection.default JpaQuery<Integer>selectOne()Create a newJpaQueryinstance with the projection one.default JpaQuery<Integer>selectZero()Create a newJpaQueryinstance with the projection zero.JpaUpdateClauseupdate(com.querydsl.core.types.EntityPath<?> entity)Create a new UPDATE clause.
-
-
-
Method Detail
-
select
default <T> JpaQuery<T> select(com.querydsl.core.types.Expression<T> expression)
Create a newJpaQueryinstance with the given projection.- Type Parameters:
T- Expression and query result type- Parameters:
expression- projection- Returns:
- A new query with given projection
-
select
default JpaQuery<com.querydsl.core.Tuple> select(com.querydsl.core.types.Expression<?>... expressions)
Create a newJpaQueryinstance with the given projection.- Parameters:
expressions- projections- Returns:
- A new query with given projection
-
selectDistinct
default <T> JpaQuery<T> selectDistinct(com.querydsl.core.types.Expression<T> expression)
Create a newJpaQueryinstance with the given distinct projection.- Type Parameters:
T- Expression and query result type- Parameters:
expression- projection- Returns:
- A new query with given projection
-
selectDistinct
default JpaQuery<com.querydsl.core.Tuple> selectDistinct(com.querydsl.core.types.Expression<?>... expressions)
Create a newJpaQueryinstance with the given distinct projection.- Parameters:
expressions- projection- Returns:
- A new query with given projection
-
selectOne
default JpaQuery<Integer> selectOne()
Create a newJpaQueryinstance with the projection one.- Returns:
- A new query with given projection
-
selectZero
default JpaQuery<Integer> selectZero()
Create a newJpaQueryinstance with the projection zero.- Returns:
- A new query with given projection
-
selectFrom
default <T> JpaQuery<T> selectFrom(com.querydsl.core.types.EntityPath<T> from)
Create a newJpaQueryinstance with the given source and projection.- Type Parameters:
T- Projection and source type- Parameters:
from- projection and source- Returns:
- A new query with given source and projection
-
from
default JpaQuery<?> from(com.querydsl.core.types.EntityPath<?> from)
Create a newJpaQuerywith the given source.- Parameters:
from- Query source- Returns:
- A new query with given source
-
from
default JpaQuery<?> from(com.querydsl.core.types.EntityPath<?>... froms)
Create a newJpaQuerywith the given sources.- Parameters:
froms- Query sources- Returns:
- A new query with given source
-
update
JpaUpdateClause update(com.querydsl.core.types.EntityPath<?> entity)
Create a new UPDATE clause.- Parameters:
entity- Entity to update (not null)- Returns:
- A new update clause
-
delete
JpaDeleteClause delete(com.querydsl.core.types.EntityPath<?> entity)
Create a new DELETE clause.- Parameters:
entity- Entity to delete from (not null)- Returns:
- A new delete clause
-
-