1 public void sampleMethod() { 2 //Forming a list of employee ids 3 List<Long> empIds = new ArrayList<Long>(); 4 empIds.add(new Long(7499)); 5 empIds.add(new Long(7521)); 6 empIds.add(new Long(7566)); 7 empIds.add(new Long(7654)); 8 empIds.add(new Long(7698)); 9 empIds.add(new Long(7788)); 10 11 //Get employee rows from list of empIds 12 //1. Using positional parameters 13 //Row[] empRows = getEmployees(empIds); 14 //2. Using named bind parameters 15 Row[] empRows = getEmployees1(empIds); 16 17 //iterating through the employee rows and printing the emp name 18 for (int i = 0; i < empRows.length; i++) { 19 Row empRow = empRows[i]; 20 System.out.println("Emp Name " + (i + 1) + ": " + 21 empRow.getAttribute("Ename")); 22 } 23 }