J2ME在没有数据库的情况下存储1500个联系人信息

时间:2022-02-22 16:57:59

Currently I'm developing a Blackberry Application to access internal business contacts in our company. As far as I know there is no database platform for j2me or blackberry applications. What the the best way to store large sets of data without a database?

目前我正在开发一个Blackberry应用程序来访问我们公司的内部业务联系人。据我所知,j2me或黑莓应用程序没有数据库平台。没有数据库存储大量数据的最佳方法是什么?

I found http://www.mcobject.com/j2me_database via google which uses a B-Tree algorithm.

我通过google找到了http://www.mcobject.com/j2me_database,它使用了B-Tree算法。

Any other Ideas (besides RMS) , I should test?

任何其他想法(除了RMS),我应该测试?

thanks!

3 个解决方案

#1


You might want to check out the OpenBaseMovil framework or you could build up your own storing engine on top of RMS with own indexing, etc. It's a litte bit overkill, nevertheless.

您可能想要查看OpenBaseMovil框架,或者您可以使用自己的索引等在RMS之上构建自己的存储引擎。尽管如此,它还是有点过分。

#2


There are 3 different ways that I know of to persist on the BlackBerry.

我知道有3种不同的方法可以坚持使用BlackBerry。

  1. BlackBerry persistent store APIs. It doesn't provide a relational database model but it allows you to persist entire objects.
  2. BlackBerry持久性商店API。它不提供关系数据库模型,但它允许您持久化整个对象。

  3. MIDP record store which are part of the standard MIDP spec.
  4. MIDP记录存储是标准MIDP规范的一部分。

  5. File connection API's
  6. 文件连接API

You best bet is to use the persistent store api: Storing persistent data

最好的办法是使用持久存储api:存储持久数据

#3


SQLite is in OS 5.0, but I suspect you can't wait that long.

SQLite在OS 5.0中,但我怀疑你不能等待那么久。

Sybase has SQL Anywhere for the BlackBerry that I believe runs on OS 4.1 and higher:

Sybase认为在OS 4.1及更高版本上运行的BlackBerry适用于BlackBerry:

SQL Anywhere Developer Edition Downloads

SQL Anywhere开发人员版下载

#1


You might want to check out the OpenBaseMovil framework or you could build up your own storing engine on top of RMS with own indexing, etc. It's a litte bit overkill, nevertheless.

您可能想要查看OpenBaseMovil框架,或者您可以使用自己的索引等在RMS之上构建自己的存储引擎。尽管如此,它还是有点过分。

#2


There are 3 different ways that I know of to persist on the BlackBerry.

我知道有3种不同的方法可以坚持使用BlackBerry。

  1. BlackBerry persistent store APIs. It doesn't provide a relational database model but it allows you to persist entire objects.
  2. BlackBerry持久性商店API。它不提供关系数据库模型,但它允许您持久化整个对象。

  3. MIDP record store which are part of the standard MIDP spec.
  4. MIDP记录存储是标准MIDP规范的一部分。

  5. File connection API's
  6. 文件连接API

You best bet is to use the persistent store api: Storing persistent data

最好的办法是使用持久存储api:存储持久数据

#3


SQLite is in OS 5.0, but I suspect you can't wait that long.

SQLite在OS 5.0中,但我怀疑你不能等待那么久。

Sybase has SQL Anywhere for the BlackBerry that I believe runs on OS 4.1 and higher:

Sybase认为在OS 4.1及更高版本上运行的BlackBerry适用于BlackBerry:

SQL Anywhere Developer Edition Downloads

SQL Anywhere开发人员版下载