public final class DefaultQueryHandler extends java.lang.Object implements QueryHandler
DefaultQueryHandler is the default implementation of the QueryHandler interface| Modifier and Type | Field and Description |
|---|---|
static QueryHandler |
DEFAULT |
| Modifier 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
|
public static final QueryHandler DEFAULT
public void addEntity(javax.persistence.Query query,
java.lang.String alias,
java.lang.Class<?> type)
QueryHandleraddEntity in interface QueryHandlerquery - queryalias - aliastype - typepublic void addScalar(javax.persistence.Query query,
java.lang.String alias,
java.lang.Class<?> type)
QueryHandleraddScalar in interface QueryHandlerquery - queryalias - aliastype - typepublic boolean createNativeQueryTyped()
QueryHandlercreateNativeQueryTyped in interface QueryHandlerpublic <T> com.mysema.commons.lang.CloseableIterator<T> iterate(javax.persistence.Query query,
@Nullable
@Nullable FactoryExpression<?> projection)
QueryHandleriterate in interface QueryHandlerquery - querypublic <T> java.util.stream.Stream<T> stream(javax.persistence.Query query,
@Nullable
@Nullable FactoryExpression<?> projection)
QueryHandlerstream in interface QueryHandlerquery - querypublic boolean transform(javax.persistence.Query query,
FactoryExpression<?> projection)
QueryHandlertransform in interface QueryHandlerquery - queryprojection - projectionpublic boolean wrapEntityProjections()
QueryHandlerwrapEntityProjections in interface QueryHandlerCopyright © 2007–2021 Querydsl. All rights reserved.