Interface QueryBuilderResultHelperService
- All Known Implementing Classes:
QueryBuilderResultHelperServiceImpl
public interface QueryBuilderResultHelperService
-
Method Summary
Modifier and TypeMethodDescriptionresolveEntities(Map map, String pathToResolve, String rootModel) resolve (nested) path from query builder result map and return entities.@Nullable EntityresolveEntity(Map map, String pathToResolve, String rootModel) resolve (nested) path from query builder result map and return entities.<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> TresolveToOne(Map map, String pathToResolve, String rootModel) resolve (nested) path from query builder result map and return result item.
-
Method Details
-
resolveToMany
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 -
resolveToOne
resolve (nested) path from query builder result map and return result item. only to one relations are allowed, else anIllegalArgumentExceptionis thrown. last path step must be a field -
resolveEntity
resolve (nested) path from query builder result map and return entities. pathToResolve must end in a relation -
resolveEntities
resolve (nested) path from query builder result map and return entities. pathToResolve must end in a relation
-