Uses of Class
org.hibernate.engine.spi.EntityKey
Packages that use EntityKey
Package
Description
The various concrete action implementations.
Support for bytecode interceptor implementations.
Package defining bytecode code enhancement (instrumentation) support.
Support for many of the internal workings of Hibernate.
This package defines some central internal SPI abstractions
used throughout the implementation of Hibernate.
This package defines a default set of event listeners that implement
the default behaviors of Hibernate session operations.
Defines the event types and event listener interfaces for
events produced by the stateful
Session
.An internal package containing implementations of central Hibernate APIs,
mostly defined in
org.hibernate
.Internal utility classes
SPI for execution of SQL statements via JDBC.
-
Uses of EntityKey in org.hibernate.action.internal
Methods in org.hibernate.action.internal that return EntityKeyModifier and TypeMethodDescriptionprotected EntityKey
EntityIdentityInsertAction.generateDelayedEntityKey()
protected abstract EntityKey
AbstractEntityInsertAction.getEntityKey()
Returns theEntityKey
.protected EntityKey
EntityIdentityInsertAction.getEntityKey()
protected EntityKey
EntityInsertAction.getEntityKey()
Methods in org.hibernate.action.internal with parameters of type EntityKeyModifier and TypeMethodDescriptionprotected void
EntityIdentityInsertAction.setEntityKey
(EntityKey entityKey) -
Uses of EntityKey in org.hibernate.bytecode.enhance.spi.interceptor
Methods in org.hibernate.bytecode.enhance.spi.interceptor that return EntityKeyConstructors in org.hibernate.bytecode.enhance.spi.interceptor with parameters of type EntityKeyModifierConstructorDescriptionEnhancementAsProxyLazinessInterceptor
(String entityName, Set<String> identifierAttributeNames, CompositeType nonAggregatedCidMapper, EntityKey entityKey, SharedSessionContractImplementor session) -
Uses of EntityKey in org.hibernate.bytecode.internal
Methods in org.hibernate.bytecode.internal with parameters of type EntityKeyModifier and TypeMethodDescriptionBytecodeEnhancementMetadataNonPojoImpl.createEnhancedProxy
(EntityKey keyToLoad, boolean addEmptyEntry, SharedSessionContractImplementor session) BytecodeEnhancementMetadataPojoImpl.createEnhancedProxy
(EntityKey entityKey, boolean addEmptyEntry, SharedSessionContractImplementor session) void
BytecodeEnhancementMetadataNonPojoImpl.injectEnhancedEntityAsProxyInterceptor
(Object entity, EntityKey entityKey, SharedSessionContractImplementor session) void
BytecodeEnhancementMetadataPojoImpl.injectEnhancedEntityAsProxyInterceptor
(Object entity, EntityKey entityKey, SharedSessionContractImplementor session) -
Uses of EntityKey in org.hibernate.bytecode.spi
Methods in org.hibernate.bytecode.spi with parameters of type EntityKeyModifier and TypeMethodDescriptionBytecodeEnhancementMetadata.createEnhancedProxy
(EntityKey keyToLoad, boolean addEmptyEntry, SharedSessionContractImplementor session) Create an "enhancement as proxy" instance for the given entityvoid
BytecodeEnhancementMetadata.injectEnhancedEntityAsProxyInterceptor
(Object entity, EntityKey entityKey, SharedSessionContractImplementor session) -
Uses of EntityKey in org.hibernate.engine.internal
Fields in org.hibernate.engine.internal declared as EntityKeyMethods in org.hibernate.engine.internal that return EntityKeyMethods in org.hibernate.engine.internal that return types with arguments of type EntityKeyModifier and TypeMethodDescriptionStatefulPersistenceContext.getEntitiesByKey()
Deprecated.this will be removed: it provides too wide access, making it hard to optimise the internals for specific access needs.StatefulPersistenceContext.getEntityHoldersByKey()
Methods in org.hibernate.engine.internal with parameters of type EntityKeyModifier and TypeMethodDescriptionvoid
StatefulPersistenceContext.addEnhancedProxy
(EntityKey key, PersistentAttributeInterceptable entity) StatefulPersistenceContext.addEntity
(Object entity, Status status, Object[] loadedState, EntityKey entityKey, Object version, LockMode lockMode, boolean existsInDatabase, EntityPersister persister, boolean disableVersionIncrement) void
StatefulPersistenceContext.addEntityHolder
(EntityKey key, Object entity) void
StatefulPersistenceContext.addNullProperty
(EntityKey ownerKey, String propertyName) void
static void
TwoPhaseLoad.addUninitializedCachedEntity
(EntityKey key, Object object, EntityPersister persister, LockMode lockMode, Object version, SharedSessionContractImplementor session) void
StatefulPersistenceContext.checkUniqueness
(EntityKey key, Object object) StatefulPersistenceContext.claimEntityHolderIfPossible
(EntityKey key, Object entity, JdbcValuesSourceProcessingState processingState, EntityInitializer<?> initializer) boolean
StatefulPersistenceContext.containsDeletedUnloadedEntityKey
(EntityKey ek) boolean
StatefulPersistenceContext.containsEntity
(EntityKey key) boolean
StatefulPersistenceContext.containsEntityHolder
(EntityKey key) StatefulPersistenceContext.detachEntity
(EntityKey key) Object[]
StatefulPersistenceContext.getCachedDatabaseSnapshot
(EntityKey key) @Nullable org.hibernate.engine.internal.StatefulPersistenceContext.EntityHolderImpl
StatefulPersistenceContext.getEntityHolder
(EntityKey key) boolean
StatefulPersistenceContext.isPropertyNull
(EntityKey ownerKey, String propertyName) StatefulPersistenceContext.narrowProxy
(Object proxy, EntityPersister persister, EntityKey key, Object object) StatefulPersistenceContext.proxyFor
(EntityPersister persister, EntityKey key, Object impl) void
StatefulPersistenceContext.registerDeletedUnloadedEntityKey
(EntityKey key) void
StatefulPersistenceContext.registerNullifiableEntityKey
(EntityKey key) static void
BatchFetchQueueHelper.removeBatchLoadableEntityKey
(EntityKey entityKey, SharedSessionContractImplementor session) Remove the entity key with the specifiedid
andpersister
from the batch loadable entitiesBatchFetchQueue
.void
StatefulPersistenceContext.removeDeletedUnloadedEntityKey
(EntityKey key) StatefulPersistenceContext.removeEntity
(EntityKey key) @Nullable org.hibernate.engine.internal.StatefulPersistenceContext.EntityHolderImpl
StatefulPersistenceContext.removeEntityHolder
(EntityKey key) StatefulPersistenceContext.removeProxy
(EntityKey key) void
StatefulPersistenceContext.replaceDelayedEntityIdentityInsertKeys
(EntityKey oldKey, Object generatedId) Method parameters in org.hibernate.engine.internal with type arguments of type EntityKeyModifier and TypeMethodDescriptionboolean
StatefulPersistenceContext.containsNullifiableEntityKey
(Supplier<EntityKey> sek) -
Uses of EntityKey in org.hibernate.engine.spi
Methods in org.hibernate.engine.spi that return EntityKeyModifier and TypeMethodDescriptionstatic EntityKey
EntityKey.deserialize
(ObjectInputStream ois, SessionFactoryImplementor sessionFactory) Custom deserialization routine used during deserialization of a Session/PersistenceContext for increased performance.SessionDelegatorBaseImpl.generateEntityKey
(Object id, EntityPersister persister) SharedSessionContractImplementor.generateEntityKey
(Object id, EntityPersister persister) Instantiate anEntityKey
with the given id and for the entity represented by the givenEntityPersister
.SharedSessionDelegatorBaseImpl.generateEntityKey
(Object id, EntityPersister persister) EntityEntry.getEntityKey()
Get theEntityKey
for this entry.EntityHolder.getEntityKey()
Methods in org.hibernate.engine.spi that return types with arguments of type EntityKeyModifier and TypeMethodDescriptionPersistenceContext.getEntitiesByKey()
Doubly internalPersistenceContext.getEntityHoldersByKey()
Doubly internalSubselectFetch.getResultingEntityKeys()
The entity-keys of all owners loaded from a particular executionMethods in org.hibernate.engine.spi with parameters of type EntityKeyModifier and TypeMethodDescriptionvoid
BatchFetchQueue.addBatchLoadableEntityKey
(EntityKey key) If an EntityKey represents a batch loadable entity, add it to the queue.void
PersistenceContext.addEnhancedProxy
(EntityKey key, PersistentAttributeInterceptable entity) Cross betweenPersistenceContext.addEntity(EntityKey, Object)
andPersistenceContext.addProxy(EntityKey, Object)
for use with enhancement-as-proxyPersistenceContext.addEntity
(Object entity, Status status, Object[] loadedState, EntityKey entityKey, Object version, LockMode lockMode, boolean existsInDatabase, EntityPersister persister, boolean disableVersionIncrement) Adds an entity to the internal caches.void
Add a canonical mapping from entity key to entity instancePersistenceContext.addEntityHolder
(EntityKey key, Object entity) void
PersistenceContext.addNullProperty
(EntityKey ownerKey, String propertyName) Record the fact that the association belonging to the keyed entity is null.void
Add a proxy to the session cachevoid
BatchFetchQueue.addSubselect
(EntityKey key, SubselectFetch subquery) Adds a subselect fetch descriptor for the given entity key.void
PersistenceContext.checkUniqueness
(EntityKey key, Object object) Attempts to check whether the given key represents an entity already loaded within the current session.PersistenceContext.claimEntityHolderIfPossible
(EntityKey key, @Nullable Object entity, JdbcValuesSourceProcessingState processingState, EntityInitializer<?> initializer) Return an existing entity holder for the entity key, possibly creating one if necessary.boolean
PersistenceContext.containsDeletedUnloadedEntityKey
(EntityKey ek) boolean
PersistenceContext.containsEntity
(EntityKey key) Is there an entity with the given key in the persistence contextboolean
PersistenceContext.containsEntityHolder
(EntityKey key) boolean
BatchFetchQueue.containsEntityKey
(EntityKey key) Intended for test usage.default @Nullable EntityHolder
PersistenceContext.detachEntity
(EntityKey key) Remove theEntityHolder
and set its state to DETACHEDvoid
SessionDelegatorBaseImpl.forceFlush
(EntityKey e) void
SessionImplementor.forceFlush
(EntityKey e) Initiate a flush to force deletion of a re-persisted entity.Object[]
PersistenceContext.getCachedDatabaseSnapshot
(EntityKey key) Retrieve the cached database snapshot for the requested entity key.Get the entity instance associated with the given key@Nullable EntityHolder
PersistenceContext.getEntityHolder
(EntityKey key) SessionDelegatorBaseImpl.getEntityUsingInterceptor
(EntityKey key) SharedSessionContractImplementor.getEntityUsingInterceptor
(EntityKey key) Get the entity instance associated with the givenEntityKey
, calling theInterceptor
if necessary.SharedSessionDelegatorBaseImpl.getEntityUsingInterceptor
(EntityKey key) Get an existing proxy by key@Nullable SubselectFetch
BatchFetchQueue.getSubselect
(EntityKey key) Retrieve the fetch descriptor associated with the given entity key.boolean
PersistenceContext.isPropertyNull
(EntityKey ownerKey, String propertyName) Is the association property belonging to the keyed entity null?PersistenceContext.narrowProxy
(Object proxy, EntityPersister persister, EntityKey key, Object object) If the existing proxy is insufficiently "narrow" (derived), instantiate a new proxy and overwrite the registration of the old one.PersistenceContext.proxyFor
(EntityPersister persister, EntityKey key, Object impl) Return the existing proxy associated with the givenEntityKey
, or the third argument (the entity associated with the key) if no proxy exists.void
PersistenceContext.registerDeletedUnloadedEntityKey
(EntityKey key) void
PersistenceContext.registerNullifiableEntityKey
(EntityKey key) Registers anEntityKey
as nullifiable on thisPersistenceContext
.void
BatchFetchQueue.removeBatchLoadableEntityKey
(EntityKey key) After evicting or deleting or loading an entity, we don't need to batch fetch it anymore, remove it from the queue if necessaryvoid
PersistenceContext.removeDeletedUnloadedEntityKey
(EntityKey key) PersistenceContext.removeEntity
(EntityKey key) Remove an entity.@Nullable EntityHolder
PersistenceContext.removeEntityHolder
(EntityKey key) PersistenceContext.removeProxy
(EntityKey key) Remove a proxy from the session cache.void
BatchFetchQueue.removeSubselect
(EntityKey key) After evicting or deleting an entity, we don't need to know the query that was used to load it anymore (don't call this after loading the entity, since we might still need to load its collections)void
PersistenceContext.replaceDelayedEntityIdentityInsertKeys
(EntityKey oldKey, Object generatedId) Method parameters in org.hibernate.engine.spi with type arguments of type EntityKeyModifier and TypeMethodDescriptionboolean
PersistenceContext.containsNullifiableEntityKey
(Supplier<EntityKey> sek) Checks if a certainEntityKey
was registered as nullifiable on thisPersistenceContext
.Constructors in org.hibernate.engine.spi with parameters of type EntityKeyModifierConstructorDescriptionAssociationKey
(EntityKey ownerKey, String propertyName) Constructs an AssociationKeyConstructor parameters in org.hibernate.engine.spi with type arguments of type EntityKeyModifierConstructorDescriptionSubselectFetch
(QuerySpec loadingSqlAst, TableGroup ownerTableGroup, JdbcParametersList loadingJdbcParameters, JdbcParameterBindings loadingJdbcParameterBindings, Set<EntityKey> resultingEntityKeys) -
Uses of EntityKey in org.hibernate.event.internal
Methods in org.hibernate.event.internal with parameters of type EntityKeyModifier and TypeMethodDescriptionprotected void
DefaultEvictEventListener.doEvict
(Object object, EntityKey key, EntityPersister persister, EventSource session) protected Object
AbstractSaveEventListener.performSaveOrReplicate
(Object entity, EntityKey key, EntityPersister persister, boolean useIdentityColumn, C context, EventSource source, boolean delayIdentityInserts) Performs all the actual work needed to save an entity (well to get the save moved to the execution queue). -
Uses of EntityKey in org.hibernate.event.spi
Methods in org.hibernate.event.spi with parameters of type EntityKeyModifier and TypeMethodDescriptionvoid
EventSource.forceFlush
(EntityKey e) Force an immediate flush -
Uses of EntityKey in org.hibernate.internal
Methods in org.hibernate.internal that return EntityKeyModifier and TypeMethodDescriptionAbstractSharedSessionContract.generateEntityKey
(Object id, EntityPersister persister) Methods in org.hibernate.internal with parameters of type EntityKeyModifier and TypeMethodDescriptionvoid
SessionImpl.forceFlush
(EntityKey key) SessionImpl.getEntityUsingInterceptor
(EntityKey key) StatelessSessionImpl.getEntityUsingInterceptor
(EntityKey key) -
Uses of EntityKey in org.hibernate.internal.log
Methods in org.hibernate.internal.log with parameters of type EntityKeyModifier and TypeMethodDescriptionstatic String
LoggingHelper.toLoggableString
(EntityKey entityKey) -
Uses of EntityKey in org.hibernate.internal.util
Method parameters in org.hibernate.internal.util with type arguments of type EntityKeyModifier and TypeMethodDescriptionvoid
EntityPrinter.toString
(Iterable<Map.Entry<EntityKey, EntityHolder>> entitiesByEntityKey) -
Uses of EntityKey in org.hibernate.loader.ast.internal
Methods in org.hibernate.loader.ast.internal with parameters of type EntityKeyModifier and TypeMethodDescriptionvoid
AbstractMultiIdEntityLoader.ResolutionConsumer.consume
(int position, EntityKey entityKey, T resolvedRef) protected boolean
AbstractMultiIdEntityLoader.loadFromEnabledCaches
(MultiIdLoadOptions loadOptions, EventSource session, Object id, LockOptions lockOptions, EntityKey entityKey, List<Object> result, int i) CacheEntityLoaderHelper.loadFromSecondLevelCache
(EventSource source, Object entity, LockMode lockMode, EntityPersister persister, EntityKey entityKey) Attempts to load the entity from the second-level cache.CacheEntityLoaderHelper.loadFromSecondLevelCache
(LoadEvent event, EntityPersister persister, EntityKey entityKey) Attempts to load the entity from the second-level cache.CacheEntityLoaderHelper.loadFromSessionCache
(EntityKey keyToLoad, LoadEventListener.LoadType options, LockOptions lockOptions, EventSource session) CacheEntityLoaderHelper.loadFromSessionCache
(LoadEvent event, EntityKey keyToLoad, LoadEventListener.LoadType options) Attempts to locate the entity in the session-level cache.CacheEntityLoaderHelper.loadFromSessionCacheStatic
(LoadEvent event, EntityKey keyToLoad, LoadEventListener.LoadType options) Attempts to locate the entity in the session-level cache. -
Uses of EntityKey in org.hibernate.sql.exec.spi
Methods in org.hibernate.sql.exec.spi with parameters of type EntityKeyModifier and TypeMethodDescriptionstatic Object
StandardEntityInstanceResolver.resolveEntityInstance
(EntityKey entityKey, boolean eager, SharedSessionContractImplementor session) -
Uses of EntityKey in org.hibernate.sql.results.graph.entity
Methods in org.hibernate.sql.results.graph.entity that return EntityKeyModifier and TypeMethodDescriptiondefault @Nullable EntityKey
EntityInitializer.resolveEntityKeyOnly
(RowProcessingState rowProcessingState) -
Uses of EntityKey in org.hibernate.sql.results.graph.entity.internal
Fields in org.hibernate.sql.results.graph.entity.internal declared as EntityKeyModifier and TypeFieldDescriptionprotected @Nullable EntityKey
AbstractBatchEntitySelectFetchInitializer.AbstractBatchEntitySelectFetchInitializerData.entityKey
protected @Nullable EntityKey
EntityInitializerImpl.EntityInitializerData.entityKey
Methods in org.hibernate.sql.results.graph.entity.internal that return EntityKeyModifier and TypeMethodDescription@Nullable EntityKey
EntityInitializerImpl.resolveEntityKeyOnly
(RowProcessingState rowProcessingState) Methods in org.hibernate.sql.results.graph.entity.internal with parameters of type EntityKeyModifier and TypeMethodDescriptionprotected static Object
AbstractBatchEntitySelectFetchInitializer.loadInstance
(EntityKey entityKey, ToOneAttributeMapping toOneMapping, boolean affectedByFilter, SharedSessionContractImplementor session) -
Uses of EntityKey in org.hibernate.sql.results.internal
Methods in org.hibernate.sql.results.internal that return EntityKeyModifier and TypeMethodDescription@Nullable EntityKey
StandardRowReader.resolveSingleResultEntityKey
(RowProcessingState rowProcessingState) -
Uses of EntityKey in org.hibernate.sql.results.spi
Methods in org.hibernate.sql.results.spi that return EntityKeyModifier and TypeMethodDescription@Nullable EntityKey
RowReader.resolveSingleResultEntityKey
(RowProcessingState rowProcessingState)