Help Center
Local Navigation
- Creating user interfaces
- Storing data
- Creating connections
- Managing applications
- Using custom messages and folders in the message list
- Applications for push content
- Localizing BlackBerry device applications
- Controlling access to APIs and application data
- Testing a BlackBerry device application
- Packaging and distributing a BlackBerry Java Application
- Glossary
- Provide feedback
- Legal notice
BlackBerry Manuals & Help
>
Documentation for Developers
>
Java Development Guides and API Reference
>
Development Guide - BlackBerry Java Development Environment - 4.7.0
Retrieve all records from a record store
- Import the javax.microedition.rms.RecordStore class.
- Import the following interfaces:
- Invoke openRecordStore().
- Invoke enumerateRecords(). Pass the following parameters:
- filter: specifies a RecordFilter object to retrieve a subset of record store records (if null, the method returns all records)
- comparator: specifies a RecordComparator object to determine the order in which the method returns the records (if null, the method returns the records in any order)
- keepUpdated: determines if the method keeps the enumeration current with the changes to the record store
RecordStore store = RecordStore.openRecordStore("Contacts", false); RecordEnumeration e = store.enumerateRecords(null, null, false);
Parent topic: MIDP record storage