Top Fields Constructors Methods
org.hibernate.sql.results.graph.collection.internal

public Class ListInitializerProducer

extends Object
implements CollectionInitializerProducer
Class Inheritance
All Implemented Interfaces
org.hibernate.collection.spi.CollectionInitializerProducer
Imports
org.hibernate.LockMode, org.hibernate.collection.spi.CollectionInitializerProducer, org.hibernate.metamodel.mapping.PluralAttributeMapping, org.hibernate.spi.NavigablePath, org.hibernate.sql.results.graph.AssemblerCreationState, .DomainResultAssembler, .Fetch, .FetchParentAccess, org.hibernate.sql.results.graph.collection.CollectionInitializer

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final PluralAttributeMapping
private final Fetch
private final Fetch

Constructor Summary

AccessConstructor and Description
public
ListInitializerProducer(PluralAttributeMapping attributeMapping, Fetch listIndexFetch, Fetch elementFetch)

Method Summary

Modifier and TypeMethod and Description
public CollectionInitializer
produceInitializer(NavigablePath
the navigable path
navigablePath
,
PluralAttributeMapping
the attribute
attributeMapping
,
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)

Implements org.hibernate.collection.spi.CollectionInitializerProducer.produceInitializer.

Create an initializer for the given attribute relative to the given navigable path.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

attributeMappingback to summary
private final PluralAttributeMapping attributeMapping
elementFetchback to summary
private final Fetch elementFetch
listIndexFetchback to summary
private final Fetch listIndexFetch

Constructor Detail

ListInitializerProducerback to summary
public ListInitializerProducer(PluralAttributeMapping attributeMapping, Fetch listIndexFetch, Fetch elementFetch)

Method Detail

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

Implements org.hibernate.collection.spi.CollectionInitializerProducer.produceInitializer.

Doc from org.hibernate.collection.spi.CollectionInitializerProducer.produceInitializer.

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

Parameters
navigablePath:NavigablePath

the navigable path

attributeMapping: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

Annotations
@Override