Interface Queryable<S,Q extends com.github.rutledgepaulv.qbuilders.builders.QBuilder<Q>>

Type Parameters:
S - - return type
Q - - metadata type
All Known Subinterfaces:
AbstractGroupService<G,Q>, EntityChangelogService, EntitySchemaService, EntityService, GroupService, HierarchyChangelogService, HierarchyService, HierarchyVariablesChangelogService, PartitionResourceHistoryService, PartitionResourceService, PartitionService, SnapshotService, SystemSpecService, TagService, VariableChangelogService, VariableConfigChangelogService, VariableService
All Known Implementing Classes:
AbstractProvider, GroupProvider, HierarchyChangelogProvider, HierarchyVariablesChangelogProvider, PartitionResourceHistoryProvider

public interface Queryable<S,Q extends com.github.rutledgepaulv.qbuilders.builders.QBuilder<Q>>
Query interface defining methods available on all services used for searching. There are 2 methods: search for multiple values and search for one value.
  • Method Summary

    Modifier and Type
    Method
    Description
    findAll(com.github.rutledgepaulv.qbuilders.conditions.Condition<Q> condition)
    Searching for multiple values.
    findById(long id)
     
    findOne(com.github.rutledgepaulv.qbuilders.conditions.Condition<Q> condition)
    Searching for one value.
  • Method Details

    • findAll

      Set<S> findAll(com.github.rutledgepaulv.qbuilders.conditions.Condition<Q> condition)
      Searching for multiple values.
      Parameters:
      condition -
      Returns:
    • findOne

      Optional<S> findOne(com.github.rutledgepaulv.qbuilders.conditions.Condition<Q> condition)
      Searching for one value. If the metadata returns multiple values the exception is thrown (@see IllegalStateException)
      Parameters:
      condition -
      Returns:
      Optional with value or empty.
      Throws:
      IllegalStateException - if found multiple values.
    • findById

      Optional<S> findById(long id)