Package org.hibernate.engine.spi
Interface PersistentAttributeInterceptor
- All Superinterfaces:
LazyPropertyInitializer.InterceptorImplementor
- All Known Subinterfaces:
BytecodeLazyAttributeInterceptor,SessionAssociableInterceptor
- All Known Implementing Classes:
AbstractInterceptor,EnhancementAsProxyLazinessInterceptor,LazyAttributeLoadingInterceptor
@Incubating
public interface PersistentAttributeInterceptor
extends LazyPropertyInitializer.InterceptorImplementor
The base contract for interceptors that can be injected into
enhanced entities for the purpose of intercepting attribute access
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidattributeInitialized(String name) Deprecated.Just as the method it overrides.Deprecated.Just as the method it overrides.default booleanisAttributeLoaded(String fieldName) Deprecated.Interceptors that deal with * lazy state should implementBytecodeLazyAttributeInterceptorbooleanreadBoolean(Object obj, String name, boolean oldValue) bytechardoublereadDouble(Object obj, String name, double oldValue) floatintlongreadObject(Object obj, String name, Object oldValue) shortbooleanwriteBoolean(Object obj, String name, boolean oldValue, boolean newValue) bytechardoublewriteDouble(Object obj, String name, double oldValue, double newValue) floatwriteFloat(Object obj, String name, float oldValue, float newValue) intlongwriteObject(Object obj, String name, Object oldValue, Object newValue) shortwriteShort(Object obj, String name, short oldValue, short newValue)
-
Method Details
-
readBoolean
-
writeBoolean
-
readByte
-
writeByte
-
readChar
-
writeChar
-
readShort
-
writeShort
-
readInt
-
writeInt
-
readFloat
-
writeFloat
-
readDouble
-
writeDouble
-
readLong
-
writeLong
-
readObject
-
writeObject
-
getInitializedLazyAttributeNames
Deprecated.Just as the method it overrides. Interceptors that deal with lazy state should implementBytecodeLazyAttributeInterceptor- Specified by:
getInitializedLazyAttributeNamesin interfaceLazyPropertyInitializer.InterceptorImplementor
-
attributeInitialized
Deprecated.Just as the method it overrides. Interceptors that deal with lazy state should implementBytecodeLazyAttributeInterceptor- Specified by:
attributeInitializedin interfaceLazyPropertyInitializer.InterceptorImplementor
-
isAttributeLoaded
Deprecated.Interceptors that deal with * lazy state should implementBytecodeLazyAttributeInterceptorCallback from the enhanced class that an attribute has been loaded- Parameters:
fieldName-- Returns:
- true id the attribute is loaded false otherwise
-