SqlUpdGenerator sqlGenerator = new SqlUpdGenerator(obj, false);
try {
r += execute(sqlGenerator.getSql(), sqlGenerator.getArgs());
} catch (IllegalArgumentException e) {
logger.error("init update sql error! exec number : {}", r, e);
throw new DataAccessException("init update sql error!", e);
} catch (IllegalAccessException e) {
logger.error("init update sql error! exec number : {}", r, e);
throw new DataAccessException("init update sql error!", e);
} catch (NoSuchFieldException e) {
logger.error("init update sql error! exec number : {}", r, e);
throw new DataAccessException("init update sql error!", e);
} catch (SecurityException e) {
logger.error("init update sql error! exec number : {}", r, e);
throw new DataAccessException("init update sql error!", e);
} catch (ParseException e) {
logger.error("init update sql error! exec number : {}", r, e);
throw new DataAccessException("init update sql error!", e);
}
}
return r;
}