public class BytecodeEnhancementMetadataNonPojoImpl extends Object implements BytecodeEnhancementMetadata
| Constructor and Description |
|---|
BytecodeEnhancementMetadataNonPojoImpl(String entityName) |
| Modifier and Type | Method and Description |
|---|---|
LazyAttributeLoadingInterceptor |
extractInterceptor(Object entity)
Extract the field interceptor instance from the enhanced entity.
|
String |
getEntityName()
The name of the entity to which this metadata applies.
|
LazyAttributesMetadata |
getLazyAttributesMetadata() |
boolean |
hasUnFetchedAttributes(Object entity) |
LazyAttributeLoadingInterceptor |
injectInterceptor(Object entity,
SharedSessionContractImplementor session)
Build and inject an interceptor instance into the enhanced entity.
|
boolean |
isAttributeLoaded(Object entity,
String attributeName) |
boolean |
isEnhancedForLazyLoading()
Has the entity class been bytecode enhanced for lazy loading?
|
public BytecodeEnhancementMetadataNonPojoImpl(String entityName)
public String getEntityName()
BytecodeEnhancementMetadataThe name of the entity to which this metadata applies.
getEntityName in interface BytecodeEnhancementMetadatapublic boolean isEnhancedForLazyLoading()
BytecodeEnhancementMetadataHas the entity class been bytecode enhanced for lazy loading?
isEnhancedForLazyLoading 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, SharedSessionContractImplementor session) throws NotInstrumentedException
BytecodeEnhancementMetadataBuild and inject an interceptor instance into the enhanced entity.
injectInterceptor 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 LazyAttributeLoadingInterceptor extractInterceptor(Object entity) throws NotInstrumentedException
BytecodeEnhancementMetadataExtract the field interceptor instance from the enhanced entity.
extractInterceptor in interface BytecodeEnhancementMetadataentity - The entity from which to extract the interceptorNotInstrumentedException - Thrown if BytecodeEnhancementMetadata.isEnhancedForLazyLoading() returns falsepublic boolean hasUnFetchedAttributes(Object entity)
hasUnFetchedAttributes in interface BytecodeEnhancementMetadatapublic boolean isAttributeLoaded(Object entity, String attributeName)
isAttributeLoaded in interface BytecodeEnhancementMetadataCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.