Filtering and Ordering Records with RMS
Saturday, October 13th, 2007If you’ve ever used the Record Management System mechanism in MIDP, you already know how useful the RecordStore class can be for storing persistent data. In a previous tutorial, Using RMS to Store Persistent Data, we used the RecordStore.getRecord(int) method to retrieve a record by its ID. However, sometimes you may have more complex retrieval criteria than simply the record ID. That’s where the enumerateRecords() method comes in handy. In this article we will discuss how to filter and order a subset of records in a RecordStore object using enumerateRecords()
Wireless Edition