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 PluralAttributeMappinggetAttributeMapping()JdbcParametersListgetJdbcParameters()PluralAttributeMappinggetLoadable()The value-mapping loaded by this loaderSelectStatementgetSqlAst()protected ObjectincrementIndexByBase(Object index)If the index being loaded by for a List and the mapping specified a base-index, this will return the passedindexvalue incremented by the base.Objectload(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:LoaderThe value-mapping loaded by this loader- Specified by:
getLoadablein 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 passedindexvalue incremented by the base. Otherwise, the passedindexis returned.- Parameters:
index- The relational index value; specifically without any mapped base applied- Returns:
- The appropriately incremented base
-
-