Class ExternalEntityQueryProvider<R extends RootEntity>

java.lang.Object
com.cloudimpl.outstack.runtime.ExternalEntityQueryProvider<R>
Type Parameters:
R -

public class ExternalEntityQueryProvider<R extends RootEntity>
extends java.lang.Object
Author:
nuwan
  • Constructor Details

    • ExternalEntityQueryProvider

      public ExternalEntityQueryProvider​(QueryOperations<R> queryOperations, java.lang.Class<R> type, java.lang.String tenantId)
  • Method Details

    • getAllRootByType

      public ResultSet<R> getAllRootByType​(Query.PagingRequest pageRequest)
    • getRoot

      public java.util.Optional<R> getRoot​(java.lang.String id)
    • getChild

      public <T extends ChildEntity<R>> java.util.Optional<T> getChild​(java.lang.String rootId, java.lang.Class<T> childType, java.lang.String childId)
    • getChildsByType

      public <T extends ChildEntity<R>> ResultSet<T> getChildsByType​(java.lang.String rootId, java.lang.Class<T> childType, Query.PagingRequest pageRequest)
    • getChildsByType

      public <T extends ChildEntity<R>> java.util.Collection<T> getChildsByType​(java.lang.String rootId, java.lang.Class<T> childType)