Package com.cloudimpl.outstack.runtime
Interface QueryOperations<R extends RootEntity>
- Type Parameters:
R-
- All Known Implementing Classes:
EntityContextProvider.Transaction,EntityQueryContextProvider.ReadOnlyTransaction,EventRepositoy,MemEventRepository
public interface QueryOperations<R extends RootEntity>
- Author:
- nuwan
-
Method Summary
Modifier and Type Method Description java.util.Collection<R>getAllByRootType(java.lang.Class<R> rootType, java.lang.String tenantId, Query.PagingRequest paging)<T extends ChildEntity<R>>
java.util.Collection<T>getAllChildByType(java.lang.Class<R> rootType, java.lang.String id, java.lang.Class<T> childType, java.lang.String tenantId, Query.PagingRequest paging)<T extends ChildEntity<R>>
java.util.Optional<T>getChildById(java.lang.Class<R> rootType, java.lang.String id, java.lang.Class<T> childType, java.lang.String childId, java.lang.String tenantId)java.util.Optional<R>getRootById(java.lang.Class<R> rootType, java.lang.String id, java.lang.String tenantId)
-
Method Details
-
getAllByRootType
java.util.Collection<R> getAllByRootType(java.lang.Class<R> rootType, java.lang.String tenantId, Query.PagingRequest paging) -
getRootById
-
getChildById
<T extends ChildEntity<R>> java.util.Optional<T> getChildById(java.lang.Class<R> rootType, java.lang.String id, java.lang.Class<T> childType, java.lang.String childId, java.lang.String tenantId) -
getAllChildByType
<T extends ChildEntity<R>> java.util.Collection<T> getAllChildByType(java.lang.Class<R> rootType, java.lang.String id, java.lang.Class<T> childType, java.lang.String tenantId, Query.PagingRequest paging)
-