类 BytecodeEnhancementMetadataNonPojoImpl
- java.lang.Object
-
- org.hibernate.tuple.entity.BytecodeEnhancementMetadataNonPojoImpl
-
- 所有已实现的接口:
BytecodeEnhancementMetadata
public class BytecodeEnhancementMetadataNonPojoImpl extends Object implements BytecodeEnhancementMetadata
- 作者:
- Steve Ebersole
-
-
构造器概要
构造器 构造器 说明 BytecodeEnhancementMetadataNonPojoImpl(String entityName)
-
方法概要
-
-
-
构造器详细资料
-
BytecodeEnhancementMetadataNonPojoImpl
public BytecodeEnhancementMetadataNonPojoImpl(String entityName)
-
-
方法详细资料
-
getEntityName
public String getEntityName()
从接口复制的说明:BytecodeEnhancementMetadataThe name of the entity to which this metadata applies.- 指定者:
getEntityName在接口中BytecodeEnhancementMetadata- 返回:
- The entity name
-
isEnhancedForLazyLoading
public boolean isEnhancedForLazyLoading()
从接口复制的说明:BytecodeEnhancementMetadataHas the entity class been bytecode enhanced for lazy loading?- 指定者:
isEnhancedForLazyLoading在接口中BytecodeEnhancementMetadata- 返回:
trueindicates the entity class is enhanced for Hibernate use in lazy loading;falseindicates it is not
-
getLazyAttributesMetadata
public LazyAttributesMetadata getLazyAttributesMetadata()
-
injectInterceptor
public LazyAttributeLoadingInterceptor injectInterceptor(Object entity, Object identifier, SharedSessionContractImplementor session) throws NotInstrumentedException
从接口复制的说明:BytecodeEnhancementMetadataBuild and inject an interceptor instance into the enhanced entity.- 指定者:
injectInterceptor在接口中BytecodeEnhancementMetadata- 参数:
entity- The entity into which built interceptor should be injectedsession- The session to which the entity instance belongs.- 返回:
- The built and injected interceptor
- 抛出:
NotInstrumentedException- Thrown ifBytecodeEnhancementMetadata.isEnhancedForLazyLoading()returnsfalse
-
injectInterceptor
public void injectInterceptor(Object entity, PersistentAttributeInterceptor interceptor, SharedSessionContractImplementor session)
- 指定者:
injectInterceptor在接口中BytecodeEnhancementMetadata
-
injectEnhancedEntityAsProxyInterceptor
public void injectEnhancedEntityAsProxyInterceptor(Object entity, EntityKey entityKey, SharedSessionContractImplementor session)
-
createEnhancedProxy
public PersistentAttributeInterceptable createEnhancedProxy(EntityKey keyToLoad, boolean addEmptyEntry, SharedSessionContractImplementor session)
从接口复制的说明:BytecodeEnhancementMetadataCreate an "enhancement as proxy" instance for the given entity
-
extractInterceptor
public LazyAttributeLoadingInterceptor extractInterceptor(Object entity) throws NotInstrumentedException
从接口复制的说明:BytecodeEnhancementMetadataExtract the field interceptor instance from the enhanced entity.- 指定者:
extractInterceptor在接口中BytecodeEnhancementMetadata- 参数:
entity- The entity from which to extract the interceptor- 返回:
- The extracted interceptor
- 抛出:
NotInstrumentedException- Thrown ifBytecodeEnhancementMetadata.isEnhancedForLazyLoading()returnsfalse
-
extractLazyInterceptor
public BytecodeLazyAttributeInterceptor extractLazyInterceptor(Object entity) throws NotInstrumentedException
-
hasUnFetchedAttributes
public boolean hasUnFetchedAttributes(Object entity)
-
isAttributeLoaded
public boolean isAttributeLoaded(Object entity, String attributeName)
- 指定者:
isAttributeLoaded在接口中BytecodeEnhancementMetadata
-
-