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:
PersistentAttributeInterceptable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default void
attributeInitialized(String name)
Deprecated.Just as the method it overrides.default Set<String>
getInitializedLazyAttributeNames()
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
readByte(Object obj, String name, byte oldValue)
char
readChar(Object obj, String name, char oldValue)
double
readDouble(Object obj, String name, double oldValue)
float
readFloat(Object obj, String name, float oldValue)
int
readInt(Object obj, String name, int oldValue)
long
readLong(Object obj, String name, long oldValue)
Object
readObject(Object obj, String name, Object oldValue)
short
readShort(Object obj, String name, short oldValue)
boolean
writeBoolean(Object obj, String name, boolean oldValue, boolean newValue)
byte
writeByte(Object obj, String name, byte oldValue, byte newValue)
char
writeChar(Object obj, String name, char oldValue, char newValue)
double
writeDouble(Object obj, String name, double oldValue, double newValue)
float
writeFloat(Object obj, String name, float oldValue, float newValue)
int
writeInt(Object obj, String name, int oldValue, int newValue)
long
writeLong(Object obj, String name, long oldValue, long newValue)
Object
writeObject(Object obj, String name, Object oldValue, Object newValue)
short
writeShort(Object obj, String name, short oldValue, short newValue)
-
-
-
Method Detail
-
getInitializedLazyAttributeNames
@Deprecated default Set<String> getInitializedLazyAttributeNames()
Deprecated.Just as the method it overrides. Interceptors that deal with lazy state should implementBytecodeLazyAttributeInterceptor
- Specified by:
getInitializedLazyAttributeNames
in interfaceLazyPropertyInitializer.InterceptorImplementor
-
attributeInitialized
@Deprecated default void attributeInitialized(String name)
Deprecated.Just as the method it overrides. Interceptors that deal with lazy state should implementBytecodeLazyAttributeInterceptor
- Specified by:
attributeInitialized
in interfaceLazyPropertyInitializer.InterceptorImplementor
-
isAttributeLoaded
@Deprecated default boolean isAttributeLoaded(String fieldName)
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
-
-