Class MultiNaturalIdLoaderArrayParam<E>
- java.lang.Object
-
- org.hibernate.loader.ast.internal.MultiNaturalIdLoaderArrayParam<E>
-
- All Implemented Interfaces:
EntityLoader
,EntityMultiLoader<E>
,Loader
,MultiKeyLoader
,MultiNaturalIdLoader<E>
,SqlArrayMultiKeyLoader
public class MultiNaturalIdLoaderArrayParam<E> extends Object implements MultiNaturalIdLoader<E>, SqlArrayMultiKeyLoader
Standard MultiNaturalIdLoader implementation
-
-
Constructor Summary
Constructors Constructor Description MultiNaturalIdLoaderArrayParam(EntityMappingType entityDescriptor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EntityMappingType
getLoadable()
The value-mapping loaded by this loaderprotected BasicAttributeMapping
getNaturalIdAttribute()
protected SimpleNaturalIdMapping
getNaturalIdMapping()
<K> List<E>
multiLoad(K[] naturalIds, MultiNaturalIdLoadOptions loadOptions, SharedSessionContractImplementor session)
Load multiple entities by natural-id.
-
-
-
Constructor Detail
-
MultiNaturalIdLoaderArrayParam
public MultiNaturalIdLoaderArrayParam(EntityMappingType entityDescriptor)
-
-
Method Detail
-
getLoadable
public EntityMappingType getLoadable()
Description copied from interface:Loader
The value-mapping loaded by this loader- Specified by:
getLoadable
in interfaceEntityLoader
- Specified by:
getLoadable
in interfaceLoader
-
getNaturalIdMapping
protected SimpleNaturalIdMapping getNaturalIdMapping()
-
getNaturalIdAttribute
protected BasicAttributeMapping getNaturalIdAttribute()
-
multiLoad
public <K> List<E> multiLoad(K[] naturalIds, MultiNaturalIdLoadOptions loadOptions, SharedSessionContractImplementor session)
Description copied from interface:MultiNaturalIdLoader
Load multiple entities by natural-id. The exact result depends on the passed options.- Specified by:
multiLoad
in interfaceMultiNaturalIdLoader<E>
- Type Parameters:
K
- The basic form for a natural-id is a Map of its attribute values, or an array of the values positioned according to "attribute ordering". Simple natural-ids can also be expressed by their simple (basic/embedded) type.- Parameters:
naturalIds
- The natural-ids to load. The values of this array will depend on whether the natural-id is simple or complex.
-
-