Class CollectionElementLoaderByIndex
- java.lang.Object
-
- org.hibernate.loader.ast.internal.CollectionElementLoaderByIndex
-
-
Constructor Summary
Constructors Constructor Description CollectionElementLoaderByIndex(PluralAttributeMapping attributeMapping, int baseIndex, LoadQueryInfluencers influencers, SessionFactoryImplementor sessionFactory)
CollectionElementLoaderByIndex(PluralAttributeMapping attributeMapping, LoadQueryInfluencers influencers, SessionFactoryImplementor sessionFactory)
Shortened form ofCollectionElementLoaderByIndex(PluralAttributeMapping, int, LoadQueryInfluencers, SessionFactoryImplementor)
which applied the collection mapping's PluralAttributeMapping.IndexMetadata.getListIndexBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PluralAttributeMapping
getAttributeMapping()
JdbcParametersList
getJdbcParameters()
PluralAttributeMapping
getLoadable()
The value-mapping loaded by this loaderSelectStatement
getSqlAst()
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 passedindex
value incremented by the base.Object
load(Object key, Object index, SharedSessionContractImplementor session)
-
-
-
Constructor Detail
-
CollectionElementLoaderByIndex
public CollectionElementLoaderByIndex(PluralAttributeMapping attributeMapping, LoadQueryInfluencers influencers, SessionFactoryImplementor sessionFactory)
Shortened form ofCollectionElementLoaderByIndex(PluralAttributeMapping, int, LoadQueryInfluencers, SessionFactoryImplementor)
which applied the collection mapping's PluralAttributeMapping.IndexMetadata.getListIndexBase()
-
CollectionElementLoaderByIndex
public CollectionElementLoaderByIndex(PluralAttributeMapping attributeMapping, int baseIndex, LoadQueryInfluencers influencers, SessionFactoryImplementor sessionFactory)
- Parameters:
baseIndex
- A base value to apply to the relational index values processed onincrementIndexByBase(java.lang.Object)
-
-
Method Detail
-
getLoadable
public PluralAttributeMapping getLoadable()
Description copied from interface:Loader
The value-mapping loaded by this loader- Specified by:
getLoadable
in interfaceLoader
-
getAttributeMapping
public PluralAttributeMapping getAttributeMapping()
-
getSqlAst
public SelectStatement getSqlAst()
-
getJdbcParameters
public JdbcParametersList getJdbcParameters()
-
load
public Object load(Object key, Object index, SharedSessionContractImplementor session)
-
incrementIndexByBase
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 passedindex
value incremented by the base. Otherwise, the passedindex
is returned.- Parameters:
index
- The relational index value; specifically without any mapped base applied- Returns:
- The appropriately incremented base
-
-