return (bulkBean != null);
}
protected BulkBean buildGetBulkBean(Introspector is, Class<?> clazz, String[] fields, Class[] args) {
if (fields.length != args.length) {
throw new BeanMappingException("fields and args size is not match!");
}
String[] getters = new String[fields.length];
String[] setters = new String[fields.length];
for (int i = 0; i < fields.length; i++) {
String property = fields[i];
Class arg = args[i];
FastMethod setMethod = FastPropertySetExecutor.discover(is, clazz, property, arg);
FastMethod getMethod = FastPropertyGetExecutor.discover(is, clazz, property);
if (setMethod == null) {
throw new BeanMappingException("class[" + clazz.getName() + "] field[" + property + "] arg["
+ arg.getName() + "] set Method is not exist!");
}
if (getMethod == null) {
throw new BeanMappingException("class[" + clazz.getName() + "] field[" + property
+ "] get Method is not exist!");
}
if (getMethod.getReturnType() != arg) {
throw new BeanMappingException("class[" + clazz.getName() + "] field[" + property
+ "] getMethod does not match declared type");
}
setters[i] = setMethod.getName();
getters[i] = getMethod.getName();
}