Package com.querydsl.jpa
Interface QueryHandler
-
- All Known Implementing Classes:
DefaultQueryHandler,HibernateHandler
public interface QueryHandlerQueryHandler provides injection of provider specific functionality into the query logic- Author:
- tiwe
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddEntity(jakarta.persistence.Query query, java.lang.String alias, java.lang.Class<?> type)Add the given entity to the given native queryvoidaddScalar(jakarta.persistence.Query query, java.lang.String alias, java.lang.Class<?> type)Add the given scalar to the given native querybooleancreateNativeQueryTyped()Return whether native queries should be created as typed queries<T> com.mysema.commons.lang.CloseableIterator<T>iterate(jakarta.persistence.Query query, @Nullable FactoryExpression<?> projection)Iterate the results with the optional projection<T> java.util.stream.Stream<T>stream(jakarta.persistence.Query query, @Nullable FactoryExpression<?> projection)Stream the results with the optional projectionbooleantransform(jakarta.persistence.Query query, FactoryExpression<?> projection)Transform the results of the given query using the given factory expressionbooleanwrapEntityProjections()Return whether entity projections need to be wrapped
-
-
-
Method Detail
-
createNativeQueryTyped
boolean createNativeQueryTyped()
Return whether native queries should be created as typed queries- Returns:
- whether native queries should be created as typed queries
-
iterate
<T> com.mysema.commons.lang.CloseableIterator<T> iterate(jakarta.persistence.Query query, @Nullable @Nullable FactoryExpression<?> projection)Iterate the results with the optional projection- Parameters:
query- query- Returns:
- iterator
-
stream
<T> java.util.stream.Stream<T> stream(jakarta.persistence.Query query, @Nullable @Nullable FactoryExpression<?> projection)Stream the results with the optional projection- Parameters:
query- query- Returns:
- stream
-
addScalar
void addScalar(jakarta.persistence.Query query, java.lang.String alias, java.lang.Class<?> type)Add the given scalar to the given native query- Parameters:
query- queryalias- aliastype- type
-
addEntity
void addEntity(jakarta.persistence.Query query, java.lang.String alias, java.lang.Class<?> type)Add the given entity to the given native query- Parameters:
query- queryalias- aliastype- type
-
transform
boolean transform(jakarta.persistence.Query query, FactoryExpression<?> projection)Transform the results of the given query using the given factory expression- Parameters:
query- queryprojection- projection- Returns:
- true, if query as been modified
-
wrapEntityProjections
boolean wrapEntityProjections()
Return whether entity projections need to be wrapped- Returns:
- whether entity projections need to be wrapped
-
-