public final class DefaultQueryHandler extends 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,
String alias,
Class<?> type)
Add the given entity to the given native query
|
void |
addScalar(javax.persistence.Query query,
String alias,
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,
FactoryExpression<?> projection)
Iterate 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,
String alias,
Class<?> type)
QueryHandleraddEntity in interface QueryHandlerquery - queryalias - aliastype - typepublic void addScalar(javax.persistence.Query query,
String alias,
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
FactoryExpression<?> projection)
QueryHandleriterate 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–2015 Mysema Ltd. All rights reserved.