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