• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

search Criteria

 
shubangini Dave
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like to use collections for search criteria.
How to get a hashmap to search columnwise?
Hashmap store key value pairs which is easy for hardcoded
values.
How to search for a value eg SFO in the column wise search?
Can anyone help me?
 
Paul Smiley
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That could work, but remember that when going through each record in the DB, the readRecord returns an array of strings that correspond to your database columns. So in the result, call it recordArray, you can get the origin by comparing
recordArray[1] to your criteria.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic