期刊文献+

一种Java ME中基于RMS的记录遍历方法

A record traversal method based on RMS in Java ME
下载PDF
导出
摘要 RMS是Java ME中应用程序对数据进行持久性存储的唯一途径,为MIDP提供了一种数据永久储存的机制。在对RecordStore记录存储中的记录进行相关操作时,往往需要遍历记录存储中的所有记录。理论上可以按照记录存储的规律使用getNextRcordID或getNumRecords等方法对RecordStore记录存储中所有数据进行遍历。但由于记录存储中部分记录被删除后,RecordID会出现断号,从而导致RecordStore中的记录RecordID不连续,最终导致程序遍历失败。本文提出了一种利用RMS中RecordEnumeration接口解决RecordStore记录存储中记录RecordID断号后,实现遍历RecordStore记录存储中所有数据的方法。 RMS is the only way for applications to store data persistently in Java ME.It provides a mechanism for MIDP to store data persistently.When the records in the record store are operated,it is often necessary to traverse all the records in the RecordStore.Theoretically,we can use getNextRcordID or getNumRecords to traverse all the data in the RecordStore according to the rules of record storage.However,after some records in the RecordStore are deleted,the RecordID will break,which leads to the discontinuity of the RecordID in the RecordStore,and finally leads to the failure of program traversal.This paper presents a method of traversing all data in the record store by using the RecordEnumeration interface in RMS to solve the problem of RecordID disconnection in the RecordStore.
作者 胡开明 HU Kai-ming(Department of Computers,Guangdong Songshan Vocational College,Guangdong Shaoguan 512126,China)
出处 《齐齐哈尔大学学报(自然科学版)》 2020年第4期14-17,20,共5页 Journal of Qiqihar University(Natural Science Edition)
关键词 Java ME RMS MIDP 遍历 Java ME RMS MIDP traversal

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部