Class LoadingCollectionEntryImpl
- java.lang.Object
-
- org.hibernate.sql.results.internal.LoadingCollectionEntryImpl
-
- All Implemented Interfaces:
LoadingCollectionEntry
public class LoadingCollectionEntryImpl extends Object implements LoadingCollectionEntry
Represents a collection currently being loaded.
-
-
Constructor Summary
Constructors Constructor Description LoadingCollectionEntryImpl(CollectionPersister collectionDescriptor, CollectionInitializer initializer, Object key, PersistentCollection<?> collectionInstance)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
finishLoading(ExecutionContext executionContext)
Complete the loadCollectionPersister
getCollectionDescriptor()
The descriptor for the collection being loadedPersistentCollection<?>
getCollectionInstance()
The collection instance being loadedCollectionInitializer
getInitializer()
Access to the initializer that is responsible for initializing this collectionObject
getKey()
The collection key.void
load(Consumer<List<Object>> loadingEntryConsumer)
Callback for row loading.String
toString()
-
-
-
Constructor Detail
-
LoadingCollectionEntryImpl
public LoadingCollectionEntryImpl(CollectionPersister collectionDescriptor, CollectionInitializer initializer, Object key, PersistentCollection<?> collectionInstance)
-
-
Method Detail
-
getCollectionDescriptor
public CollectionPersister getCollectionDescriptor()
Description copied from interface:LoadingCollectionEntry
The descriptor for the collection being loaded- Specified by:
getCollectionDescriptor
in interfaceLoadingCollectionEntry
-
getInitializer
public CollectionInitializer getInitializer()
Access to the initializer that is responsible for initializing this collection- Specified by:
getInitializer
in interfaceLoadingCollectionEntry
-
getKey
public Object getKey()
Description copied from interface:LoadingCollectionEntry
The collection key.- Specified by:
getKey
in interfaceLoadingCollectionEntry
-
getCollectionInstance
public PersistentCollection<?> getCollectionInstance()
Description copied from interface:LoadingCollectionEntry
The collection instance being loaded- Specified by:
getCollectionInstance
in interfaceLoadingCollectionEntry
-
load
public void load(Consumer<List<Object>> loadingEntryConsumer)
Description copied from interface:LoadingCollectionEntry
Callback for row loading. Allows delayed List creation- Specified by:
load
in interfaceLoadingCollectionEntry
-
finishLoading
public void finishLoading(ExecutionContext executionContext)
Description copied from interface:LoadingCollectionEntry
Complete the load- Specified by:
finishLoading
in interfaceLoadingCollectionEntry
-
-