List

原创
2015/11/23 15:21
阅读数 115
List
toArray(T[] a)
public Integer[] queryForInts(String sql, Object[] args) throws Exception {
	List<Integer> list=queryForList(sql,args,new RowMapper<Integer>(){

		public Integer mapRow(ResultSet rs, int index) throws SQLException {
			return rs.getInt(1);
		}
		
	});
	if(list==null)return null;
	return list.toArray(new Integer[]{});
}




展开阅读全文
加载中
点击引领话题📣 发布并加入讨论🔥
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部