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, InitializerParent<?> parent, LockMode lockMode, DomainResult<?> collectionKeyResult, DomainResult<?> collectionValueKeyResult, boolean isResultInitializer, AssemblerCreationState creationState)Create an initializer for the given attribute relative to the given navigable path.
-
-
-
Method Detail
-
produceInitializer
CollectionInitializer<?> produceInitializer(NavigablePath navigablePath, PluralAttributeMapping attribute, InitializerParent<?> parent, LockMode lockMode, DomainResult<?> collectionKeyResult, DomainResult<?> collectionValueKeyResult, boolean isResultInitializer, AssemblerCreationState creationState)
Create an initializer for the given attribute relative to the given navigable path.- Parameters:
navigablePath- the navigable pathattribute- the attributeparent- may be null to indicate that the initializer is for aDomainResultrather than aFetchcollectionKeyResult- allows creation of aDomainResultfor either side of the collection foreign keycollectionValueKeyResult- allows creation of aDomainResultfor either side of the collection foreign key
-
-