Class CollectionElementLoaderByIndex
java.lang.Object
org.hibernate.loader.ast.internal.CollectionElementLoaderByIndex
- All Implemented Interfaces:
Loader
-
Constructor Summary
ConstructorsConstructorDescriptionCollectionElementLoaderByIndex(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 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.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:LoaderThe value-mapping loaded by this loader- Specified by:
getLoadablein 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 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
-