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.
@FunctionalInterface public interface CollectionInitializerProducer
Functional contract to create a CollectionInitializer- 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 `attribute` relative to `navigablePath`.
-
-
-
Method Detail
-
produceInitializer
CollectionInitializer produceInitializer(NavigablePath navigablePath, PluralAttributeMapping attribute, FetchParentAccess parentAccess, LockMode lockMode, DomainResultAssembler<?> collectionKeyAssembler, DomainResultAssembler<?> collectionValueKeyAssembler, AssemblerCreationState creationState)
Create an initializer for `attribute` relative to `navigablePath`. `parentAccess` may be null to indicate that the initializer is for aDomainResult
rather than aFetch
`collectionKeyAssembler` and `collectionValueKeyAssembler` allow creatingDomainResult
for either side of the collection foreign-key
-
-