Top Description Fields Constructors Methods
org.hibernate.loader.ast.internal

public Class MultiNaturalIdLoaderInPredicate<E>

extends Object
implements MultiNaturalIdLoader<E>, SqlInPredicateMultiKeyLoader
Class Inheritance
All Implemented Interfaces
org.hibernate.loader.ast.spi.SqlInPredicateMultiKeyLoader, org.hibernate.loader.ast.spi.MultiKeyLoader, org.hibernate.loader.ast.spi.Loader, org.hibernate.loader.ast.spi.MultiNaturalIdLoader, org.hibernate.loader.ast.spi.EntityMultiLoader, org.hibernate.loader.ast.spi.EntityLoader
Imports
java.util.Collections, .List, org.hibernate.LockMode, .LockOptions, org.hibernate.engine.spi.SessionFactoryImplementor, .SharedSessionContractImplementor, org.hibernate.loader.ast.spi.MultiNaturalIdLoadOptions, .MultiNaturalIdLoader, .SqlInPredicateMultiKeyLoader, org.hibernate.metamodel.mapping.EntityMappingType, org.hibernate.sql.results.LoadingLogger

MultiNaturalIdLoader implementation using SQL IN predicate to specify the ids

Field Summary

Modifier and TypeField and Description
private final EntityMappingType

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public EntityMappingType
public <K> List<E>
multiLoad(K[]
The natural-ids to load. The values of this array will depend on whether the natural-id is simple or complex.
naturalIds
,
MultiNaturalIdLoadOptions options, SharedSessionContractImplementor session)

Implements org.hibernate.loader.ast.spi.MultiNaturalIdLoader.multiLoad.

Load multiple entities by natural-id. The exact result depends on the passed options.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

entityDescriptorback to summary
private final EntityMappingType entityDescriptor

Constructor Detail

MultiNaturalIdLoaderInPredicateback to summary
public MultiNaturalIdLoaderInPredicate(EntityMappingType entityDescriptor)

Method Detail

getLoadableback to summary
public EntityMappingType getLoadable()

Implements org.hibernate.loader.ast.spi.EntityLoader.getLoadable, org.hibernate.loader.ast.spi.Loader.getLoadable.

Doc from org.hibernate.loader.ast.spi.Loader.getLoadable.

The value-mapping loaded by this loader

Annotations
@Override
multiLoadback to summary
public <K> List<E> multiLoad(K[] naturalIds, MultiNaturalIdLoadOptions options, SharedSessionContractImplementor session)

Implements org.hibernate.loader.ast.spi.MultiNaturalIdLoader.multiLoad.

Doc from org.hibernate.loader.ast.spi.MultiNaturalIdLoader.multiLoad.

Load multiple entities by natural-id. The exact result depends on the passed options.

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.
naturalIds:K[]

The natural-ids to load. The values of this array will depend on whether the natural-id is simple or complex.

Annotations
@Override