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?
posted 15 years ago
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 to your criteria.