Class CompoundNaturalIdLoader<T>
- java.lang.Object
-
- org.hibernate.loader.ast.internal.AbstractNaturalIdLoader<T>
-
- org.hibernate.loader.ast.internal.CompoundNaturalIdLoader<T>
-
- All Implemented Interfaces:
EntityLoader
,Loader
,MultiKeyLoader
,NaturalIdLoader<T>
public class CompoundNaturalIdLoader<T> extends AbstractNaturalIdLoader<T>
NaturalIdLoader implementation for compound natural-ids
-
-
Constructor Summary
Constructors Constructor Description CompoundNaturalIdLoader(CompoundNaturalIdMapping naturalIdMapping, EntityMappingType entityDescriptor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
applyNaturalIdRestriction(Object bindValue, TableGroup rootTableGroup, Consumer<Predicate> predicateConsumer, BiConsumer<JdbcParameter,JdbcParameterBinding> jdbcParameterConsumer, LoaderSqlAstCreationState sqlAstCreationState, SharedSessionContractImplementor session)
Apply restriction necessary to match the given natural-id value.-
Methods inherited from class org.hibernate.loader.ast.internal.AbstractNaturalIdLoader
entityDescriptor, getLoadable, load, naturalIdMapping, resolveColumnReference, resolveIdToNaturalId, resolveNaturalIdToId, selectByNaturalId
-
-
-
-
Constructor Detail
-
CompoundNaturalIdLoader
public CompoundNaturalIdLoader(CompoundNaturalIdMapping naturalIdMapping, EntityMappingType entityDescriptor)
-
-
Method Detail
-
applyNaturalIdRestriction
protected void applyNaturalIdRestriction(Object bindValue, TableGroup rootTableGroup, Consumer<Predicate> predicateConsumer, BiConsumer<JdbcParameter,JdbcParameterBinding> jdbcParameterConsumer, LoaderSqlAstCreationState sqlAstCreationState, SharedSessionContractImplementor session)
Description copied from class:AbstractNaturalIdLoader
Apply restriction necessary to match the given natural-id value. Should apply any predicates to `predicateConsumer` as well and any parameter / binding pairs- Specified by:
applyNaturalIdRestriction
in classAbstractNaturalIdLoader<T>
-
-