首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 开源软件 >

hibernate对象淘选功能

2012-12-28 
hibernate对象筛选功能筛选功能???package hb.utilimport java.lang.reflect.InvocationTargetException

hibernate对象筛选功能

筛选功能?

?

?

package hb.util;import java.lang.reflect.InvocationTargetException;import java.lang.reflect.Method;public class ParamObject {private Object instance;private String method;public ParamObject(Object instance,String method){this.instance = instance;this.method = method;}public Object execute() throws SecurityException, NoSuchMethodException, IllegalArgumentException, IllegalAccessException, InvocationTargetException{Class cls = instance.getClass();Method md = cls.getMethod(this.method, null);return md.invoke(instance, null);}}

?

热点排行