Package org.hibernate.engine.spi
Interface PersistentAttributeInterceptor
- All Superinterfaces:
LazyPropertyInitializer.InterceptorImplementor
- All Known Subinterfaces:
BytecodeLazyAttributeInterceptor
,SessionAssociableInterceptor
- All Known Implementing Classes:
AbstractInterceptor
,AbstractLazyLoadInterceptor
,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 void
attributeInitialized
(String name) Deprecated.Just as the method it overrides.Deprecated.Just as the method it overrides.default boolean
isAttributeLoaded
(String fieldName) Deprecated.Interceptors that deal with * lazy state should implementBytecodeLazyAttributeInterceptor
boolean
readBoolean
(Object obj, String name, boolean oldValue) byte
char
double
readDouble
(Object obj, String name, double oldValue) float
int
long
readObject
(Object obj, String name, Object oldValue) short
boolean
writeBoolean
(Object obj, String name, boolean oldValue, boolean newValue) byte
char
double
writeDouble
(Object obj, String name, double oldValue, double newValue) float
writeFloat
(Object obj, String name, float oldValue, float newValue) int
long
writeObject
(Object obj, String name, Object oldValue, Object newValue) short
writeShort
(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:
getInitializedLazyAttributeNames
in interfaceLazyPropertyInitializer.InterceptorImplementor
-
attributeInitialized
Deprecated.Just as the method it overrides. Interceptors that deal with lazy state should implementBytecodeLazyAttributeInterceptor
- Specified by:
attributeInitialized
in interfaceLazyPropertyInitializer.InterceptorImplementor
-
isAttributeLoaded
Deprecated.Interceptors that deal with * lazy state should implementBytecodeLazyAttributeInterceptor
Callback from the enhanced class that an attribute has been loaded- Parameters:
fieldName
-- Returns:
- true id the attribute is loaded false otherwise
-