Package org.hibernate.sql.exec.spi
Interface LoadedValuesCollector
public interface LoadedValuesCollector
Used to collect entity and collection values which are loaded as part of
JdbcValues processing.
Kept as part of JdbcValuesSourceProcessingState
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final record
Details about a loaded collection.static final record
Details about a loaded entity.static interface
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clears the state of the collector.Access to all collection loaded.Access to all non-root entities (join fetches e.g.) loaded.Access to all root entities loaded.void
registerCollection
(NavigablePath navigablePath, PluralAttributeMapping collectionDescriptor, CollectionKey collectionKey) Register a loading collection.void
registerEntity
(NavigablePath navigablePath, EntityMappingType entityDescriptor, EntityKey entityKey) Register a loading entity.
-
Method Details
-
clear
void clear()Clears the state of the collector.- Implementation Specification:
- In some cases, the collector may be cached as part of a JdbcSelect being cached (see JdbcSelect.getLoadedValuesCollector(). This method allows clearing of the internal state after execution of the JdbcSelect.
-
getCollectedRootEntities
List<LoadedValuesCollector.LoadedEntityRegistration> getCollectedRootEntities()Access to all root entities loaded. -
getCollectedNonRootEntities
List<LoadedValuesCollector.LoadedEntityRegistration> getCollectedNonRootEntities()Access to all non-root entities (join fetches e.g.) loaded. -
getCollectedCollections
List<LoadedValuesCollector.LoadedCollectionRegistration> getCollectedCollections()Access to all collection loaded.