1 16 package com.ibatis.sqlmap.engine.accessplan; 17 18 import net.sf.cglib.beans.BulkBean; 19 20 23 public class EnhancedPropertyAccessPlan extends BaseAccessPlan { 24 25 private BulkBean bulkBean; 26 27 EnhancedPropertyAccessPlan(Class clazz, String [] propertyNames) { 28 super(clazz, propertyNames); 29 bulkBean = BulkBean.create(clazz, getGetterNames(propertyNames), getSetterNames(propertyNames), getTypes(propertyNames)); 30 } 31 32 public void setProperties(Object object, Object [] values) { 33 bulkBean.setPropertyValues(object, values); 34 } 35 36 public Object [] getProperties(Object object) { 37 return bulkBean.getPropertyValues(object); 38 } 39 40 } 41 | Popular Tags |