Class CollectionElementLoaderByIndex
java.lang.Object
org.hibernate.loader.ast.internal.CollectionElementLoaderByIndex
- All Implemented Interfaces:
Loader
-
Constructor Summary
ConstructorDescriptionCollectionElementLoaderByIndex
(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
Modifier and TypeMethodDescriptionThe value-mapping loaded by this loaderprotected 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.load
(Object key, Object index, SharedSessionContractImplementor session)
-
Constructor Details
-
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 Details
-
getLoadable
Description copied from interface:Loader
The value-mapping loaded by this loader- Specified by:
getLoadable
in interfaceLoader
-
getAttributeMapping
-
getSqlAst
-
getJdbcParameters
-
incrementIndexByBase
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
-