Class QueryBuilderResultHelperServiceServiceImpl
java.lang.Object
ch.tocco.nice2.persist.core.impl.hibernate.QueryBuilderResultHelperServiceServiceImpl
- All Implemented Interfaces:
QueryBuilderResultHelperService
@Component
public class QueryBuilderResultHelperServiceServiceImpl
extends Object
implements QueryBuilderResultHelperService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> Set
<T> resolveToMany
(Map map, String pathToResolve, String rootModel) resolve (nested) path from query builder result map and return a set of result items.<T> T
resolveToOne
(Map map, String pathToResolve, String rootModel) resolve (nested) path from query builder result map and return result item.
-
Constructor Details
-
QueryBuilderResultHelperServiceServiceImpl
-
-
Method Details
-
resolveToMany
Description copied from interface:QueryBuilderResultHelperService
resolve (nested) path from query builder result map and return a set of result items. null values and duplicates are filtered out. last path step must be a field- Specified by:
resolveToMany
in interfaceQueryBuilderResultHelperService
-
resolveToOne
Description copied from interface:QueryBuilderResultHelperService
resolve (nested) path from query builder result map and return result item. only to one relations are allowed, else anIllegalArgumentException
is thrown. last path step must be a field- Specified by:
resolveToOne
in interfaceQueryBuilderResultHelperService
-