Class SimpleNaturalIdLoader<T>
- java.lang.Object
-
- org.hibernate.loader.ast.internal.AbstractNaturalIdLoader<T>
-
- org.hibernate.loader.ast.internal.SimpleNaturalIdLoader<T>
-
- All Implemented Interfaces:
EntityLoader
,Loader
,MultiKeyLoader
,NaturalIdLoader<T>
public class SimpleNaturalIdLoader<T> extends AbstractNaturalIdLoader<T>
NaturalIdLoader for simple natural-ids
-
-
Constructor Summary
Constructors Constructor Description SimpleNaturalIdLoader(SimpleNaturalIdMapping 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.protected SimpleNaturalIdMapping
naturalIdMapping()
-
Methods inherited from class org.hibernate.loader.ast.internal.AbstractNaturalIdLoader
entityDescriptor, getLoadable, load, resolveColumnReference, resolveIdToNaturalId, resolveNaturalIdToId, selectByNaturalId
-
-
-
-
Constructor Detail
-
SimpleNaturalIdLoader
public SimpleNaturalIdLoader(SimpleNaturalIdMapping naturalIdMapping, EntityMappingType entityDescriptor)
-
-
Method Detail
-
naturalIdMapping
protected SimpleNaturalIdMapping naturalIdMapping()
- Overrides:
naturalIdMapping
in classAbstractNaturalIdLoader<T>
-
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>
-
-