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

public Class StandardBatchLoaderFactory

extends Object
implements BatchLoaderFactory
Class Inheritance
All Implemented Interfaces
org.hibernate.loader.ast.spi.BatchLoaderFactory, org.hibernate.service.Service, java.io.Serializable
Imports
java.util.Map, org.hibernate.engine.spi.LoadQueryInfluencers, .SessionFactoryImplementor, org.hibernate.loader.ast.spi.BatchLoaderFactory, .CollectionBatchLoader, .EntityBatchLoader, org.hibernate.metamodel.mapping.EntityMappingType, .PluralAttributeMapping, org.hibernate.service.spi.ServiceRegistryImplementor, org.hibernate.type.BasicType, .Type

Standard BatchLoaderFactory implementation
Author
Steve Ebersole

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public CollectionBatchLoader
createCollectionBatchLoader(int
The total number of collections (max) that will be initialized for any CollectionBatchLoader#load
domainBatchSize
,
LoadQueryInfluencers
Any load query influencers (filters, fetch-profiles, ...) to apply to the SQL
influencers
,
PluralAttributeMapping
The collection mapping metadata
attributeMapping
,
SessionFactoryImplementor factory)

Implements org.hibernate.loader.ast.spi.BatchLoaderFactory.createCollectionBatchLoader.

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
Create a BatchLoader for batch-loadable collections.
public <T> EntityBatchLoader<T>
createEntityBatchLoader(int
The total number of entities (max) that will be need to be initialized
domainBatchSize
,
EntityMappingType
The entity mapping metadata
entityDescriptor
,
SessionFactoryImplementor factory)

Implements org.hibernate.loader.ast.spi.BatchLoaderFactory.createEntityBatchLoader.

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
Create a BatchLoader for batch-loadable entities.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

StandardBatchLoaderFactoryback to summary
public StandardBatchLoaderFactory(Map<String, Object> configurationValues, ServiceRegistryImplementor registry)
Annotations
@SuppressWarnings:unused

Method Detail

createCollectionBatchLoaderback to summary
public CollectionBatchLoader createCollectionBatchLoader(int domainBatchSize, LoadQueryInfluencers influencers, PluralAttributeMapping attributeMapping, SessionFactoryImplementor factory)

Implements org.hibernate.loader.ast.spi.BatchLoaderFactory.createCollectionBatchLoader.

Doc from org.hibernate.loader.ast.spi.BatchLoaderFactory.createCollectionBatchLoader.

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

Create a BatchLoader for batch-loadable collections.

Parameters
domainBatchSize:int

The total number of collections (max) that will be initialized for any CollectionBatchLoader#load

influencers:LoadQueryInfluencers

Any load query influencers (filters, fetch-profiles, ...) to apply to the SQL

attributeMapping:PluralAttributeMapping

The collection mapping metadata

Annotations
@Override
createEntityBatchLoaderback to summary
public <T> EntityBatchLoader<T> createEntityBatchLoader(int domainBatchSize, EntityMappingType entityDescriptor, SessionFactoryImplementor factory)

Implements org.hibernate.loader.ast.spi.BatchLoaderFactory.createEntityBatchLoader.

Doc from org.hibernate.loader.ast.spi.BatchLoaderFactory.createEntityBatchLoader.

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

Create a BatchLoader for batch-loadable entities.

Parameters
domainBatchSize:int

The total number of entities (max) that will be need to be initialized

entityDescriptor:EntityMappingType

The entity mapping metadata

Annotations
@Override