Top Description Methods
org.hibernate.engine.spi

public Interface PersistentAttributeInterceptor

extends InterceptorImplementor
Known Direct Subinterfaces
org.hibernate.bytecode.enhance.spi.interceptor.SessionAssociableInterceptor
Annotations
@Incubating
@SuppressWarnings:unused
Imports
java.util.Collections, .Set, org.hibernate.Incubating, org.hibernate.bytecode.enhance.spi.LazyPropertyInitializer.InterceptorImplementor, org.hibernate.bytecode.enhance.spi.interceptor.BytecodeLazyAttributeInterceptor

Deprecated

as a consequence of LazyPropertyInitializer.InterceptorImplementor being deprecated. See corresponding docs for further information.

The base contract for interceptors that can be injected into enhanced entities for the purpose of intercepting attribute access
Author
Steve Ebersole
See Also
PersistentAttributeInterceptable

Method Summary

Modifier and TypeMethod and Description
public default void
public default Set<String>
public default boolean

Returns:

true id the attribute is loaded false otherwise
isAttributeLoaded
(String fieldName)

Deprecated Interceptors that deal with * lazy state should implement BytecodeLazyAttributeInterceptor
Callback from the enhanced class that an attribute has been loaded
public boolean
readBoolean(Object obj, String name, boolean oldValue)

public byte
readByte(Object obj, String name, byte oldValue)

public char
readChar(Object obj, String name, char oldValue)

public double
readDouble(Object obj, String name, double oldValue)

public float
readFloat(Object obj, String name, float oldValue)

public int
readInt(Object obj, String name, int oldValue)

public long
readLong(Object obj, String name, long oldValue)

public Object
readObject(Object obj, String name, Object oldValue)

public short
readShort(Object obj, String name, short oldValue)

public boolean
writeBoolean(Object obj, String name, boolean oldValue, boolean newValue)

public byte
writeByte(Object obj, String name, byte oldValue, byte newValue)

public char
writeChar(Object obj, String name, char oldValue, char newValue)

public double
writeDouble(Object obj, String name, double oldValue, double newValue)

public float
writeFloat(Object obj, String name, float oldValue, float newValue)

public int
writeInt(Object obj, String name, int oldValue, int newValue)

public long
writeLong(Object obj, String name, long oldValue, long newValue)

public Object
writeObject(Object obj, String name, Object oldValue, Object newValue)

public short
writeShort(Object obj, String name, short oldValue, short newValue)

Method Detail

attributeInitializedback to summary
public default void attributeInitialized(String name)

Overrides default org.hibernate.bytecode.enhance.spi.LazyPropertyInitializer.InterceptorImplementor.attributeInitialized.

Deprecated

Just as the method it overrides. Interceptors that deal with lazy state should implement BytecodeLazyAttributeInterceptor

Annotations
@Override
@Deprecated
getInitializedLazyAttributeNamesback to summary
public default Set<String> getInitializedLazyAttributeNames()

Overrides default org.hibernate.bytecode.enhance.spi.LazyPropertyInitializer.InterceptorImplementor.getInitializedLazyAttributeNames.

Deprecated

Just as the method it overrides. Interceptors that deal with lazy state should implement BytecodeLazyAttributeInterceptor

Annotations
@Deprecated
@Override
isAttributeLoadedback to summary
public default boolean isAttributeLoaded(String fieldName)

Deprecated

Interceptors that deal with * lazy state should implement BytecodeLazyAttributeInterceptor

Callback from the enhanced class that an attribute has been loaded

Returns:boolean

true id the attribute is loaded false otherwise

Annotations
@Deprecated
readBooleanback to summary
public boolean readBoolean(Object obj, String name, boolean oldValue)
readByteback to summary
public byte readByte(Object obj, String name, byte oldValue)
readCharback to summary
public char readChar(Object obj, String name, char oldValue)
readDoubleback to summary
public double readDouble(Object obj, String name, double oldValue)
readFloatback to summary
public float readFloat(Object obj, String name, float oldValue)
readIntback to summary
public int readInt(Object obj, String name, int oldValue)
readLongback to summary
public long readLong(Object obj, String name, long oldValue)
readObjectback to summary
public Object readObject(Object obj, String name, Object oldValue)
readShortback to summary
public short readShort(Object obj, String name, short oldValue)
writeBooleanback to summary
public boolean writeBoolean(Object obj, String name, boolean oldValue, boolean newValue)
writeByteback to summary
public byte writeByte(Object obj, String name, byte oldValue, byte newValue)
writeCharback to summary
public char writeChar(Object obj, String name, char oldValue, char newValue)
writeDoubleback to summary
public double writeDouble(Object obj, String name, double oldValue, double newValue)
writeFloatback to summary
public float writeFloat(Object obj, String name, float oldValue, float newValue)
writeIntback to summary
public int writeInt(Object obj, String name, int oldValue, int newValue)
writeLongback to summary
public long writeLong(Object obj, String name, long oldValue, long newValue)
writeObjectback to summary
public Object writeObject(Object obj, String name, Object oldValue, Object newValue)
writeShortback to summary
public short writeShort(Object obj, String name, short oldValue, short newValue)