Uses of Class
org.hibernate.engine.spi.EntityKey
-
Packages that use EntityKey Package Description org.hibernate.bytecode.enhance.spi.interceptor interceptor implementationsorg.hibernate.bytecode.spi Package defining bytecode code enhancement (instrumentation) support.org.hibernate.engine.spi org.hibernate.loader org.hibernate.loader.entity org.hibernate.loader.plan.exec.process.spi org.hibernate.tuple.entity -
-
Uses of EntityKey in org.hibernate.bytecode.enhance.spi.interceptor
Methods in org.hibernate.bytecode.enhance.spi.interceptor that return EntityKey Modifier and Type Method Description EntityKeyEnhancementAsProxyLazinessInterceptor. getEntityKey()Constructors in org.hibernate.bytecode.enhance.spi.interceptor with parameters of type EntityKey Constructor Description EnhancementAsProxyLazinessInterceptor(java.lang.String entityName, java.util.Set<java.lang.String> identifierAttributeNames, CompositeType nonAggregatedCidMapper, EntityKey entityKey, SharedSessionContractImplementor session) -
Uses of EntityKey in org.hibernate.bytecode.spi
Methods in org.hibernate.bytecode.spi with parameters of type EntityKey Modifier and Type Method Description PersistentAttributeInterceptableBytecodeEnhancementMetadata. createEnhancedProxy(EntityKey keyToLoad, boolean addEmptyEntry, SharedSessionContractImplementor session)Create an "enhancement as proxy" instance for the given entityvoidBytecodeEnhancementMetadata. injectEnhancedEntityAsProxyInterceptor(java.lang.Object entity, EntityKey entityKey, SharedSessionContractImplementor session) -
Uses of EntityKey in org.hibernate.engine.spi
Methods in org.hibernate.engine.spi that return EntityKey Modifier and Type Method Description static EntityKeyEntityKey. deserialize(java.io.ObjectInputStream ois, SessionFactoryImplementor sessionFactory)Custom deserialization routine used during deserialization of a Session/PersistenceContext for increased performance.EntityKeySessionDelegatorBaseImpl. generateEntityKey(java.io.Serializable id, EntityPersister persister)EntityKeySharedSessionContractImplementor. generateEntityKey(java.io.Serializable id, EntityPersister persister)Hide the changing requirements of entity key creationEntityKeyEntityEntry. getEntityKey()Get the EntityKey based on this EntityEntry.Methods in org.hibernate.engine.spi with parameters of type EntityKey Modifier and Type Method Description voidBatchFetchQueue. 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-proxyEntityEntryPersistenceContext. addEntity(java.lang.Object entity, Status status, java.lang.Object[] loadedState, EntityKey entityKey, java.lang.Object version, LockMode lockMode, boolean existsInDatabase, EntityPersister persister, boolean disableVersionIncrement)Adds an entity to the internal caches.voidPersistenceContext. addEntity(EntityKey key, java.lang.Object entity)Add a canonical mapping from entity key to entity instancevoidPersistenceContext. addNullProperty(EntityKey ownerKey, java.lang.String propertyName)Record the fact that the association belonging to the keyed entity is null.voidPersistenceContext. addProxy(EntityKey key, java.lang.Object proxy)Add 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, java.lang.Object object)Attempts to check whether the given key represents an entity already loaded within the current session.booleanPersistenceContext. containsEntity(EntityKey key)Is there an entity with the given key in the persistence contextbooleanBatchFetchQueue. containsEntityKey(EntityKey key)Intended for test usage.java.lang.Object[]PersistenceContext. getCachedDatabaseSnapshot(EntityKey key)Retrieve the cached database snapshot for the requested entity key.java.lang.ObjectPersistenceContext. getEntity(EntityKey key)Get the entity instance associated with the given keyjava.lang.ObjectSessionDelegatorBaseImpl. getEntityUsingInterceptor(EntityKey key)java.lang.ObjectSharedSessionContractImplementor. getEntityUsingInterceptor(EntityKey key)Get the entity instance associated with the given Key, calling the Interceptor if necessaryjava.lang.ObjectPersistenceContext. getProxy(EntityKey key)Get an existing proxy by keySubselectFetchBatchFetchQueue. getSubselect(EntityKey key)Retrieve the fetch descriptor associated with the given entity key.booleanPersistenceContext. isPropertyNull(EntityKey ownerKey, java.lang.String propertyName)Is the association property belonging to the keyed entity null?java.lang.ObjectPersistenceContext. narrowProxy(java.lang.Object proxy, EntityPersister persister, EntityKey key, java.lang.Object object)If the existing proxy is insufficiently "narrow" (derived), instantiate a new proxy and overwrite the registration of the old one.java.lang.ObjectPersistenceContext. proxyFor(EntityPersister persister, EntityKey key, java.lang.Object impl)Return the existing proxy associated with the given EntityKey, or the third argument (the entity associated with the key) if no proxy exists.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 necessaryjava.lang.ObjectPersistenceContext. removeEntity(EntityKey key)Remove an entity.java.lang.ObjectPersistenceContext. 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, java.io.Serializable generatedId)Method parameters in org.hibernate.engine.spi with type arguments of type EntityKey Modifier and Type Method Description booleanPersistenceContext. containsNullifiableEntityKey(java.util.function.Supplier<EntityKey> sek)Checks if a certainEntityKeywas registered as nullifiable on thisPersistenceContext.Constructors in org.hibernate.engine.spi with parameters of type EntityKey Constructor Description AssociationKey(EntityKey ownerKey, java.lang.String propertyName)Constructs an AssociationKey -
Uses of EntityKey in org.hibernate.loader
Methods in org.hibernate.loader that return EntityKey Modifier and Type Method Description protected static EntityKeyLoader. getOptionalObjectKey(QueryParameters queryParameters, SharedSessionContractImplementor session)Methods in org.hibernate.loader with parameters of type EntityKey Modifier and Type Method Description protected voidLoader. extractKeysFromResultSet(Loadable[] persisters, QueryParameters queryParameters, java.sql.ResultSet resultSet, SharedSessionContractImplementor session, EntityKey[] keys, LockMode[] lockModes, java.util.List hydratedObjects)protected voidLoader. instanceAlreadyLoaded(java.sql.ResultSet rs, int i, Loadable persister, EntityKey key, java.lang.Object object, LockMode requestedLockMode, java.util.List hydratedObjects, SharedSessionContractImplementor session)The entity instance is already in the session cacheprotected java.lang.ObjectLoader. instanceNotYetLoaded(java.sql.ResultSet rs, int i, Loadable persister, java.lang.String rowIdAlias, EntityKey key, LockMode lockMode, EntityKey optionalObjectKey, java.lang.Object optionalObject, java.util.List hydratedObjects, SharedSessionContractImplementor session)The entity instance is not in the session cacheprotected voidLoader. registerNonExists(EntityKey[] keys, Loadable[] persisters, SharedSessionContractImplementor session)For missing objects associated by one-to-one with another object in the result set, register the fact that the the object is missing with the session. -
Uses of EntityKey in org.hibernate.loader.entity
Methods in org.hibernate.loader.entity with parameters of type EntityKey Modifier and Type Method Description java.lang.ObjectCacheEntityLoaderHelper. loadFromSecondLevelCache(LoadEvent event, EntityPersister persister, EntityKey entityKey)Attempts to load the entity from the second-level cache.CacheEntityLoaderHelper.PersistenceContextEntryCacheEntityLoaderHelper. loadFromSessionCache(LoadEvent event, EntityKey keyToLoad, LoadEventListener.LoadType options)Attempts to locate the entity in the session-level cache. -
Uses of EntityKey in org.hibernate.loader.plan.exec.process.spi
Methods in org.hibernate.loader.plan.exec.process.spi that return EntityKey Modifier and Type Method Description EntityKeyResultSetProcessingContext.EntityReferenceProcessingState. getEntityKey()Obtain the registered EntityKey for this EntityReference for the row currently being processed.Methods in org.hibernate.loader.plan.exec.process.spi with parameters of type EntityKey Modifier and Type Method Description voidResultSetProcessingContext.EntityReferenceProcessingState. registerEntityKey(EntityKey entityKey)Register the processed EntityKey for this Entity for the row currently being processed.voidResultSetProcessingContext. registerHydratedEntity(EntityReference entityReference, EntityKey entityKey, java.lang.Object entityInstance) -
Uses of EntityKey in org.hibernate.tuple.entity
Methods in org.hibernate.tuple.entity with parameters of type EntityKey Modifier and Type Method Description PersistentAttributeInterceptableBytecodeEnhancementMetadataNonPojoImpl. createEnhancedProxy(EntityKey keyToLoad, boolean addEmptyEntry, SharedSessionContractImplementor session)PersistentAttributeInterceptableBytecodeEnhancementMetadataPojoImpl. createEnhancedProxy(EntityKey entityKey, boolean addEmptyEntry, SharedSessionContractImplementor session)voidBytecodeEnhancementMetadataNonPojoImpl. injectEnhancedEntityAsProxyInterceptor(java.lang.Object entity, EntityKey entityKey, SharedSessionContractImplementor session)voidBytecodeEnhancementMetadataPojoImpl. injectEnhancedEntityAsProxyInterceptor(java.lang.Object entity, EntityKey entityKey, SharedSessionContractImplementor session)
-