Class MultiIdEntityLoaderArrayParam<E>
java.lang.Object
org.hibernate.loader.ast.internal.AbstractMultiIdEntityLoader<E>
org.hibernate.loader.ast.internal.MultiIdEntityLoaderArrayParam<E>
- All Implemented Interfaces:
EntityLoader
,EntityMultiLoader<E>
,Loader
,MultiIdEntityLoader<E>
,MultiKeyLoader
,SqlArrayMultiKeyLoader
public class MultiIdEntityLoaderArrayParam<E>
extends AbstractMultiIdEntityLoader<E>
implements SqlArrayMultiKeyLoader
Implementation of
MultiIdEntityLoader
which uses a single JDBC parameter of SQL array type.-
Nested Class Summary
Nested classes/interfaces inherited from class org.hibernate.loader.ast.internal.AbstractMultiIdEntityLoader
AbstractMultiIdEntityLoader.ResolutionConsumer<T>
-
Field Summary
FieldsFields inherited from class org.hibernate.loader.ast.internal.AbstractMultiIdEntityLoader
identifierMapping
-
Constructor Summary
ConstructorsConstructorDescriptionMultiIdEntityLoaderArrayParam
(EntityMappingType entityDescriptor, SessionFactoryImplementor sessionFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
loadEntitiesById
(List<Object> idsInBatch, LockOptions lockOptions, MultiIdLoadOptions loadOptions, EventSource session) protected void
loadEntitiesWithUnresolvedIds
(MultiIdLoadOptions loadOptions, LockOptions lockOptions, EventSource session, Object[] unresolvableIds, List<E> result) protected int
maxBatchSize
(Object[] ids, MultiIdLoadOptions loadOptions) protected Object[]
protected Object[]
Methods inherited from class org.hibernate.loader.ast.internal.AbstractMultiIdEntityLoader
getEntityDescriptor, getJdbcSelectExecutor, getJdbcServices, getLoadable, getSessionFactory, getSqlAstTranslatorFactory, handleResults, load, loadFromEnabledCaches, lockOptions, performOrderedMultiLoad, resolveInCaches, resolveInCachesIfEnabled, unorderedMultiLoad
-
Field Details
-
idArray
-
-
Constructor Details
-
MultiIdEntityLoaderArrayParam
public MultiIdEntityLoaderArrayParam(EntityMappingType entityDescriptor, SessionFactoryImplementor sessionFactory)
-
-
Method Details
-
getIdentifierMapping
- Overrides:
getIdentifierMapping
in classAbstractMultiIdEntityLoader<E>
-
maxBatchSize
- Specified by:
maxBatchSize
in classAbstractMultiIdEntityLoader<E>
-
loadEntitiesById
protected void loadEntitiesById(List<Object> idsInBatch, LockOptions lockOptions, MultiIdLoadOptions loadOptions, EventSource session) - Specified by:
loadEntitiesById
in classAbstractMultiIdEntityLoader<E>
-
loadEntitiesWithUnresolvedIds
protected void loadEntitiesWithUnresolvedIds(MultiIdLoadOptions loadOptions, LockOptions lockOptions, EventSource session, Object[] unresolvableIds, List<E> result) - Specified by:
loadEntitiesWithUnresolvedIds
in classAbstractMultiIdEntityLoader<E>
-
toIdArray
- Specified by:
toIdArray
in classAbstractMultiIdEntityLoader<E>
-
toIdArray
-