org.hibernate.intercept.cglib

Class FieldInterceptorImpl

Implemented Interfaces:
InterceptFieldCallback, Serializable, FieldInterceptor

public final class FieldInterceptorImpl
extends AbstractFieldInterceptor
implements InterceptFieldCallback, Serializable

A field-level interceptor that initializes lazily fetched properties. This interceptor can be attached to classes instrumented by CGLIB. Note that this implementation assumes that the instance variable name is the same as the name of the persistent property that must be loaded.
Author:
Gavin King

Method Summary

boolean
readBoolean(Object target, String name, boolean oldValue)
byte
readByte(Object target, String name, byte oldValue)
char
readChar(Object target, String name, char oldValue)
double
readDouble(Object target, String name, double oldValue)
float
readFloat(Object target, String name, float oldValue)
int
readInt(Object target, String name, int oldValue)
long
readLong(Object target, String name, long oldValue)
Object
readObject(Object target, String name, Object oldValue)
short
readShort(Object target, String name, short oldValue)
String
toString()
boolean
writeBoolean(Object target, String name, boolean oldValue, boolean newValue)
byte
writeByte(Object target, String name, byte oldValue, byte newValue)
char
writeChar(Object target, String name, char oldValue, char newValue)
double
writeDouble(Object target, String name, double oldValue, double newValue)
float
writeFloat(Object target, String name, float oldValue, float newValue)
int
writeInt(Object target, String name, int oldValue, int newValue)
long
writeLong(Object target, String name, long oldValue, long newValue)
Object
writeObject(Object target, String name, Object oldValue, Object newValue)
short
writeShort(Object target, String name, short oldValue, short newValue)

Methods inherited from class org.hibernate.intercept.AbstractFieldInterceptor

clearDirty, dirty, getEntityName, getSession, getUninitializedFields, intercept, isDirty, isInitialized, isInitialized, isInitializing, setSession

Method Details

readBoolean

public boolean readBoolean(Object target,
                           String name,
                           boolean oldValue)

readByte

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

readChar

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

readDouble

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

readFloat

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

readInt

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

readLong

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

readObject

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

readShort

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

toString

public String toString()

writeBoolean

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

writeByte

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

writeChar

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

writeDouble

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

writeFloat

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

writeInt

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

writeLong

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

writeObject

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

writeShort

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