Slide 10.1: Programming Exercise II: my memento by using Palm OS
  Slide 10.3: Palm OS databases (cont.)
  Home


Palm OS Databases


In Palm OS, any file is a database, which is similar to the persistent storage of J2ME. A Palm database does NOT mean “relational database”. It is actually closer to a structured, flexible, and mobile binary data file:
The Data Manager
The Data Manager manages user data, which is stored in databases for convenient access. Data in the Palm Powered handheld is broken down into multiple, finite-size records that can be left scattered throughout the memory space; thus, adding, deleting, or resizing a record does not require moving other records around in memory. Each record in a database is in fact a Memory Manager chunk. The Data Manager uses Memory Manager functions to allocate, delete, and resize database records.

Records and Databases
Databases organize related records; every record belongs to one and only one database. A database maintains a list of all records that belong to it by storing the local ID of each record in the database header. Because local IDs are used, the memory card can be placed into any memory slot of a Palm Powered handheld. When an application requests a particular record,