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

public Class CollectionLoaderSingleKey

extends Object
implements CollectionLoader
Class Inheritance
All Implemented Interfaces
org.hibernate.loader.ast.spi.CollectionLoader, org.hibernate.loader.ast.spi.Loader
Imports
org.hibernate.LockOptions, org.hibernate.collection.spi.PersistentCollection, org.hibernate.engine.jdbc.spi.JdbcServices, org.hibernate.engine.spi.CollectionKey, .EntityHolder, .LoadQueryInfluencers, .SessionFactoryImplementor, .SharedSessionContractImplementor, .SubselectFetch, org.hibernate.loader.ast.spi.CollectionLoader, org.hibernate.metamodel.mapping.PluralAttributeMapping, org.hibernate.query.spi.QueryOptions, org.hibernate.sql.ast.tree.from.FromClause, .TableGroup, org.hibernate.sql.ast.tree.select.QuerySpec, .SelectStatement, org.hibernate.sql.exec.internal.BaseExecutionContext, .JdbcParameterBindingsImpl, org.hibernate.sql.exec.spi.JdbcOperationQuerySelect, .JdbcParameterBindings, .JdbcParametersList, org.hibernate.sql.results.internal.RowTransformerStandardImpl, org.hibernate.sql.results.spi.ListResultsConsumer

Main implementation of CollectionLoader for handling a load of a single collection-key
Author
Steve Ebersole

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private final PluralAttributeMapping
private final JdbcParametersList
private final JdbcOperationQuerySelect
private final int
private final SelectStatement

Constructor Summary

AccessConstructor and Description
public
CollectionLoaderSingleKey(PluralAttributeMapping attributeMapping, LoadQueryInfluencers influencers, SessionFactoryImplementor sessionFactory)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.

Method Summary

Modifier and TypeMethod and Description
public PluralAttributeMapping
public JdbcParametersList
public PluralAttributeMapping
getLoadable()

Implements org.hibernate.loader.ast.spi.CollectionLoader.getLoadable.

The value-mapping loaded by this loader
public SelectStatement
public PersistentCollection<?>
load(Object key, SharedSessionContractImplementor session)

Implements org.hibernate.loader.ast.spi.CollectionLoader.load.

Load a collection by its key (not necessarily the same as its owner's PK).
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

attributeMappingback to summary
private final PluralAttributeMapping attributeMapping
jdbcParametersback to summary
private final JdbcParametersList jdbcParameters
jdbcSelectback to summary
private final JdbcOperationQuerySelect jdbcSelect
keyJdbcCountback to summary
private final int keyJdbcCount
sqlAstback to summary
private final SelectStatement sqlAst

Constructor Detail

CollectionLoaderSingleKeyback to summary
public CollectionLoaderSingleKey(PluralAttributeMapping attributeMapping, LoadQueryInfluencers influencers, SessionFactoryImplementor sessionFactory)

Deprecated

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

Method Detail

getAttributeMappingback to summary
public PluralAttributeMapping getAttributeMapping()
getJdbcParametersback to summary
public JdbcParametersList getJdbcParameters()
getLoadableback to summary
public PluralAttributeMapping getLoadable()

Implements org.hibernate.loader.ast.spi.CollectionLoader.getLoadable.

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

The value-mapping loaded by this loader

Annotations
@Override
getSqlAstback to summary
public SelectStatement getSqlAst()
loadback to summary
public PersistentCollection<?> load(Object key, SharedSessionContractImplementor session)

Implements org.hibernate.loader.ast.spi.CollectionLoader.load.

Doc from org.hibernate.loader.ast.spi.CollectionLoader.load.

Load a collection by its key (not necessarily the same as its owner's PK).

Annotations
@Override
org.hibernate.loader.ast.internal back to summary

private Class CollectionLoaderSingleKey.CollectionLoaderSingleKeyExecutionContext

extends BaseExecutionContext
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final CollectionKey
private final SubselectFetch.RegistrationHandler

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public CollectionKey
getCollectionKey()

Overrides default org.hibernate.sql.exec.spi.ExecutionContext.getCollectionKey.

Get the collection key for the collection which is to be loaded immediately.
public void
Inherited from org.hibernate.sql.exec.internal.BaseExecutionContext:
getCallbackgetLoadQueryInfluencersgetQueryIdentifiergetQueryOptionsgetQueryParameterBindingsgetSession

Field Detail

collectionKeyback to summary
private final CollectionKey collectionKey
subSelectFetchableKeysHandlerback to summary
private final SubselectFetch.RegistrationHandler subSelectFetchableKeysHandler

Constructor Detail

CollectionLoaderSingleKeyExecutionContextback to summary
pack-priv CollectionLoaderSingleKeyExecutionContext(SharedSessionContractImplementor session, CollectionKey collectionKey, SubselectFetch.RegistrationHandler subSelectFetchableKeysHandler)

Method Detail

getCollectionKeyback to summary
public CollectionKey getCollectionKey()

Overrides default org.hibernate.sql.exec.spi.ExecutionContext.getCollectionKey.

Doc from org.hibernate.sql.exec.spi.ExecutionContext.getCollectionKey.

Get the collection key for the collection which is to be loaded immediately.

Annotations
@Override
registerLoadingEntityHolderback to summary
public void registerLoadingEntityHolder(EntityHolder holder)

Overrides default org.hibernate.sql.exec.spi.ExecutionContext.registerLoadingEntityHolder.

Annotations
@Override