Package org.hibernate.collection.spi
Interface CollectionInitializerProducer
-
- All Known Implementing Classes:
ArrayInitializerProducer
,BagInitializerProducer
,ListInitializerProducer
,MapInitializerProducer
,SetInitializerProducer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@Incubating @FunctionalInterface public interface CollectionInitializerProducer
Functional contract to create aCollectionInitializer
.- Since:
- 6.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.
-
-
-
Method Detail
-
produceInitializer
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
- the navigable pathattribute
- the attributeparentAccess
- may be null to indicate that the initializer is for aDomainResult
rather than aFetch
collectionKeyAssembler
- allows creation of aDomainResult
for either side of the collection foreign keycollectionValueKeyAssembler
- allows creation of aDomainResult
for either side of the collection foreign key
-
-