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 voidattributeInitialized(String name)Deprecated.Just as the method it overrides.default Set<String>getInitializedLazyAttributeNames()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)bytereadByte(Object obj, String name, byte oldValue)charreadChar(Object obj, String name, char oldValue)doublereadDouble(Object obj, String name, double oldValue)floatreadFloat(Object obj, String name, float oldValue)intreadInt(Object obj, String name, int oldValue)longreadLong(Object obj, String name, long oldValue)ObjectreadObject(Object obj, String name, Object oldValue)shortreadShort(Object obj, String name, short oldValue)booleanwriteBoolean(Object obj, String name, boolean oldValue, boolean newValue)bytewriteByte(Object obj, String name, byte oldValue, byte newValue)charwriteChar(Object obj, String name, char oldValue, char newValue)doublewriteDouble(Object obj, String name, double oldValue, double newValue)floatwriteFloat(Object obj, String name, float oldValue, float newValue)intwriteInt(Object obj, String name, int oldValue, int newValue)longwriteLong(Object obj, String name, long oldValue, long newValue)ObjectwriteObject(Object obj, String name, Object oldValue, Object newValue)shortwriteShort(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:
getInitializedLazyAttributeNamesin 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:
attributeInitializedin interfaceLazyPropertyInitializer.InterceptorImplementor
-
isAttributeLoaded
@Deprecated default boolean isAttributeLoaded(String fieldName)
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
-
-