Interface Queryable<S,Q extends com.github.rutledgepaulv.qbuilders.builders.QBuilder<Q>>
- Type Parameters:
S- - return typeQ- - 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
-
Method Details
-
findAll
Searching for multiple values.- Parameters:
condition-- Returns:
-
findOne
Searching for one value. If the metadata returns multiple values the exception is thrown (@seeIllegalStateException)- Parameters:
condition-- Returns:
- Optional with value or empty.
- Throws:
IllegalStateException- if found multiple values.
-
findById
-