Top Fields Constructors Methods
org.hibernate.persister.entity

pack-priv final Class EntityLoaderLazyCollection

extends LazyIndexedMap<Object, UniqueEntityLoader>
Class Inheritance
Imports
java.util.function.Function, org.hibernate.LockMode, org.hibernate.internal.util.collections.LazyIndexedMap, org.hibernate.loader.entity.UniqueEntityLoader

Field Summary

Modifier and TypeField and Description
private static final int
MERGE_INDEX

The need here is weird: we need to store an instance of UniqueEntityLoader for each value of the LockMode enum, but also store two special internal fetch profiles called "merge" and "refresh".

private static final int
private static final int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
pack-priv UniqueEntityLoader
pack-priv UniqueEntityLoader
pack-priv UniqueEntityLoader
Inherited from org.hibernate.internal.util.collections.LazyIndexedMap:
computeIfAbsent

Field Detail

MERGE_INDEXback to summary
private static final int MERGE_INDEX

The need here is weird: we need to store an instance of UniqueEntityLoader for each value of the LockMode enum, but also store two special internal fetch profiles called "merge" and "refresh". We assign these two their own ordinal ids such as to be treated as two additional enum states; but to access these they will have their own dedicated method implementations.

REFRESH_INDEXback to summary
private static final int REFRESH_INDEX
TOTAL_STORAGE_SIZEback to summary
private static final int TOTAL_STORAGE_SIZE

Constructor Detail

EntityLoaderLazyCollectionback to summary
public EntityLoaderLazyCollection()

Method Detail

getOrBuildByLockModeback to summary
pack-priv UniqueEntityLoader getOrBuildByLockMode(LockMode lockMode, Function<LockMode, UniqueEntityLoader> builderFunction)
getOrCreateByInternalFetchProfileMergeback to summary
pack-priv UniqueEntityLoader getOrCreateByInternalFetchProfileMerge(Function<LockMode, UniqueEntityLoader> builderFunction)
getOrCreateByInternalFetchProfileRefreshback to summary
pack-priv UniqueEntityLoader getOrCreateByInternalFetchProfileRefresh(Function<LockMode, UniqueEntityLoader> builderFunction)