Class QueryResultImpl
java.lang.Object
ch.tocco.nice2.persist.core.impl.hibernate.query.selection.interceptor.QueryResultImpl
- All Implemented Interfaces:
QueryBuilderInterceptor.SelectionInterceptor.QueryResult
- Direct Known Subclasses:
BinaryQueryResults
public class QueryResultImpl
extends Object
implements QueryBuilderInterceptor.SelectionInterceptor.QueryResult
Standard implementation of
QueryBuilderInterceptor.SelectionInterceptor.QueryResult
.
The underlying Object
[] is the query result returned by the hibernate query.
This is not the data structure that is returned to the user and always contains one object
per cell (to-many paths are represented by multiple rows).-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
Standard implementation ofQueryBuilderInterceptor.SelectionInterceptor.QueryResult.Row
that directly reads from / writes to the underlyingObject
[]Nested classes/interfaces inherited from interface ch.tocco.nice2.persist.core.api.hibernate.query.QueryBuilderInterceptor.SelectionInterceptor.QueryResult
QueryBuilderInterceptor.SelectionInterceptor.QueryResult.Row
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateRow
(Object[] data, SelectionRegistry selectionRegistry) findRowsWithValueAtPath
(Path path, Object value) <T> List
<T> getValuesForPath
(Path path)
-
Constructor Details
-
QueryResultImpl
-
-
Method Details
-
createRow
protected QueryBuilderInterceptor.SelectionInterceptor.QueryResult.Row createRow(Object[] data, SelectionRegistry selectionRegistry) -
getValuesForPath
- Specified by:
getValuesForPath
in interfaceQueryBuilderInterceptor.SelectionInterceptor.QueryResult
- Returns:
- a distinct list of all values found by the query for the given
Path
-
findRowsWithValueAtPath
public List<QueryBuilderInterceptor.SelectionInterceptor.QueryResult.Row> findRowsWithValueAtPath(Path path, Object value) - Specified by:
findRowsWithValueAtPath
in interfaceQueryBuilderInterceptor.SelectionInterceptor.QueryResult
- Returns:
- all result rows that contain the given value at the given
Path
-