da = new DataAccess(conn, sqlQuery.toString()); da.setSQL(sqlQuery.toString()); da.setString(1, department); da.setString(2, PMTConstants.ACTIVE);
da.executeQuery();
while (da.next()) { EmployeeBean emp = new EmployeeBean(); emp.setAuthId(da.getString("AUTH_ID")); emp.setFirstName(da.getString("FIRST_NAME")); emp.setLastName(da.getString("LAST_NAME")); emp.setActiveInd(da.getString("ACTIVE_IND")); emp.setTaskInd(da.getString("TASK_IND")); emp.setProjectInd(da.getString("PROJECT_IND"));
employeeList.add(emp); }
if (da != null) { da.close(); }
return employeeList; } // end of selectEmployeeList
Any suggestions ?
stu derby
Ranch Hand
Joined: Dec 15, 2005
Posts: 333
posted
0
I am trying to figure out this code;
Any suggestions ?
Ask a more specific question. Are you saying that this is your code and doesn't work? How not? Or is the code you found some where and you want to know what it does and how it works?
Here's a commented version (with a minor change or two); not the effect of using the code tags to make it more readable.
Hope that helps.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.