public interface BytecodeEnhancementMetadata
| 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,
SessionImplementor session)
Build and inject an interceptor instance into the enhanced entity.
|
boolean |
isEnhancedForLazyLoading()
Has the entity class been bytecode enhanced for lazy loading?
|
String getEntityName()
boolean isEnhancedForLazyLoading()
true indicates the entity class is enhanced for Hibernate use
in lazy loading; false indicates it is notLazyAttributesMetadata getLazyAttributesMetadata()
LazyAttributeLoadingInterceptor injectInterceptor(Object entity, SessionImplementor session) throws NotInstrumentedException
entity - The entity into which built interceptor should be injectedsession - The session to which the entity instance belongs.NotInstrumentedException - Thrown if isEnhancedForLazyLoading() returns falseLazyAttributeLoadingInterceptor extractInterceptor(Object entity) throws NotInstrumentedException
entity - The entity from which to extract the interceptorNotInstrumentedException - Thrown if isEnhancedForLazyLoading() returns falseboolean hasUnFetchedAttributes(Object entity)
Copyright © 2017 JBoss by Red Hat. All rights reserved.