Top Description Fields Constructors Methods
org.hibernate.sql.results.internal

public Class LoadingCollectionEntryImpl

extends Object
implements LoadingCollectionEntry
Class Inheritance
All Implemented Interfaces
org.hibernate.sql.results.graph.collection.LoadingCollectionEntry
Imports
java.util.ArrayList, .List, java.util.function.Consumer, org.hibernate.collection.spi.PersistentCollection, org.hibernate.engine.spi.PersistenceContext, .SharedSessionContractImplementor, org.hibernate.persister.collection.CollectionPersister, org.hibernate.sql.exec.spi.ExecutionContext, org.hibernate.sql.results.graph.collection.CollectionInitializer, .LoadingCollectionEntry

Represents a collection currently being loaded.
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final CollectionPersister
private final PersistentCollection<?>
private final CollectionInitializer
private final Object
private final List<Object>

Constructor Summary

AccessConstructor and Description
public
LoadingCollectionEntryImpl(CollectionPersister collectionDescriptor, CollectionInitializer initializer, Object key, PersistentCollection<?> collectionInstance)

Method Summary

Modifier and TypeMethod and Description
public void
public CollectionPersister
public PersistentCollection<?>
public CollectionInitializer
getInitializer()

Implements org.hibernate.sql.results.graph.collection.LoadingCollectionEntry.getInitializer.

Access to the initializer that is responsible for initializing this collection
public Object
public void
load(Consumer<List<Object>> loadingEntryConsumer)

Implements org.hibernate.sql.results.graph.collection.LoadingCollectionEntry.load.

Callback for row loading.
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

collectionDescriptorback to summary
private final CollectionPersister collectionDescriptor
collectionInstanceback to summary
private final PersistentCollection<?> collectionInstance
initializerback to summary
private final CollectionInitializer initializer
keyback to summary
private final Object key
loadingStateback to summary
private final List<Object> loadingState

Constructor Detail

LoadingCollectionEntryImplback to summary
public LoadingCollectionEntryImpl(CollectionPersister collectionDescriptor, CollectionInitializer initializer, Object key, PersistentCollection<?> collectionInstance)

Method Detail

finishLoadingback to summary
public void finishLoading(ExecutionContext executionContext)

Implements org.hibernate.sql.results.graph.collection.LoadingCollectionEntry.finishLoading.

Doc from org.hibernate.sql.results.graph.collection.LoadingCollectionEntry.finishLoading.

Complete the load

Annotations
@Override
getCollectionDescriptorback to summary
public CollectionPersister getCollectionDescriptor()

Implements org.hibernate.sql.results.graph.collection.LoadingCollectionEntry.getCollectionDescriptor.

Doc from org.hibernate.sql.results.graph.collection.LoadingCollectionEntry.getCollectionDescriptor.

The descriptor for the collection being loaded

Annotations
@Override
getCollectionInstanceback to summary
public PersistentCollection<?> getCollectionInstance()

Implements org.hibernate.sql.results.graph.collection.LoadingCollectionEntry.getCollectionInstance.

Doc from org.hibernate.sql.results.graph.collection.LoadingCollectionEntry.getCollectionInstance.

The collection instance being loaded

Annotations
@Override
getInitializerback to summary
public CollectionInitializer getInitializer()

Implements org.hibernate.sql.results.graph.collection.LoadingCollectionEntry.getInitializer.

Access to the initializer that is responsible for initializing this collection

Annotations
@Override
getKeyback to summary
public Object getKey()

Implements org.hibernate.sql.results.graph.collection.LoadingCollectionEntry.getKey.

Doc from org.hibernate.sql.results.graph.collection.LoadingCollectionEntry.getKey.

The collection key.

Annotations
@Override
loadback to summary
public void load(Consumer<List<Object>> loadingEntryConsumer)

Implements org.hibernate.sql.results.graph.collection.LoadingCollectionEntry.load.

Doc from org.hibernate.sql.results.graph.collection.LoadingCollectionEntry.load.

Callback for row loading. Allows delayed List creation

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override