当前位置: 技术问答>java相关
谁能给我讲讲下面这段程序是什么作用,谢谢!
来源: 互联网 发布时间:2015-10-22
本文导语: public static Iterator getIterator(String sql, Object[] parameters) { LongList ids = new LongList(); Connection con = null; PreparedStatement pstmt = null; try { con = getConnection();...
public static Iterator getIterator(String sql, Object[] parameters) {
LongList ids = new LongList();
Connection con = null;
PreparedStatement pstmt = null;
try {
con = getConnection();
pstmt = con.prepareStatement(sql);
for (int i = 0; i
LongList ids = new LongList();
Connection con = null;
PreparedStatement pstmt = null;
try {
con = getConnection();
pstmt = con.prepareStatement(sql);
for (int i = 0; i