Interface BytecodeLazyAttributeInterceptor
-
- All Superinterfaces:
LazyPropertyInitializer.InterceptorImplementor,PersistentAttributeInterceptor,SessionAssociableInterceptor
- All Known Implementing Classes:
AbstractLazyLoadInterceptor,EnhancementAsProxyLazinessInterceptor,LazyAttributeLoadingInterceptor
public interface BytecodeLazyAttributeInterceptor extends SessionAssociableInterceptor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidattributeInitialized(java.lang.String name)Callback from the enhanced class that an attribute has been read or writtenjava.lang.StringgetEntityName()The name of the entity this interceptor is meant to interceptjava.lang.ObjectgetIdentifier()The id of the entity instance this interceptor is associated withjava.util.Set<java.lang.String>getInitializedLazyAttributeNames()The names of all lazy attributes which have been initializedbooleanhasAnyUninitializedAttributes()booleanisAttributeLoaded(java.lang.String fieldName)Callback from the enhanced class that an attribute has been loaded-
Methods 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 Detail
-
getEntityName
java.lang.String getEntityName()
The name of the entity this interceptor is meant to intercept
-
getIdentifier
java.lang.Object getIdentifier()
The id of the entity instance this interceptor is associated with
-
getInitializedLazyAttributeNames
java.util.Set<java.lang.String> getInitializedLazyAttributeNames()
The names of all lazy attributes which have been initialized- Specified by:
getInitializedLazyAttributeNamesin interfaceLazyPropertyInitializer.InterceptorImplementor- Specified by:
getInitializedLazyAttributeNamesin interfacePersistentAttributeInterceptor
-
attributeInitialized
void attributeInitialized(java.lang.String name)
Callback from the enhanced class that an attribute has been read or written- Specified by:
attributeInitializedin interfaceLazyPropertyInitializer.InterceptorImplementor- Specified by:
attributeInitializedin interfacePersistentAttributeInterceptor
-
isAttributeLoaded
boolean isAttributeLoaded(java.lang.String fieldName)
Description copied from interface:PersistentAttributeInterceptorCallback from the enhanced class that an attribute has been loaded- Specified by:
isAttributeLoadedin interfacePersistentAttributeInterceptor- Returns:
- true id the attribute is loaded false otherwise
-
hasAnyUninitializedAttributes
boolean hasAnyUninitializedAttributes()
-
-