Uses of Interface
org.hibernate.engine.spi.EntityEntry
Packages that use EntityEntry
Package
Description
The various concrete action implementations.
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
.This package abstracts persistence mechanisms for entities.
Defines support for performing mutation operations originating
from persistence-context events.
-
Uses of EntityEntry in org.hibernate.action.internal
Methods in org.hibernate.action.internal with parameters of type EntityEntryModifier and TypeMethodDescriptionprotected void
EntityUpdateAction.handleDeleted
(EntityEntry entry) protected void
EntityUpdateAction.updateCacheItem
(Object previousVersion, Object ck, EntityEntry entry) -
Uses of EntityEntry in org.hibernate.engine.internal
Classes in org.hibernate.engine.internal that implement EntityEntryModifier and TypeClassDescriptionclass
A base implementation ofEntityEntry
.final class
AnEntityEntry
implementation for immutable entities.final class
AnEntityEntry
implementation for mutable entities.Methods in org.hibernate.engine.internal that return EntityEntryModifier and TypeMethodDescriptionStatefulPersistenceContext.addEntity
(Object entity, Status status, Object[] loadedState, EntityKey entityKey, Object version, LockMode lockMode, boolean existsInDatabase, EntityPersister persister, boolean disableVersionIncrement) StatefulPersistenceContext.addEntry
(Object entity, Status status, Object[] loadedState, Object rowId, Object id, Object version, LockMode lockMode, boolean existsInDatabase, EntityPersister persister, boolean disableVersionIncrement) StatefulPersistenceContext.addReferenceEntry
(Object entity, Status status) ImmutableEntityEntryFactory.createEntityEntry
(Status status, Object[] loadedState, Object rowId, Object id, Object version, LockMode lockMode, boolean existsInDatabase, EntityPersister persister, boolean disableVersionIncrement, PersistenceContext persistenceContext) MutableEntityEntryFactory.createEntityEntry
(Status status, Object[] loadedState, Object rowId, Object id, Object version, LockMode lockMode, boolean existsInDatabase, EntityPersister persister, boolean disableVersionIncrement, PersistenceContext persistenceContext) static EntityEntry
ImmutableEntityEntry.deserialize
(ObjectInputStream ois, PersistenceContext persistenceContext) Custom deserialization routine used during deserialization of a Session/PersistenceContext for increased performance.static EntityEntry
MutableEntityEntry.deserialize
(ObjectInputStream ois, PersistenceContext persistenceContext) Custom deserialization routine used during deserialization of a Session/PersistenceContext for increased performance.EntityEntryContext.EntityEntryCrossRef.getEntityEntry()
The associated EntityEntryEntityEntryContext.getEntityEntry
(Object entity) Retrieve the associatedEntityEntry
for the given entity.EntityEntryContext.removeEntityEntry
(Object entity) Remove an entity from the context, returning itsEntityEntry
.StatefulPersistenceContext.removeEntry
(Object entity) Methods in org.hibernate.engine.internal that return types with arguments of type EntityEntryModifier and TypeMethodDescriptionEntityEntryContext.reentrantSafeEntityEntries()
The main bugaboo withIdentityMap
that warranted this class in the first place.StatefulPersistenceContext.reentrantSafeEntityEntries()
Methods in org.hibernate.engine.internal with parameters of type EntityEntryModifier and TypeMethodDescriptionvoid
EntityEntryContext.addEntityEntry
(Object entity, EntityEntry entityEntry) Adds the entity andEntityEntry
to this context, associating them.void
StatefulPersistenceContext.setEntryStatus
(EntityEntry entry, Status status) -
Uses of EntityEntry in org.hibernate.engine.spi
Methods in org.hibernate.engine.spi that return EntityEntryModifier and TypeMethodDescriptionManagedEntity.$$_hibernate_getEntityEntry()
Provides access to the associated EntityEntry.PersistenceContext.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.PersistenceContext.addEntry
(Object entity, Status status, Object[] loadedState, Object rowId, Object id, Object version, LockMode lockMode, boolean existsInDatabase, EntityPersister persister, boolean disableVersionIncrement) Generates an appropriate EntityEntry instance and adds it to the event source's internal caches.PersistenceContext.addReferenceEntry
(Object entity, Status status) EntityEntryFactory.createEntityEntry
(Status status, Object[] loadedState, Object rowId, Object id, Object version, LockMode lockMode, boolean existsInDatabase, EntityPersister persister, boolean disableVersionIncrement, PersistenceContext persistenceContext) CreatesEntityEntry
.@Nullable EntityEntry
EntityHolder.getEntityEntry()
Retrieve theEntityEntry
representation of the given entity.PersistenceContext.removeEntry
(Object entity) Remove an entity entry from the session cacheMethods in org.hibernate.engine.spi that return types with arguments of type EntityEntryModifier and TypeMethodDescriptionPersistenceContext.reentrantSafeEntityEntries()
Provides access to the entity/EntityEntry combos associated with the persistence context in a manner that is safe from reentrant access.Methods in org.hibernate.engine.spi with parameters of type EntityEntryModifier and TypeMethodDescriptionvoid
ManagedEntity.$$_hibernate_setEntityEntry
(EntityEntry entityEntry) Injects the EntityEntry associated with this entity instance.default String
SharedSessionContractImplementor.bestGuessEntityName
(Object object, EntityEntry entry) Obtain the best estimate of the entity name of the given entity instance, which is not involved in an association, by also considering information held in the proxy, and whether the object is already associated with this session.void
SessionDelegatorBaseImpl.forceFlush
(EntityEntry e) void
SessionImplementor.forceFlush
(EntityEntry e) Initiate a flush to force deletion of a re-persisted entity.void
EntityHolder.setEntityEntry
(@Nullable EntityEntry entry) void
PersistenceContext.setEntryStatus
(EntityEntry entry, Status status) Set the status of an entryvoid
ActionQueue.unScheduleDeletion
(EntityEntry entry, Object rescuedEntity) -
Uses of EntityEntry in org.hibernate.event.internal
Methods in org.hibernate.event.internal that return EntityEntryModifier and TypeMethodDescriptionprotected final EntityEntry
DefaultLockEventListener.reassociate
(AbstractEvent event, Object object, Object id, EntityPersister persister) Associates a given entity (either transient or associated with another session) to the given session.Methods in org.hibernate.event.internal with parameters of type EntityEntryModifier and TypeMethodDescriptionvoid
EmptyEventManager.completeDirtyCalculationEvent
(HibernateMonitoringEvent dirtyCalculationEvent, SharedSessionContractImplementor session, EntityPersister persister, EntityEntry entry, int[] dirtyProperties) protected final void
DefaultDeleteEventListener.deleteEntity
(EventSource session, Object entity, EntityEntry entityEntry, boolean isCascadeDeleteEnabled, boolean isOrphanRemovalBeforeUpdates, EntityPersister persister, DeleteContext transientEntities) Perform the entity deletion.static EntityState
EntityState.getEntityState
(Object entity, String entityName, EntityEntry entry, SessionImplementor source, Boolean assumedUnsaved) Determine whether the entity is persistent, detached, or transient -
Uses of EntityEntry in org.hibernate.event.spi
Methods in org.hibernate.event.spi that return EntityEntryMethods in org.hibernate.event.spi with parameters of type EntityEntryModifier and TypeMethodDescriptionvoid
EventManager.completeDirtyCalculationEvent
(HibernateMonitoringEvent dirtyCalculationEvent, SharedSessionContractImplementor session, EntityPersister persister, EntityEntry entry, int[] dirtyProperties) void
EventSource.forceFlush
(EntityEntry e) Force an immediate flushvoid
FlushEntityEvent.resetAndReuseEventInstance
(Object entity, EntityEntry entry) This is a terrible anti-pattern, but particular circumstances call for being able to reuse the same event instance: this is otherwise allocated in hot loops and since each event is escaping the scope it's actually causing allocation issues.void
SaveOrUpdateEvent.setEntry
(EntityEntry entry) Constructors in org.hibernate.event.spi with parameters of type EntityEntryModifierConstructorDescriptionFlushEntityEvent
(EventSource source, Object entity, EntityEntry entry) -
Uses of EntityEntry in org.hibernate.internal
Methods in org.hibernate.internal with parameters of type EntityEntryModifier and TypeMethodDescriptionSessionImpl.bestGuessEntityName
(Object object, EntityEntry entry) void
SessionImpl.forceFlush
(EntityEntry entityEntry) -
Uses of EntityEntry in org.hibernate.loader.ast.internal
Methods in org.hibernate.loader.ast.internal with parameters of type EntityEntryModifier and TypeMethodDescriptionstatic void
LoaderHelper.upgradeLock
(Object object, EntityEntry entry, LockOptions lockOptions, EventSource session) Ensure the LockMode associated with the entity in relation to a persistence context is great or equal to the requested mode, performing a pessimistic lock upgrade on a given entity, if needed. -
Uses of EntityEntry in org.hibernate.persister.entity
Methods in org.hibernate.persister.entity with parameters of type EntityEntryModifier and TypeMethodDescriptionstatic @Nullable Object
AbstractEntityPersister.getCollectionKey
(CollectionPersister persister, Object owner, EntityEntry ownerEntry, SharedSessionContractImplementor session) protected Object
AbstractEntityPersister.initializeLazyPropertiesFromCache
(String fieldName, Object entity, SharedSessionContractImplementor session, EntityEntry entry, CacheEntry cacheEntry) protected Object
AbstractEntityPersister.initializeLazyPropertiesFromDatastore
(Object entity, Object id, EntityEntry entry, String fieldName, SharedSessionContractImplementor session) protected boolean
AbstractEntityPersister.initializeLazyProperty
(String fieldName, Object entity, EntityEntry entry, int index, Object propValue) Called by Hibernate Reactiveprotected boolean
AbstractEntityPersister.initializeLazyProperty
(String fieldName, Object entity, EntityEntry entry, LazyAttributeDescriptor fetchGroupAttributeDescriptor, Object propValue) -
Uses of EntityEntry in org.hibernate.persister.entity.mutation
Methods in org.hibernate.persister.entity.mutation with parameters of type EntityEntryModifier and TypeMethodDescriptionfinal boolean
UpdateCoordinatorStandard.isModifiableEntity
(EntityEntry entry) -
Uses of EntityEntry in org.hibernate.sql.results.graph.entity.internal
Methods in org.hibernate.sql.results.graph.entity.internal with parameters of type EntityEntryModifier and TypeMethodDescriptionprotected void
EntityInitializerImpl.takeSnapshot
(EntityInitializerImpl.EntityInitializerData data, SharedSessionContractImplementor session, PersistenceContext persistenceContext, EntityEntry entityEntry, Object[] resolvedEntityState) -
Uses of EntityEntry in org.hibernate.testing.bytecode.enhancement
Methods in org.hibernate.testing.bytecode.enhancement that return EntityEntry