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

public Class CollectionElementLoaderByIndex

extends Object
implements Loader
Class Inheritance
All Implemented Interfaces
org.hibernate.loader.ast.spi.Loader
Imports
java.util.ArrayList, .List, org.hibernate.LockOptions, org.hibernate.engine.jdbc.env.spi.JdbcEnvironment, org.hibernate.engine.jdbc.spi.JdbcServices, org.hibernate.engine.spi.LoadQueryInfluencers, .SessionFactoryImplementor, .SharedSessionContractImplementor, org.hibernate.loader.ast.spi.Loader, org.hibernate.metamodel.mapping.CollectionPart, .EntityIdentifierMapping, .ForeignKeyDescriptor, .ModelPart, .PluralAttributeMapping, org.hibernate.metamodel.mapping.internal.EntityCollectionPart, org.hibernate.query.spi.QueryOptions, org.hibernate.sql.ast.SqlAstTranslatorFactory, org.hibernate.sql.ast.tree.select.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

Author
Andrea Boriero

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
public
CollectionElementLoaderByIndex(PluralAttributeMapping attributeMapping, int
A base value to apply to the relational index values processed on incrementIndexByBase
baseIndex
,
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.Loader.getLoadable.

The value-mapping loaded by this loader
public SelectStatement
protected Object

Returns:

The appropriately incremented base
incrementIndexByBase
(Object
The relational index value; specifically without any mapped base applied
index
)

If the index being loaded by for a List and the mapping specified a base-index, this will return the passed index value incremented by the base.

public Object
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

attributeMappingback to summary
private final PluralAttributeMapping attributeMapping
baseIndexback to summary
private final int baseIndex
jdbcParametersback to summary
private final JdbcParametersList jdbcParameters
keyJdbcCountback to summary
private final int keyJdbcCount
sqlAstback to summary
private final SelectStatement sqlAst

Constructor Detail

CollectionElementLoaderByIndexback to summary
public CollectionElementLoaderByIndex(PluralAttributeMapping attributeMapping, LoadQueryInfluencers influencers, SessionFactoryImplementor sessionFactory)

Deprecated

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

Shortened form of CollectionElementLoaderByIndex(PluralAttributeMapping, int, LoadQueryInfluencers, SessionFactoryImplementor) which applied the collection mapping's PluralAttributeMapping.IndexMetadata#getListIndexBase()

CollectionElementLoaderByIndexback to summary
public CollectionElementLoaderByIndex(PluralAttributeMapping attributeMapping, int baseIndex, LoadQueryInfluencers influencers, SessionFactoryImplementor sessionFactory)

Deprecated

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

Parameters
baseIndex:int

A base value to apply to the relational index values processed on incrementIndexByBase

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.Loader.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()
incrementIndexByBaseback to summary
protected Object incrementIndexByBase(Object index)

If the index being loaded by for a List and the mapping specified a base-index, this will return the passed index value incremented by the base. Otherwise, the passed index is returned.

Parameters
index:Object

The relational index value; specifically without any mapped base applied

Returns:Object

The appropriately incremented base

loadback to summary
public Object load(Object key, Object index, SharedSessionContractImplementor session)