for (int index = 0; index < annotations.length; index++) {
for (Annotation annotation : annotations[index]) {
Class<? extends Annotation> annotationType = annotation.annotationType();
if (Param.class.equals(annotationType)) {
Param param = (Param) annotation;
String value = param.value();
paramIndexes.put(value, index);
}
if (BatchParam.class.equals(annotationType) && batchParamIndexMap != null) {
BatchParam param = (BatchParam) annotation;
String value = param.value();
batchParamIndexMap.put(value, index);
batchParamIndexes = (Integer[]) ArrayUtils.add(batchParamIndexes, new Integer(index));
if (paramTypes[index] == null || !paramTypes[index].isArray()) {
throw new DaoGenerateException("@BatchParam can only on an array");