Interface QueryBuilderResultHelperService

All Known Implementing Classes:
QueryBuilderResultHelperServiceImpl

public interface QueryBuilderResultHelperService
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    resolveEntities(Map map, String pathToResolve, String rootModel)
    resolve (nested) path from query builder result map and return entities.
    @Nullable Entity
    resolveEntity(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> T
    resolveToOne(Map map, String pathToResolve, String rootModel)
    resolve (nested) path from query builder result map and return result item.
  • Method Details Link icon

    • resolveToMany Link icon

      <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. null values and duplicates are filtered out. last path step must be a field
    • resolveToOne Link icon

      @Nullable <T> T resolveToOne(Map map, String pathToResolve, String rootModel)
      resolve (nested) path from query builder result map and return result item. only to one relations are allowed, else an IllegalArgumentException is thrown. last path step must be a field
    • resolveEntity Link icon

      @Nullable @Nullable Entity resolveEntity(Map map, String pathToResolve, String rootModel)
      resolve (nested) path from query builder result map and return entities. pathToResolve must end in a relation
    • resolveEntities Link icon

      Set<Entity> resolveEntities(Map map, String pathToResolve, String rootModel)
      resolve (nested) path from query builder result map and return entities. pathToResolve must end in a relation