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 voidfinishLoading(ExecutionContext executionContext)Complete the loadCollectionPersistergetCollectionDescriptor()The descriptor for the collection being loadedPersistentCollection<?>getCollectionInstance()The collection instance being loadedCollectionInitializer<?>getInitializer()Access to the initializer that is responsible for initializing this collectionObjectgetKey()The collection key.voidload(Consumer<List<Object>> loadingEntryConsumer)Callback for row loading.<T> voidload(T arg1, BiConsumer<T,List<Object>> loadingEntryConsumer)Callback for row loading.StringtoString()
-
-
-
Constructor Detail
-
LoadingCollectionEntryImpl
public LoadingCollectionEntryImpl(CollectionPersister collectionDescriptor, CollectionInitializer<?> initializer, Object key, PersistentCollection<?> collectionInstance)
-
-
Method Detail
-
getCollectionDescriptor
public CollectionPersister getCollectionDescriptor()
Description copied from interface:LoadingCollectionEntryThe descriptor for the collection being loaded- Specified by:
getCollectionDescriptorin interfaceLoadingCollectionEntry
-
getInitializer
public CollectionInitializer<?> getInitializer()
Access to the initializer that is responsible for initializing this collection- Specified by:
getInitializerin interfaceLoadingCollectionEntry
-
getKey
public Object getKey()
Description copied from interface:LoadingCollectionEntryThe collection key.- Specified by:
getKeyin interfaceLoadingCollectionEntry
-
getCollectionInstance
public PersistentCollection<?> getCollectionInstance()
Description copied from interface:LoadingCollectionEntryThe collection instance being loaded- Specified by:
getCollectionInstancein interfaceLoadingCollectionEntry
-
load
public void load(Consumer<List<Object>> loadingEntryConsumer)
Description copied from interface:LoadingCollectionEntryCallback for row loading. Allows delayed List creation- Specified by:
loadin interfaceLoadingCollectionEntry
-
load
public <T> void load(T arg1, BiConsumer<T,List<Object>> loadingEntryConsumer)Description copied from interface:LoadingCollectionEntryCallback for row loading. Allows delayed List creation- Specified by:
loadin interfaceLoadingCollectionEntry
-
finishLoading
public void finishLoading(ExecutionContext executionContext)
Description copied from interface:LoadingCollectionEntryComplete the load- Specified by:
finishLoadingin interfaceLoadingCollectionEntry
-
-