Interface LoadContext


public interface LoadContext
Controls the loading of reference objects for a query instance.
  • Method Details

    • secondaryQueriesMinBatchSize

      int secondaryQueriesMinBatchSize()
      Return the minimum batch size when using QueryIterator with query joins.
    • executeSecondaryQueries

      void executeSecondaryQueries(OrmQueryRequest<?> parentRequest, boolean forEach)
      Execute any secondary (+query) queries if there are any defined.
      Parameters:
      parentRequest - the originating query request
      forEach - set true when using findEach iteration
    • objectGraphNode

      ObjectGraphNode objectGraphNode(String path)
      Return the node for a given path which is used by AutoTune profiling.
    • persistenceContext

      PersistenceContext persistenceContext()
      Return the persistence context used by this query and future lazy loading.
    • register

      void register(String path, EntityBeanIntercept ebi)
      Register a Bean for lazy loading.
    • register

      void register(String path, EntityBeanIntercept ebi, BeanPropertyAssocOne<?> property)
      Register a Bean with inheritance.
    • register

      void register(String path, BeanPropertyAssocMany<?> many, BeanCollection<?> bc)
      Register a collection for lazy loading.
    • includeSecondary

      boolean includeSecondary(BeanPropertyAssocMany<?> many)
      Return true to include a many as a secondary query for unmodified.