标签:cep sed oid ret lock 添加 out void start
public void addSubscibe(List<PermedipUserSubscribeVo> list) { final List<PermedipUserSubscribeVo> vos=list; String sql="insert into permedip_user_subscribe(user_id,channel_name) values(?,?)"; jdbcTemplate.batchUpdate(sql, new BatchPreparedStatementSetter() { @Override public void setValues(PreparedStatement ps, int i) throws SQLException { ps.setInt(1, vos.get(i).getUserId()); ps.setString(2, vos.get(i).getChannelName()); } @Override public int getBatchSize() { return vos.size(); } }); }
标签:cep sed oid ret lock 添加 out void start
原文地址:http://www.cnblogs.com/blog411032/p/6225256.html