public class HibernateHandler extends java.lang.Object implements QueryHandler
HibernateHandler
is the QueryHandler
implementation for HibernateConstructor and Description |
---|
HibernateHandler() |
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,
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 void addEntity(javax.persistence.Query query, java.lang.String alias, java.lang.Class<?> type)
QueryHandler
addEntity
in interface QueryHandler
query
- queryalias
- aliastype
- typepublic void addScalar(javax.persistence.Query query, java.lang.String alias, java.lang.Class<?> type)
QueryHandler
addScalar
in interface QueryHandler
query
- queryalias
- aliastype
- typepublic boolean createNativeQueryTyped()
QueryHandler
createNativeQueryTyped
in interface QueryHandler
public <T> com.mysema.commons.lang.CloseableIterator<T> iterate(javax.persistence.Query query, FactoryExpression<?> projection)
QueryHandler
iterate
in interface QueryHandler
query
- querypublic <T> java.util.stream.Stream<T> stream(javax.persistence.Query query, @Nullable @Nullable FactoryExpression<?> projection)
QueryHandler
stream
in interface QueryHandler
query
- querypublic boolean transform(javax.persistence.Query query, FactoryExpression<?> projection)
QueryHandler
transform
in interface QueryHandler
query
- queryprojection
- projectionpublic boolean wrapEntityProjections()
QueryHandler
wrapEntityProjections
in interface QueryHandler
Copyright © 2007–2021 Querydsl. All rights reserved.