Top Description Methods
org.hibernate.collection.spi

public Interface CollectionInitializerProducer

Known Direct Implementers
org.hibernate.sql.results.graph.collection.internal.ArrayInitializerProducer, org.hibernate.sql.results.graph.collection.internal.BagInitializerProducer, org.hibernate.sql.results.graph.collection.internal.ListInitializerProducer, org.hibernate.sql.results.graph.collection.internal.MapInitializerProducer, org.hibernate.sql.results.graph.collection.internal.SetInitializerProducer
Annotations
@Incubating
@FunctionalInterface
Imports
org.hibernate.Incubating, .LockMode, org.hibernate.metamodel.mapping.PluralAttributeMapping, org.hibernate.spi.NavigablePath, org.hibernate.sql.results.graph.AssemblerCreationState, .DomainResultAssembler, .FetchParentAccess, org.hibernate.sql.results.graph.collection.CollectionInitializer

Functional contract to create a CollectionInitializer.
Author
Steve Ebersole
Since
6.0

Method Summary

Modifier and TypeMethod and Description
public CollectionInitializer
produceInitializer(NavigablePath
the navigable path
navigablePath
,
PluralAttributeMapping
the attribute
attribute
,
FetchParentAccess
may be null to indicate that the initializer is for a org.hibernate.sql.results.graph.DomainResult rather than a org.hibernate.sql.results.graph.Fetch
parentAccess
,
LockMode lockMode, DomainResultAssembler<?>
allows creation of a org.hibernate.sql.results.graph.DomainResult for either side of the collection foreign key
collectionKeyAssembler
,
DomainResultAssembler<?>
allows creation of a org.hibernate.sql.results.graph.DomainResult for either side of the collection foreign key
collectionValueKeyAssembler
,
AssemblerCreationState creationState)

Create an initializer for the given attribute relative to the given navigable path.

Method Detail

produceInitializerback to summary
public CollectionInitializer produceInitializer(NavigablePath navigablePath, PluralAttributeMapping attribute, FetchParentAccess parentAccess, LockMode lockMode, DomainResultAssembler<?> collectionKeyAssembler, DomainResultAssembler<?> collectionValueKeyAssembler, AssemblerCreationState creationState)

Create an initializer for the given attribute relative to the given navigable path.

Parameters
navigablePath:NavigablePath

the navigable path

attribute:PluralAttributeMapping

the attribute

parentAccess:FetchParentAccess

may be null to indicate that the initializer is for a org.hibernate.sql.results.graph.DomainResult rather than a org.hibernate.sql.results.graph.Fetch

collectionKeyAssembler:DomainResultAssembler<?>

allows creation of a org.hibernate.sql.results.graph.DomainResult for either side of the collection foreign key

collectionValueKeyAssembler:DomainResultAssembler<?>

allows creation of a org.hibernate.sql.results.graph.DomainResult for either side of the collection foreign key