Interface LoadedValuesCollector


@Incubating(since="6.0", group="sql-execution") public interface LoadedValuesCollector
Used to collect entity and collection values which are loaded as part of JdbcValues processing. Kept as part of JdbcValuesSourceProcessingState
  • Method Details

    • registerEntity

      void registerEntity(NavigablePath navigablePath, EntityMappingType entityDescriptor, EntityKey entityKey)
      Register a loading entity.
      Parameters:
      navigablePath - The NavigablePath relative to the SQL AST used to load the entity
      entityDescriptor - The descriptor for the entity being loaded.
      entityKey - The EntityKey for the entity being loaded
    • registerEntity

      default void registerEntity(NavigablePath navigablePath, EntityMappingType entityDescriptor, EntityKey entityKey, boolean reloaded)
      Register an entity, indicating whether it was already managed before this load.
    • registerCollection

      void registerCollection(NavigablePath navigablePath, PluralAttributeMapping collectionDescriptor, CollectionKey collectionKey)
      Register a loading collection.
      Parameters:
      navigablePath - The NavigablePath relative to the SQL AST used to load the entity
      collectionDescriptor - The descriptor for the collection being loaded.
      collectionKey - The CollectionKey for the collection being loaded
    • getCollectedEntities

      Access to all root entities loaded.
    • getCollectedCollections

      Access to all collection loaded.