Package com.querydsl.jpa
Class DefaultQueryHandler
java.lang.Object
com.querydsl.jpa.DefaultQueryHandler
- All Implemented Interfaces:
QueryHandler
DefaultQueryHandler is the default implementation of the QueryHandler interface- Author:
- tiwe
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd the given entity to the given native queryvoidAdd the given scalar to the given native querybooleanReturn whether native queries should be created as typed queries<T> com.mysema.commons.lang.CloseableIterator<T>iterate(javax.persistence.Query query, @Nullable FactoryExpression<?> projection) Iterate the results with the optional projection<T> Stream<T>stream(javax.persistence.Query query, @Nullable FactoryExpression<?> projection) Stream the results with the optional projectionbooleantransform(javax.persistence.Query query, FactoryExpression<?> projection) Transform the results of the given query using the given factory expressionbooleanReturn whether entity projections need to be wrapped
-
Field Details
-
DEFAULT
-
-
Method Details
-
addEntity
Description copied from interface:QueryHandlerAdd the given entity to the given native query- Specified by:
addEntityin interfaceQueryHandler- Parameters:
query- queryalias- aliastype- type
-
addScalar
Description copied from interface:QueryHandlerAdd the given scalar to the given native query- Specified by:
addScalarin interfaceQueryHandler- Parameters:
query- queryalias- aliastype- type
-
createNativeQueryTyped
public boolean createNativeQueryTyped()Description copied from interface:QueryHandlerReturn whether native queries should be created as typed queries- Specified by:
createNativeQueryTypedin interfaceQueryHandler- Returns:
- whether native queries should be created as typed queries
-
iterate
public <T> com.mysema.commons.lang.CloseableIterator<T> iterate(javax.persistence.Query query, @Nullable @Nullable FactoryExpression<?> projection) Description copied from interface:QueryHandlerIterate the results with the optional projection- Specified by:
iteratein interfaceQueryHandler- Parameters:
query- query- Returns:
- iterator
-
stream
public <T> Stream<T> stream(javax.persistence.Query query, @Nullable @Nullable FactoryExpression<?> projection) Description copied from interface:QueryHandlerStream the results with the optional projection- Specified by:
streamin interfaceQueryHandler- Parameters:
query- query- Returns:
- stream
-
transform
Description copied from interface:QueryHandlerTransform the results of the given query using the given factory expression- Specified by:
transformin interfaceQueryHandler- Parameters:
query- queryprojection- projection- Returns:
- true, if query as been modified
-
wrapEntityProjections
public boolean wrapEntityProjections()Description copied from interface:QueryHandlerReturn whether entity projections need to be wrapped- Specified by:
wrapEntityProjectionsin interfaceQueryHandler- Returns:
- whether entity projections need to be wrapped
-