站内搜索: 请输入搜索关键词
当前页面: 图书首页 > Wireless Java Developing with J2ME, Second Edition

Overview - Wireless Java Developing with J2ME, Second Edition

Previous Section Next Section

Overview

Persistent storage in MIDP is centered around record stores. A record store is a small database that contains pieces of data called records. Record stores are represented by instances of javax.microedition.rms.RecordStore. In MIDP 1.0, the scope of a record store is limited to a single MIDlet suite. Said another way, a MIDlet can only access record stores that were created by a MIDlet in the same suite. Figure 8-1 shows the relationship between MIDlet suites and record stores. MIDP 2.0 allows optional sharing of record stores. See the section on "Sharing Record Stores in MIDP 2.0" later in this chapter.

Click To expand
Figure 8-1: Record stores belong to MIDlet suites.

Record stores are identified by a name. Within a MIDlet suite's record stores, the names must be unique.


Previous Section Next Section