Wednesday, April 28, 2010

Result set to List

while(rset.next()){

TaskListPojo taskList = new TaskListPojo();

taskList.setPROJECT_NAME(rset.getString("Col_1"));

taskList.setPROJECT_ID(rset.getString("Col_2"));

taskList.setPROJECT_CODE(rset.getString("Col_3"));

taskList.setSATRT_DATE(rset.getDate("Col_4"));

taskList.setFINISH_DATE(rset.getDate("Col_5"));

taskList.setTASK_NAME(rset.getString("Col_6"));

taskList.setTASK_ID(rset.getInt("Col_7"));

taskList.setETC(rset.getString("Col_8"));

taskList.setUNIQUE_NAME(rset.getString("Col_9"));

taskList.setTASK_STATUS(rset.getString("Col_10"));

taskListObj.add(taskList);

}

No comments:

Post a Comment