setValues(ps, args);
r = ps.executeUpdate();
if (needGenerateKey) { // 生成自增key
rs = ps.getGeneratedKeys();
if (!rs.next()) {
throw new ReturnGeneratedKeyException("please check whether the table has auto increment key");
}
Object key = JdbcUtils.getResultSetValue(rs, 1, holder.getKeyClass());
holder.setKey(key);
}
return r;