Originally posted by Theo van Loon:
How do you do the intersection of all records then?
Hi Theo, Each field find method returns an arraylist of record numbers. I send two arraylists at a time to a comapre method that returns the arraylist with the common record numbers in it. Here's an example:
nameList = findByName();
locList = findByLoc();
....
resultList = compareLists(nameList, locList);//returns common to both
resultList = compareLists(resultList, sizeList);//returns common to both
....
Finally resultList will have only the intersection of all the record numbers. It seeems that am using many methods here. But each method has only one line of code which again delegates to another method.
Hope this helps.