Top Description Constructors Methods
org.hibernate.intercept.cglib

public final Class FieldInterceptorImpl

extends AbstractFieldInterceptor
implements InterceptFieldCallback, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, net.sf.cglib.transform.impl.InterceptFieldCallback
Imports
java.io.Serializable, java.util.Set, net.sf.cglib.transform.impl.InterceptFieldCallback, org.hibernate.intercept.AbstractFieldInterceptor, org.hibernate.engine.SessionImplementor, org.hibernate.proxy.HibernateProxy, .LazyInitializer

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

Constructor Summary

AccessConstructor and Description
pack-priv
FieldInterceptorImpl(SessionImplementor
The Hibernate session
session
,
Set<E>
Names of the fields we need to initialize on load
uninitializedFields
,
String
The entity name to which we are being bound
entityName
)

Package-protected constructor

Method Summary

Modifier and TypeMethod and Description
public boolean
public byte
public char
public double
public float
public int
public long
public Object
public short
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
public boolean
writeBoolean(Object target, String name, boolean oldValue, boolean newValue)

Implements net.sf.cglib.transform.impl.InterceptFieldCallback.writeBoolean.

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

Implements net.sf.cglib.transform.impl.InterceptFieldCallback.writeByte.

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

Implements net.sf.cglib.transform.impl.InterceptFieldCallback.writeChar.

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

Implements net.sf.cglib.transform.impl.InterceptFieldCallback.writeDouble.

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

Implements net.sf.cglib.transform.impl.InterceptFieldCallback.writeFloat.

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

Implements net.sf.cglib.transform.impl.InterceptFieldCallback.writeInt.

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

Implements net.sf.cglib.transform.impl.InterceptFieldCallback.writeLong.

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

Implements net.sf.cglib.transform.impl.InterceptFieldCallback.writeShort.

Inherited from org.hibernate.intercept.AbstractFieldInterceptor:
clearDirtydirtygetEntityNamegetSessiongetUninitializedFieldsinterceptisDirtyisInitializedisInitializedisInitializingsetSession

Constructor Detail

FieldInterceptorImplback to summary
pack-priv FieldInterceptorImpl(SessionImplementor session, Set<E> uninitializedFields, String entityName)

Package-protected constructor

Parameters
session:SessionImplementor

The Hibernate session

uninitializedFields:Set<E>

Names of the fields we need to initialize on load

entityName:String

The entity name to which we are being bound

Method Detail

readBooleanback to summary
public boolean readBoolean(Object target, String name, boolean oldValue)

Implements net.sf.cglib.transform.impl.InterceptFieldCallback.readBoolean.

readByteback to summary
public byte readByte(Object target, String name, byte oldValue)

Implements net.sf.cglib.transform.impl.InterceptFieldCallback.readByte.

readCharback to summary
public char readChar(Object target, String name, char oldValue)

Implements net.sf.cglib.transform.impl.InterceptFieldCallback.readChar.

readDoubleback to summary
public double readDouble(Object target, String name, double oldValue)

Implements net.sf.cglib.transform.impl.InterceptFieldCallback.readDouble.

readFloatback to summary
public float readFloat(Object target, String name, float oldValue)

Implements net.sf.cglib.transform.impl.InterceptFieldCallback.readFloat.

readIntback to summary
public int readInt(Object target, String name, int oldValue)

Implements net.sf.cglib.transform.impl.InterceptFieldCallback.readInt.

readLongback to summary
public long readLong(Object target, String name, long oldValue)

Implements net.sf.cglib.transform.impl.InterceptFieldCallback.readLong.

readObjectback to summary
public Object readObject(Object target, String name, Object oldValue)

Implements net.sf.cglib.transform.impl.InterceptFieldCallback.readObject.

readShortback to summary
public short readShort(Object target, String name, short oldValue)

Implements net.sf.cglib.transform.impl.InterceptFieldCallback.readShort.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

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

Implements net.sf.cglib.transform.impl.InterceptFieldCallback.writeBoolean.

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

Implements net.sf.cglib.transform.impl.InterceptFieldCallback.writeByte.

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

Implements net.sf.cglib.transform.impl.InterceptFieldCallback.writeChar.

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

Implements net.sf.cglib.transform.impl.InterceptFieldCallback.writeDouble.

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

Implements net.sf.cglib.transform.impl.InterceptFieldCallback.writeFloat.

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

Implements net.sf.cglib.transform.impl.InterceptFieldCallback.writeInt.

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

Implements net.sf.cglib.transform.impl.InterceptFieldCallback.writeLong.

writeObjectback to summary
public Object writeObject(Object target, String name, Object oldValue, Object newValue)

Implements net.sf.cglib.transform.impl.InterceptFieldCallback.writeObject.

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

Implements net.sf.cglib.transform.impl.InterceptFieldCallback.writeShort.