Uses of Class
org.hibernate.engine.spi.EntityKey
Packages that use EntityKey
Package
Description
Support for bytecode interceptor implementations.
Package defining bytecode code enhancement (instrumentation) support.
This package defines some central internal SPI abstractions
used throughout the implementation of Hibernate.
Defines the event types and event listener interfaces for
events produced by the stateful
Session.SPI for execution of SQL statements via JDBC.
-
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(EnhancementAsProxyLazinessInterceptor.EntityRelatedState meta, 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 entityvoidBytecodeEnhancementMetadata.injectEnhancedEntityAsProxyInterceptor(Object entity, EntityKey entityKey, SharedSessionContractImplementor session) -
Uses of EntityKey in org.hibernate.engine.spi
Methods in org.hibernate.engine.spi that return EntityKeyModifier and TypeMethodDescriptionstatic EntityKeyEntityKey.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 anEntityKeywith the given id and for the entity represented by the givenEntityPersister.SharedSessionDelegatorBaseImpl.generateEntityKey(Object id, EntityPersister persister) EntityEntry.getEntityKey()Get theEntityKeyfor this entry.EntityHolder.getEntityKey()AssociationKey.ownerKey()Returns the value of theownerKeyrecord component.Methods in org.hibernate.engine.spi that return types with arguments of type EntityKeyModifier and TypeMethodDescriptionPersistenceContext.getEntitiesByKey()Doubly internalPersistenceContext.getEntityHoldersByKey()Doubly internalPersistenceContext.getEntitySnapshotsByKey()PersistenceContext.getOrInitializeEntitySnapshotsByKey()SubselectFetch.getResultingEntityKeys()The entity-keys of all owners loaded from a particular executionMethods in org.hibernate.engine.spi with parameters of type EntityKeyModifier and TypeMethodDescriptionvoidBatchFetchQueue.addBatchLoadableEntityKey(EntityKey key) If an EntityKey represents a batch loadable entity, add it to the queue.voidPersistenceContext.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.voidAdd a canonical mapping from entity key to entity instancePersistenceContext.addEntityHolder(EntityKey key, Object entity) voidPersistenceContext.addNullProperty(EntityKey ownerKey, String propertyName) Record the fact that the association belonging to the keyed entity is null.voidAdd a proxy to the session cachevoidBatchFetchQueue.addSubselect(EntityKey key, SubselectFetch subquery) Adds a subselect fetch descriptor for the given entity key.voidPersistenceContext.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.booleanPersistenceContext.containsDeletedUnloadedEntityKey(EntityKey ek) booleanPersistenceContext.containsEntity(EntityKey key) Is there an entity with the given key in the persistence contextbooleanPersistenceContext.containsEntityHolder(EntityKey key) booleanBatchFetchQueue.containsEntityKey(EntityKey key) Intended for test usage.default @Nullable EntityHolderPersistenceContext.detachEntity(EntityKey key) Remove theEntityHolderand set its state toDETACHED.voidSessionDelegatorBaseImpl.forceFlush(EntityKey e) voidSessionImplementor.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 EntityHolderPersistenceContext.getEntityHolder(EntityKey key) SessionDelegatorBaseImpl.getEntityUsingInterceptor(EntityKey key) SharedSessionContractImplementor.getEntityUsingInterceptor(EntityKey key) Get the entity instance associated with the givenEntityKey, calling theInterceptorif necessary.SharedSessionDelegatorBaseImpl.getEntityUsingInterceptor(EntityKey key) Get an existing proxy by key@Nullable SubselectFetchBatchFetchQueue.getSubselect(EntityKey key) Retrieve the fetch descriptor associated with the given entity key.booleanPersistenceContext.isPropertyNull(EntityKey ownerKey, String propertyName) Is the association property belonging to the keyed entity null?SessionDelegatorBaseImpl.loadFromSecondLevelCache(EntityPersister persister, EntityKey entityKey, Object instanceToLoad, LockMode lockMode) SharedSessionContractImplementor.loadFromSecondLevelCache(EntityPersister persister, EntityKey entityKey, Object instanceToLoad, LockMode lockMode) Attempts to load the entity from the second-level cache.SharedSessionDelegatorBaseImpl.loadFromSecondLevelCache(EntityPersister persister, EntityKey entityKey, Object instanceToLoad, LockMode lockMode) 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.voidPersistenceContext.registerDeletedUnloadedEntityKey(EntityKey key) voidPersistenceContext.registerNullifiableEntityKey(EntityKey key) Registers anEntityKeyas nullifiable on thisPersistenceContext.voidBatchFetchQueue.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 necessaryvoidPersistenceContext.removeDeletedUnloadedEntityKey(EntityKey key) PersistenceContext.removeEntity(EntityKey key) Remove an entity.@Nullable EntityHolderPersistenceContext.removeEntityHolder(EntityKey key) PersistenceContext.removeProxy(EntityKey key) Remove a proxy from the session cache.voidBatchFetchQueue.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)voidPersistenceContext.replaceDelayedEntityIdentityInsertKeys(EntityKey oldKey, Object generatedId) Method parameters in org.hibernate.engine.spi with type arguments of type EntityKeyModifier and TypeMethodDescriptionbooleanPersistenceContext.containsNullifiableEntityKey(Supplier<EntityKey> sek) Checks if a certainEntityKeywas registered as nullifiable on thisPersistenceContext.Constructors in org.hibernate.engine.spi with parameters of type EntityKeyModifierConstructorDescriptionAssociationKey(EntityKey ownerKey, String propertyName) Creates an instance of aAssociationKeyrecord class.Constructor 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.spi
Methods in org.hibernate.event.spi with parameters of type EntityKeyModifier and TypeMethodDescriptionvoidEventSource.forceFlush(EntityKey e) Force an immediate flush -
Uses of EntityKey in org.hibernate.sql.exec.spi
Methods in org.hibernate.sql.exec.spi that return EntityKeyModifier and TypeMethodDescriptionLoadedValuesCollector.LoadedEntityRegistration.entityKey()Returns the value of theentityKeyrecord component.Methods in org.hibernate.sql.exec.spi with parameters of type EntityKeyModifier and TypeMethodDescriptionvoidLoadedValuesCollector.registerEntity(NavigablePath navigablePath, EntityMappingType entityDescriptor, EntityKey entityKey) Register a loading entity.Constructors in org.hibernate.sql.exec.spi with parameters of type EntityKeyModifierConstructorDescriptionLoadedEntityRegistration(NavigablePath navigablePath, EntityMappingType entityDescriptor, EntityKey entityKey) Creates an instance of aLoadedEntityRegistrationrecord class. -
Uses of EntityKey in org.hibernate.sql.results.graph.entity
Methods in org.hibernate.sql.results.graph.entity that return EntityKeyModifier and TypeMethodDescriptiondefault @Nullable EntityKeyEntityInitializer.resolveEntityKeyOnly(RowProcessingState rowProcessingState) -
Uses of EntityKey in org.hibernate.sql.results.spi
Methods in org.hibernate.sql.results.spi that return EntityKeyModifier and TypeMethodDescription@Nullable EntityKeyRowReader.resolveSingleResultEntityKey(RowProcessingState rowProcessingState)