public interface QueryHandler
QueryHandle
r provides injection of provider specific functionality into the query logicModifier and Type | Method and Description |
---|---|
void |
addEntity(javax.persistence.Query query,
java.lang.String alias,
java.lang.Class<?> type)
Add the given entity to the given native query
|
void |
addScalar(javax.persistence.Query query,
java.lang.String alias,
java.lang.Class<?> type)
Add the given scalar to the given native query
|
boolean |
createNativeQueryTyped()
Return 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> java.util.stream.Stream<T> |
stream(javax.persistence.Query query,
@Nullable FactoryExpression<?> projection)
Stream the results with the optional projection
|
boolean |
transform(javax.persistence.Query query,
FactoryExpression<?> projection)
Transform the results of the given query using the given factory expression
|
boolean |
wrapEntityProjections()
Return whether entity projections need to be wrapped
|
boolean createNativeQueryTyped()
<T> com.mysema.commons.lang.CloseableIterator<T> iterate(javax.persistence.Query query, @Nullable @Nullable FactoryExpression<?> projection)
query
- query<T> java.util.stream.Stream<T> stream(javax.persistence.Query query, @Nullable @Nullable FactoryExpression<?> projection)
query
- queryvoid addScalar(javax.persistence.Query query, java.lang.String alias, java.lang.Class<?> type)
query
- queryalias
- aliastype
- typevoid addEntity(javax.persistence.Query query, java.lang.String alias, java.lang.Class<?> type)
query
- queryalias
- aliastype
- typeboolean transform(javax.persistence.Query query, FactoryExpression<?> projection)
query
- queryprojection
- projectionboolean wrapEntityProjections()
Copyright © 2007–2021 Querydsl. All rights reserved.