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 Summary

    Constructors
    Constructor Description
    ExternalEntityQueryProvider​(QueryOperations<R> queryOperations, java.lang.Class<R> type, java.util.Collection<java.lang.String> tenantIds)  
  • Method Summary

    Modifier and Type Method Description
    ResultSet<R> getAllRootByType​(Query.PagingRequest pageRequest)  
    <T extends ChildEntity<R>>
    java.util.Optional<T>
    getChild​(java.lang.String rootId, java.lang.Class<T> childType, java.lang.String childId)  
    <T extends ChildEntity<R>>
    java.util.Collection<T>
    getChildsByType​(java.lang.String rootId, java.lang.Class<T> childType)  
    <T extends ChildEntity<R>>
    ResultSet<T>
    getChildsByType​(java.lang.String rootId, java.lang.Class<T> childType, Query.PagingRequest pageRequest)  
    java.util.Optional<R> getRoot​(java.lang.String id)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ExternalEntityQueryProvider

      public ExternalEntityQueryProvider​(QueryOperations<R> queryOperations, java.lang.Class<R> type, java.util.Collection<java.lang.String> tenantIds)
  • 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)