01: package org.garret.perst.impl;
02:
03: import java.lang.reflect.*;
04:
05: public interface ReflectionProvider {
06: Constructor getDefaultConstructor(Class cls) throws Exception;
07:
08: void setInt(Field field, Object object, int value) throws Exception;
09:
10: void setLong(Field field, Object object, long value)
11: throws Exception;
12:
13: void setShort(Field field, Object object, short value)
14: throws Exception;
15:
16: void setChar(Field field, Object object, char value)
17: throws Exception;
18:
19: void setByte(Field field, Object object, byte value)
20: throws Exception;
21:
22: void setFloat(Field field, Object object, float value)
23: throws Exception;
24:
25: void setDouble(Field field, Object object, double value)
26: throws Exception;
27:
28: void setBoolean(Field field, Object object, boolean value)
29: throws Exception;
30:
31: void set(Field field, Object object, Object value) throws Exception;
32: }
|