• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to return multiple records matching the search criteria

 
Aruneesh Salhotra
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After getting the RMI to work using the Adapter interface, which makes the coding such a blessing, without duplicating much of the code, I am stumped with another question.

It is possible to have multiple results. But findByCriteria is defined as

String[] findByCriteria(String[] criteria)

This has a scope of returning one record.

How is everyone dealing with this.
 
Kevin Conaway
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Aruneesh,

What does the comment above that method state?

My "find" method returns int []

Kevin
 
Aruneesh Salhotra
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It returns a list of record numbers. Once I get the int array, I would call readRecord(recNo), for those records to display.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic