public class BytecodeEnhancementMetadataNonPojoImpl extends Object implements BytecodeEnhancementMetadata
| Constructor and Description |
|---|
BytecodeEnhancementMetadataNonPojoImpl(String entityName) |
public BytecodeEnhancementMetadataNonPojoImpl(String entityName)
public String getEntityName()
BytecodeEnhancementMetadatagetEntityName in interface BytecodeEnhancementMetadatapublic boolean isEnhancedForLazyLoading()
BytecodeEnhancementMetadataisEnhancedForLazyLoading in interface BytecodeEnhancementMetadatatrue indicates the entity class is enhanced for Hibernate use
in lazy loading; false indicates it is notpublic LazyAttributesMetadata getLazyAttributesMetadata()
getLazyAttributesMetadata in interface BytecodeEnhancementMetadatapublic LazyAttributeLoadingInterceptor injectInterceptor(Object entity, Object identifier, SharedSessionContractImplementor session) throws NotInstrumentedException
BytecodeEnhancementMetadatainjectInterceptor in interface BytecodeEnhancementMetadataentity - The entity into which built interceptor should be injectedsession - The session to which the entity instance belongs.NotInstrumentedException - Thrown if BytecodeEnhancementMetadata.isEnhancedForLazyLoading() returns falsepublic void injectInterceptor(Object entity, PersistentAttributeInterceptor interceptor, SharedSessionContractImplementor session)
injectInterceptor in interface BytecodeEnhancementMetadatapublic void injectEnhancedEntityAsProxyInterceptor(Object entity, EntityKey entityKey, SharedSessionContractImplementor session)
injectEnhancedEntityAsProxyInterceptor in interface BytecodeEnhancementMetadatapublic PersistentAttributeInterceptable createEnhancedProxy(EntityKey keyToLoad, boolean addEmptyEntry, SharedSessionContractImplementor session)
BytecodeEnhancementMetadatacreateEnhancedProxy in interface BytecodeEnhancementMetadatapublic LazyAttributeLoadingInterceptor extractInterceptor(Object entity) throws NotInstrumentedException
BytecodeEnhancementMetadataextractInterceptor in interface BytecodeEnhancementMetadataentity - The entity from which to extract the interceptorNotInstrumentedException - Thrown if BytecodeEnhancementMetadata.isEnhancedForLazyLoading() returns falsepublic BytecodeLazyAttributeInterceptor extractLazyInterceptor(Object entity) throws NotInstrumentedException
extractLazyInterceptor in interface BytecodeEnhancementMetadataNotInstrumentedExceptionpublic boolean hasUnFetchedAttributes(Object entity)
hasUnFetchedAttributes in interface BytecodeEnhancementMetadatapublic boolean isAttributeLoaded(Object entity, String attributeName)
isAttributeLoaded in interface BytecodeEnhancementMetadataCopyright © 2001-2022 Red Hat, Inc. All Rights Reserved.