Package org.hibernate.engine.spi
Interface PersistentAttributeInterceptor
-
- All Superinterfaces:
LazyPropertyInitializer.InterceptorImplementor
- All Known Subinterfaces:
BytecodeLazyAttributeInterceptor,SessionAssociableInterceptor
- All Known Implementing Classes:
AbstractInterceptor,AbstractLazyLoadInterceptor,EnhancementAsProxyLazinessInterceptor,LazyAttributeLoadingInterceptor
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(java.lang.String name)Deprecated.Just as the method it overrides.default java.util.Set<java.lang.String>getInitializedLazyAttributeNames()Deprecated.Just as the method it overrides.default booleanisAttributeLoaded(java.lang.String fieldName)Deprecated.Interceptors that deal with * lazy state should implementBytecodeLazyAttributeInterceptorbooleanreadBoolean(java.lang.Object obj, java.lang.String name, boolean oldValue)bytereadByte(java.lang.Object obj, java.lang.String name, byte oldValue)charreadChar(java.lang.Object obj, java.lang.String name, char oldValue)doublereadDouble(java.lang.Object obj, java.lang.String name, double oldValue)floatreadFloat(java.lang.Object obj, java.lang.String name, float oldValue)intreadInt(java.lang.Object obj, java.lang.String name, int oldValue)longreadLong(java.lang.Object obj, java.lang.String name, long oldValue)java.lang.ObjectreadObject(java.lang.Object obj, java.lang.String name, java.lang.Object oldValue)shortreadShort(java.lang.Object obj, java.lang.String name, short oldValue)booleanwriteBoolean(java.lang.Object obj, java.lang.String name, boolean oldValue, boolean newValue)bytewriteByte(java.lang.Object obj, java.lang.String name, byte oldValue, byte newValue)charwriteChar(java.lang.Object obj, java.lang.String name, char oldValue, char newValue)doublewriteDouble(java.lang.Object obj, java.lang.String name, double oldValue, double newValue)floatwriteFloat(java.lang.Object obj, java.lang.String name, float oldValue, float newValue)intwriteInt(java.lang.Object obj, java.lang.String name, int oldValue, int newValue)longwriteLong(java.lang.Object obj, java.lang.String name, long oldValue, long newValue)java.lang.ObjectwriteObject(java.lang.Object obj, java.lang.String name, java.lang.Object oldValue, java.lang.Object newValue)shortwriteShort(java.lang.Object obj, java.lang.String name, short oldValue, short newValue)
-
-
-
Method Detail
-
readBoolean
boolean readBoolean(java.lang.Object obj, java.lang.String name, boolean oldValue)
-
writeBoolean
boolean writeBoolean(java.lang.Object obj, java.lang.String name, boolean oldValue, boolean newValue)
-
readByte
byte readByte(java.lang.Object obj, java.lang.String name, byte oldValue)
-
writeByte
byte writeByte(java.lang.Object obj, java.lang.String name, byte oldValue, byte newValue)
-
readChar
char readChar(java.lang.Object obj, java.lang.String name, char oldValue)
-
writeChar
char writeChar(java.lang.Object obj, java.lang.String name, char oldValue, char newValue)
-
readShort
short readShort(java.lang.Object obj, java.lang.String name, short oldValue)
-
writeShort
short writeShort(java.lang.Object obj, java.lang.String name, short oldValue, short newValue)
-
readInt
int readInt(java.lang.Object obj, java.lang.String name, int oldValue)
-
writeInt
int writeInt(java.lang.Object obj, java.lang.String name, int oldValue, int newValue)
-
readFloat
float readFloat(java.lang.Object obj, java.lang.String name, float oldValue)
-
writeFloat
float writeFloat(java.lang.Object obj, java.lang.String name, float oldValue, float newValue)
-
readDouble
double readDouble(java.lang.Object obj, java.lang.String name, double oldValue)
-
writeDouble
double writeDouble(java.lang.Object obj, java.lang.String name, double oldValue, double newValue)
-
readLong
long readLong(java.lang.Object obj, java.lang.String name, long oldValue)
-
writeLong
long writeLong(java.lang.Object obj, java.lang.String name, long oldValue, long newValue)
-
readObject
java.lang.Object readObject(java.lang.Object obj, java.lang.String name, java.lang.Object oldValue)
-
writeObject
java.lang.Object writeObject(java.lang.Object obj, java.lang.String name, java.lang.Object oldValue, java.lang.Object newValue)
-
getInitializedLazyAttributeNames
@Deprecated default java.util.Set<java.lang.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(java.lang.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(java.lang.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
-
-