没有用于创建记录存储的构造函数。
记录存储是用名称来标识的。
有多个操纵记录存储的方法可供使用。
A handful of methods are available for working with a record store.
打开(创建)一个记录存储。
把数组写入到记录存储。
表1展示了一个简单的记录存储数据库。
如果指定的记录存储存在,第一个方法将会打开它。
记录存储被盖上时间戳来指示它上次被修改的时间。
The record store is timestamped to denote the last time it was modified.
当一个记录存储被关闭时,不能进行进一步的操作。
When a record store is closed, it is disabled for further operations.
清单18展示了将被写入到记录存储中的搜索字符串。
Listing 18 shows the search strings that will be written into the record store.
便利方法就是那些用来打开、关闭和删除记录存储的方法。
Convenience methods are the methods used to open, close, and delete record stores.
清单4显示了我们将会写入到记录存储中的基本数据类型。
Listing 4 shows the primitive data types we'll write to the record store.
指派了枚举对象后,它将会调用搜索函数来搜索记录存储。
When the enumeration object is allocated, it will call our search function to search the record store.
本文开头部分曾经提到记录ID不能在记录存储中被重用。
From the beginning of the article, you may recall that record IDs are not re-used in a record store.
提出请求后,我们将在记录存储中搜索这个字符串。
When requested, we'll search the record store for the string.
将这个记录存储在与该包的README文件相同的目录中。
Store the journal in the same directory as the package's README file.
至此,我们已经使用一个简单的for循环遍历了记录存储。
Up to this point we've been traversing the record store with a simple for loop.
涉及的范围从添加、删除、替换记录内容到枚举整个记录存储。
These range from adding, deleting, and replacing record contents to enumerating through a record store.
在面向记录的方法中,J2MERMS由多个记录存储构成。
In a record-oriented approach, J2ME RMS comprises multiple record stores.
将这个参数设置为false则指定枚举忽略记录存储的更新。
Setting the parameter to false specifies the enumeration to ignore record store updates.
如果没有具有这个名称的记录存储,那么调用这个方法来创建一个。
If there is no record store of that name, invoking this method creates one.
如果用户选择删除,所选择的这组约会在记录存储中被标记为无效。
If the user chooses to delete, the set of selected appointments is marked as invalid in the record store.
如果不去考虑我们是如何遍历记录存储的,那么这不会是一个问题。
This isn't a problem until you consider how we've been looping through the record store.
记录存储中的每个记录是一个字节数组,并且有唯一的整数标识符。
Each record in a record store is an array of bytes and has a unique integer identifier.
J2MEAPI提供某种接口来解释存储在记录存储中的数据。
The J2ME API provides certain interfaces to interpret the data stored in a record store.
文章开头部分介绍的便利方法使您可以在记录存储中写入和读取记录。
The convenience methods introduced at the beginning of the article will let you write and read records into the record store.
在清单10中,您可以了解到这两个数组如何表示来自记录存储的记录。
In Listing 10, you can see how these arrays represent records from the record store.
如果记录存储已经打开,这个方法将返回对同一个记录存储对象的引用。
If the record store is already open, this method returns a reference to the same record store object.
然而,对每条记录都包含不同数据类型的记录存储进行排序要复杂一些。
Working with a record store that contains multiple data types in each record presents a little more of a challenge, however.
RecordEnumeration接口负责枚举记录存储中的记录。
The RecordEnumeration interface is responsible for enumerating records in a record store.
应用推荐