Class BinaryQueryResults
java.lang.Object
ch.tocco.nice2.persist.core.impl.hibernate.query.selection.interceptor.QueryResultImpl
ch.tocco.nice2.persist.core.impl.hibernate.query.selection.binary.interceptor.BinaryQueryResults
- All Implemented Interfaces:
QueryBuilderInterceptor.SelectionInterceptor.QueryResult
Special implementation of
QueryBuilderInterceptor.SelectionInterceptor.QueryResult
for AbstractToOneBinaryHandler
and AbstractToManyBinaryHandler
.
Because the BinaryData
instances are not loaded directly from the hibernate query, they are not present in
the result rows.
Therefore replacements are stored in a map and are applied later when the query results are mapped to the target
data structure.-
Nested Class Summary
Nested classes/interfaces inherited from class ch.tocco.nice2.persist.core.impl.hibernate.query.selection.interceptor.QueryResultImpl
QueryResultImpl.RowImpl
Nested classes/interfaces inherited from interface ch.tocco.nice2.persist.core.api.hibernate.query.QueryBuilderInterceptor.SelectionInterceptor.QueryResult
QueryBuilderInterceptor.SelectionInterceptor.QueryResult.Row
-
Constructor Summary
ConstructorDescriptionBinaryQueryResults
(List<Object[]> data, SelectionRegistry selectionRegistry, Map<Path, Map<Serializable, BinaryData>> replacements, Path modelKeyPath) -
Method Summary
Modifier and TypeMethodDescriptionprotected QueryResultImpl.RowImpl
createRow
(Object[] data, SelectionRegistry selectionRegistry) Methods inherited from class ch.tocco.nice2.persist.core.impl.hibernate.query.selection.interceptor.QueryResultImpl
findRowsWithValueAtPath, getValuesForPath
-
Constructor Details
-
BinaryQueryResults
public BinaryQueryResults(List<Object[]> data, SelectionRegistry selectionRegistry, Map<Path, Map<Serializable, BinaryData>> replacements, Path modelKeyPath)
-
-
Method Details
-
createRow
- Overrides:
createRow
in classQueryResultImpl
-