类的使用
org.hibernate.engine.spi.EntityKey
-
使用EntityKey的程序包 程序包 说明 org.hibernate.action.internal Internals for action processing.org.hibernate.bytecode.enhance.spi.interceptor interceptor implementationsorg.hibernate.bytecode.spi Package defining bytecode code enhancement (instrumentation) support.org.hibernate.engine.internal Support for many of the internal workings of Hibernate.org.hibernate.engine.spi org.hibernate.event.internal This package defines a default set of event listeners that implements the default behaviors of Hibernate.org.hibernate.internal An internal package containing mostly implementations of central Hibernate APIs.org.hibernate.internal.util Internal utility classes.org.hibernate.loader This package defines functionality for processing JDBC result sets and returning complex graphs of persistent objects.org.hibernate.loader.entity This package defines entity loadersorg.hibernate.loader.plan.exec.process.internal org.hibernate.loader.plan.exec.process.spi org.hibernate.tuple.entity -
-
org.hibernate.action.internal中EntityKey的使用
返回EntityKey的org.hibernate.action.internal中的方法 修饰符和类型 方法 说明 protected EntityKeyEntityIdentityInsertAction. generateDelayedEntityKey()EntityKeyEntityIdentityInsertAction. getDelayedEntityKey()已过时。No Hibernate code currently uses this methodprotected abstract EntityKeyAbstractEntityInsertAction. getEntityKey()Returns theEntityKey.protected EntityKeyEntityIdentityInsertAction. getEntityKey()protected EntityKeyEntityInsertAction. getEntityKey()参数类型为EntityKey的org.hibernate.action.internal中的方法 修饰符和类型 方法 说明 protected voidEntityIdentityInsertAction. setEntityKey(EntityKey entityKey) -
org.hibernate.bytecode.enhance.spi.interceptor中EntityKey的使用
返回EntityKey的org.hibernate.bytecode.enhance.spi.interceptor中的方法 修饰符和类型 方法 说明 EntityKeyEnhancementAsProxyLazinessInterceptor. getEntityKey()参数类型为EntityKey的org.hibernate.bytecode.enhance.spi.interceptor中的构造器 构造器 说明 EnhancementAsProxyLazinessInterceptor(String entityName, Set<String> identifierAttributeNames, CompositeType nonAggregatedCidMapper, EntityKey entityKey, SharedSessionContractImplementor session) -
org.hibernate.bytecode.spi中EntityKey的使用
参数类型为EntityKey的org.hibernate.bytecode.spi中的方法 修饰符和类型 方法 说明 PersistentAttributeInterceptableBytecodeEnhancementMetadata. createEnhancedProxy(EntityKey keyToLoad, boolean addEmptyEntry, SharedSessionContractImplementor session)Create an "enhancement as proxy" instance for the given entityvoidBytecodeEnhancementMetadata. injectEnhancedEntityAsProxyInterceptor(Object entity, EntityKey entityKey, SharedSessionContractImplementor session) -
org.hibernate.engine.internal中EntityKey的使用
声明为EntityKey的org.hibernate.engine.internal中的字段 修饰符和类型 字段 说明 protected EntityKeyAbstractEntityEntry. cachedEntityKey返回EntityKey的org.hibernate.engine.internal中的方法 修饰符和类型 方法 说明 EntityKeyAbstractEntityEntry. getEntityKey()参数类型为EntityKey的org.hibernate.engine.internal中的方法 修饰符和类型 方法 说明 voidStatefulPersistenceContext. addEnhancedProxy(EntityKey key, PersistentAttributeInterceptable entity)EntityEntryStatefulPersistenceContext. addEntity(Object entity, Status status, Object[] loadedState, EntityKey entityKey, Object version, LockMode lockMode, boolean existsInDatabase, EntityPersister persister, boolean disableVersionIncrement)voidStatefulPersistenceContext. addEntity(EntityKey key, Object entity)voidStatefulPersistenceContext. addNullProperty(EntityKey ownerKey, String propertyName)voidStatefulPersistenceContext. addProxy(EntityKey key, Object proxy)static voidTwoPhaseLoad. addUninitializedCachedEntity(EntityKey key, Object object, EntityPersister persister, LockMode lockMode, Object version, SharedSessionContractImplementor session)Same asTwoPhaseLoad.addUninitializedEntity(org.hibernate.engine.spi.EntityKey, java.lang.Object, org.hibernate.persister.entity.EntityPersister, org.hibernate.LockMode, org.hibernate.engine.spi.SharedSessionContractImplementor), but here for an entity from the second level cachestatic voidTwoPhaseLoad. addUninitializedEntity(EntityKey key, Object object, EntityPersister persister, LockMode lockMode, SharedSessionContractImplementor session)Add an uninitialized instance of an entity class, as a placeholder to ensure object identity.voidStatefulPersistenceContext. checkUniqueness(EntityKey key, Object object)booleanStatefulPersistenceContext. containsEntity(EntityKey key)Object[]StatefulPersistenceContext. getCachedDatabaseSnapshot(EntityKey key)ObjectStatefulPersistenceContext. getEntity(EntityKey key)ObjectStatefulPersistenceContext. getProxy(EntityKey key)booleanStatefulPersistenceContext. isPropertyNull(EntityKey ownerKey, String propertyName)ObjectStatefulPersistenceContext. narrowProxy(Object proxy, EntityPersister persister, EntityKey key, Object object)ObjectStatefulPersistenceContext. proxyFor(EntityPersister persister, EntityKey key, Object impl)voidStatefulPersistenceContext. registerNullifiableEntityKey(EntityKey key)ObjectStatefulPersistenceContext. removeEntity(EntityKey key)ObjectStatefulPersistenceContext. removeProxy(EntityKey key)voidStatefulPersistenceContext. replaceDelayedEntityIdentityInsertKeys(EntityKey oldKey, Serializable generatedId)类型变量类型为EntityKey的org.hibernate.engine.internal中的方法参数 修饰符和类型 方法 说明 booleanStatefulPersistenceContext. containsNullifiableEntityKey(Supplier<EntityKey> sek) -
org.hibernate.engine.spi中EntityKey的使用
返回EntityKey的org.hibernate.engine.spi中的方法 修饰符和类型 方法 说明 static EntityKeyEntityKey. deserialize(ObjectInputStream ois, SessionFactoryImplementor sessionFactory)Custom deserialization routine used during deserialization of a Session/PersistenceContext for increased performance.EntityKeySessionDelegatorBaseImpl. generateEntityKey(Serializable id, EntityPersister persister)EntityKeySharedSessionContractImplementor. generateEntityKey(Serializable id, EntityPersister persister)Hide the changing requirements of entity key creationEntityKeyEntityEntry. getEntityKey()Get the EntityKey based on this EntityEntry.参数类型为EntityKey的org.hibernate.engine.spi中的方法 修饰符和类型 方法 说明 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(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.voidPersistenceContext. addEntity(EntityKey key, Object entity)Add a canonical mapping from entity key to entity instancevoidPersistenceContext. addNullProperty(EntityKey ownerKey, String propertyName)Record the fact that the association belonging to the keyed entity is null.voidPersistenceContext. addProxy(EntityKey key, 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, 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.Object[]PersistenceContext. getCachedDatabaseSnapshot(EntityKey key)Retrieve the cached database snapshot for the requested entity key.ObjectPersistenceContext. getEntity(EntityKey key)Get the entity instance associated with the given keyObjectSessionDelegatorBaseImpl. getEntityUsingInterceptor(EntityKey key)ObjectSharedSessionContractImplementor. getEntityUsingInterceptor(EntityKey key)Get the entity instance associated with the given Key, calling the Interceptor if necessaryObjectPersistenceContext. 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, String propertyName)Is the association property belonging to the keyed entity null?ObjectPersistenceContext. 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.ObjectPersistenceContext. proxyFor(EntityPersister persister, EntityKey key, 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 necessaryObjectPersistenceContext. removeEntity(EntityKey key)Remove an entity.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, Serializable generatedId)类型变量类型为EntityKey的org.hibernate.engine.spi中的方法参数 修饰符和类型 方法 说明 booleanPersistenceContext. containsNullifiableEntityKey(Supplier<EntityKey> sek)Checks if a certainEntityKeywas registered as nullifiable on thisPersistenceContext.参数类型为EntityKey的org.hibernate.engine.spi中的构造器 构造器 说明 AssociationKey(EntityKey ownerKey, String propertyName)Constructs an AssociationKey -
org.hibernate.event.internal中EntityKey的使用
参数类型为EntityKey的org.hibernate.event.internal中的方法 修饰符和类型 方法 说明 protected voidDefaultEvictEventListener. doEvict(Object object, EntityKey key, EntityPersister persister, EventSource session)protected SerializableAbstractSaveEventListener. performSaveOrReplicate(Object entity, EntityKey key, EntityPersister persister, boolean useIdentityColumn, Object anything, EventSource source, boolean requiresImmediateIdAccess)Performs all the actual work needed to save an entity (well to get the save moved to the execution queue). -
org.hibernate.internal中EntityKey的使用
返回EntityKey的org.hibernate.internal中的方法 修饰符和类型 方法 说明 EntityKeyAbstractSharedSessionContract. generateEntityKey(Serializable id, EntityPersister persister)参数类型为EntityKey的org.hibernate.internal中的方法 修饰符和类型 方法 说明 ObjectSessionImpl. getEntityUsingInterceptor(EntityKey key)ObjectStatelessSessionImpl. getEntityUsingInterceptor(EntityKey key) -
org.hibernate.internal.util中EntityKey的使用
类型变量类型为EntityKey的org.hibernate.internal.util中的方法参数 修饰符和类型 方法 说明 voidEntityPrinter. toString(Iterable<Map.Entry<EntityKey,Object>> entitiesByEntityKey) -
org.hibernate.loader中EntityKey的使用
参数类型为EntityKey的org.hibernate.loader中的方法 修饰符和类型 方法 说明 protected voidLoader. extractKeysFromResultSet(Loadable[] persisters, QueryParameters queryParameters, ResultSet resultSet, SharedSessionContractImplementor session, EntityKey[] keys, LockMode[] lockModes, List hydratedObjects) -
org.hibernate.loader.entity中EntityKey的使用
参数类型为EntityKey的org.hibernate.loader.entity中的方法 修饰符和类型 方法 说明 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. -
org.hibernate.loader.plan.exec.process.internal中EntityKey的使用
返回EntityKey的org.hibernate.loader.plan.exec.process.internal中的方法 修饰符和类型 方法 说明 EntityKeyHydratedEntityRegistration. getKey()static EntityKeyResultSetProcessorHelper. getOptionalObjectKey(QueryParameters queryParameters, SharedSessionContractImplementor session)EntityKeyResultSetProcessorHelper. interpretEntityKey(SharedSessionContractImplementor session, String optionalEntityName, Serializable optionalId, Object optionalObject)参数类型为EntityKey的org.hibernate.loader.plan.exec.process.internal中的方法 修饰符和类型 方法 说明 voidResultSetProcessingContextImpl. registerHydratedEntity(EntityReference entityReference, EntityKey entityKey, Object entityInstance) -
org.hibernate.loader.plan.exec.process.spi中EntityKey的使用
返回EntityKey的org.hibernate.loader.plan.exec.process.spi中的方法 修饰符和类型 方法 说明 EntityKeyResultSetProcessingContext.EntityReferenceProcessingState. getEntityKey()Obtain the registered EntityKey for this EntityReference for the row currently being processed.参数类型为EntityKey的org.hibernate.loader.plan.exec.process.spi中的方法 修饰符和类型 方法 说明 voidResultSetProcessingContext.EntityReferenceProcessingState. registerEntityKey(EntityKey entityKey)Register the processed EntityKey for this Entity for the row currently being processed.voidResultSetProcessingContext. registerHydratedEntity(EntityReference entityReference, EntityKey entityKey, Object entityInstance) -
org.hibernate.tuple.entity中EntityKey的使用
参数类型为EntityKey的org.hibernate.tuple.entity中的方法 修饰符和类型 方法 说明 PersistentAttributeInterceptableBytecodeEnhancementMetadataNonPojoImpl. createEnhancedProxy(EntityKey keyToLoad, boolean addEmptyEntry, SharedSessionContractImplementor session)PersistentAttributeInterceptableBytecodeEnhancementMetadataPojoImpl. createEnhancedProxy(EntityKey entityKey, boolean addEmptyEntry, SharedSessionContractImplementor session)voidBytecodeEnhancementMetadataNonPojoImpl. injectEnhancedEntityAsProxyInterceptor(Object entity, EntityKey entityKey, SharedSessionContractImplementor session)voidBytecodeEnhancementMetadataPojoImpl. injectEnhancedEntityAsProxyInterceptor(Object entity, EntityKey entityKey, SharedSessionContractImplementor session)
-