|
Slide 10.2: Palm OS databases (cont.) Slide 10.4: Palm OS databases (cont.) Home |
|
name field holds the name of the database.
attributes field has flags for the database.
version field holds an application-specific version number for that database.
modificationNumber is incremented every time a record in the database is deleted, added, or modified.
Thus applications can quickly determine if a shared database has been modified by another process.
appInfoID is an optional field that an application can use to store application-specific information about the database.
For example, it might be used to store user display preferences for a particular database.
sortInfoID is another optional field an application can use for storing the local ID of a sort table for the database.
type and creator fields are each 4 bytes and hold the database type and creator.
The system uses these fields to distinguish application databases from data databases and to associate data databases with the appropriate application.
numRecords field holds the number of record entries stored in the database header itself.
If all the record entries cannot fit in the header, then nextRecordList has the local ID of a recordList that contains the next set of records.
Each record entry stored in a record list has three fields and is 8 bytes in length.
Each entry has the local ID of the record which takes up 4 bytes: 1 byte of attributes and a 3-byte unique ID for the record.