Interface BytecodeLazyAttributeInterceptor
- All Superinterfaces:
LazyPropertyInitializer.InterceptorImplementor
,PersistentAttributeInterceptor
,SessionAssociableInterceptor
- All Known Implementing Classes:
AbstractLazyLoadInterceptor
,EnhancementAsProxyLazinessInterceptor
,LazyAttributeLoadingInterceptor
-
Method Summary
Modifier and TypeMethodDescriptionvoid
attributeInitialized
(String name) Callback from the enhanced class that an attribute has been read or writtenThe name of the entity this interceptor is meant to interceptThe id of the entity instance this interceptor is associated withThe names of all lazy attributes which have been initializedboolean
boolean
isAttributeLoaded
(String fieldName) Callback from the enhanced class that an attribute has been loadedMethods inherited from interface org.hibernate.engine.spi.PersistentAttributeInterceptor
readBoolean, readByte, readChar, readDouble, readFloat, readInt, readLong, readObject, readShort, writeBoolean, writeByte, writeChar, writeDouble, writeFloat, writeInt, writeLong, writeObject, writeShort
Methods inherited from interface org.hibernate.bytecode.enhance.spi.interceptor.SessionAssociableInterceptor
allowLoadOutsideTransaction, getLinkedSession, getSessionFactoryUuid, setSession, unsetSession
-
Method Details
-
getEntityName
String getEntityName()The name of the entity this interceptor is meant to intercept -
getIdentifier
Object getIdentifier()The id of the entity instance this interceptor is associated with -
getInitializedLazyAttributeNames
The names of all lazy attributes which have been initialized- Specified by:
getInitializedLazyAttributeNames
in interfaceLazyPropertyInitializer.InterceptorImplementor
- Specified by:
getInitializedLazyAttributeNames
in interfacePersistentAttributeInterceptor
-
attributeInitialized
Callback from the enhanced class that an attribute has been read or written- Specified by:
attributeInitialized
in interfaceLazyPropertyInitializer.InterceptorImplementor
- Specified by:
attributeInitialized
in interfacePersistentAttributeInterceptor
-
isAttributeLoaded
Description copied from interface:PersistentAttributeInterceptor
Callback from the enhanced class that an attribute has been loaded- Specified by:
isAttributeLoaded
in interfacePersistentAttributeInterceptor
- Returns:
- true id the attribute is loaded false otherwise
-
hasAnyUninitializedAttributes
boolean hasAnyUninitializedAttributes()
-