Home » Hibernate-3.3.2.GA » org.hibernate » intercept » javassist » [javadoc | source]
public final class: FieldInterceptorImpl [javadoc | source]

All Implemented Interfaces:
    Serializable, FieldHandler, FieldInterceptor

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

Note: most of the interesting functionality here is farmed off to the super-class. The stuff here mainly acts as an adapter to the Javassist-specific functionality, routing interception through the super-class's intercept() method
 FieldInterceptorImpl(SessionImplementor session,
    Set uninitializedFields,
    String entityName) 
    Package-protected constructor.
    session -
    uninitializedFields -
    entityName -
Method from org.hibernate.intercept.javassist.FieldInterceptorImpl Summary:
readBoolean,   readByte,   readChar,   readDouble,   readFloat,   readInt,   readLong,   readObject,   readShort,   toString,   writeBoolean,   writeByte,   writeChar,   writeDouble,   writeFloat,   writeInt,   writeLong,   writeObject,   writeShort
Methods from org.hibernate.intercept.AbstractFieldInterceptor:
clearDirty,   dirty,   getEntityName,   getSession,   getUninitializedFields,   intercept,   isDirty,   isInitialized,   isInitialized,   isInitializing,   setSession
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.hibernate.intercept.javassist.FieldInterceptorImpl Detail:
 public boolean readBoolean(Object target,
    String name,
    boolean oldValue) 
 public byte readByte(Object target,
    String name,
    byte oldValue) 
 public char readChar(Object target,
    String name,
    char oldValue) 
 public double readDouble(Object target,
    String name,
    double oldValue) 
 public float readFloat(Object target,
    String name,
    float oldValue) 
 public int readInt(Object target,
    String name,
    int oldValue) 
 public long readLong(Object target,
    String name,
    long oldValue) 
 public Object readObject(Object target,
    String name,
    Object oldValue) 
 public short readShort(Object target,
    String name,
    short oldValue) 
 public String toString() 
 public boolean writeBoolean(Object target,
    String name,
    boolean oldValue,
    boolean newValue) 
 public byte writeByte(Object target,
    String name,
    byte oldValue,
    byte newValue) 
 public char writeChar(Object target,
    String name,
    char oldValue,
    char newValue) 
 public double writeDouble(Object target,
    String name,
    double oldValue,
    double newValue) 
 public float writeFloat(Object target,
    String name,
    float oldValue,
    float newValue) 
 public int writeInt(Object target,
    String name,
    int oldValue,
    int newValue) 
 public long writeLong(Object target,
    String name,
    long oldValue,
    long newValue) 
 public Object writeObject(Object target,
    String name,
    Object oldValue,
    Object newValue) 
 public short writeShort(Object target,
    String name,
    short oldValue,
    short newValue)