站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 3.2.3 正式版 API 英文文档

FieldHandler (Hibernate API Documentation) - Hibernate 3.2.3 正式版 API 英文文档


org.hibernate.bytecode.javassist
Interface FieldHandler

All Known Implementing Classes:
FieldInterceptorImpl

public interface FieldHandler

The interface defining how interception of a field should be handled.

Author:
Muga Nishizawa

Method Summary
 boolean readBoolean(Object obj, String name, boolean oldValue)
           
 byte readByte(Object obj, String name, byte oldValue)
           
 char readChar(Object obj, String name, char oldValue)
           
 double readDouble(Object obj, String name, double oldValue)
           
 float readFloat(Object obj, String name, float oldValue)
           
 int readInt(Object obj, String name, int oldValue)
           
 long readLong(Object obj, String name, long oldValue)
           
 Object readObject(Object obj, String name, Object oldValue)
           
 short readShort(Object obj, String name, short oldValue)
           
 boolean writeBoolean(Object obj, String name, boolean oldValue, boolean newValue)
           
 byte writeByte(Object obj, String name, byte oldValue, byte newValue)
           
 char writeChar(Object obj, String name, char oldValue, char newValue)
           
 double writeDouble(Object obj, String name, double oldValue, double newValue)
           
 float writeFloat(Object obj, String name, float oldValue, float newValue)
           
 int writeInt(Object obj, String name, int oldValue, int newValue)
          Called to handle writing an int value to a given field.
 long writeLong(Object obj, String name, long oldValue, long newValue)
           
 Object writeObject(Object obj, String name, Object oldValue, Object newValue)
           
 short writeShort(Object obj, String name, short oldValue, short newValue)
           
 

Method Detail

writeInt

public int writeInt(Object obj,
                    String name,
                    int oldValue,
                    int newValue)
Called to handle writing an int value to a given field.

Parameters:
obj - ?
name - The name of the field being written
oldValue - The old field value
newValue - The new field value.
Returns:
?

writeChar

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

writeByte

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

writeBoolean

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

writeShort

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

writeFloat

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

writeDouble

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

writeLong

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

writeObject

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

readInt

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

readChar

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

readByte

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

readBoolean

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

readShort

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

readFloat

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

readDouble

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

readLong

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

readObject

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