SQLite DB的MIDP Java实现 [英] MIDP Java implementation of SQLite DB

查看:96
本文介绍了SQLite DB的MIDP Java实现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在MIDlet中是否有任何SQLite db的MIDP实现可用于sqlite db,而不是使用RMS.当然,有 Floggy OpenBaseMovil ,但是它们基于RMS,但是是否有任何允许在sqlite db文件中执行操作的实现?

Are there any MIDP implementation of SQLite db available for use of sqlite db within a MIDlet, rather than using RMS. Of course, there are Floggy and OpenBaseMovil, however they are based on RMS, but are there any implementations that allows to perform operations in an sqlite db file?

推荐答案

有2种方法可以做到这一点:

There are 2 ways of doing something like that:

  • 采用SQLite的开源代码(用C编写),并在JavaME中编写类似的内容.还没有人做过.正在为Windows Mobile用C#编写SQLite版本的工作正在进行中,但是您必须怀疑迁移到无法控制文件系统访问性能的解释语言会带来什么影响.

  • take the open source code of SQLite (written in C) and write something similar in JavaME. nobody has done that yet. There is an ongoing effort to write a version of SQLite in C# for windows mobile but you have got to wonder what impact a move to an interpreted language with no control over the performance of file system access will have.

定义并实现一个JavaME API,该API通过诸如JNI之类的方法访问本机SQLite.如果您不是电话制造商或它的非常紧密的合作伙伴之一,这通常会非常复杂.我怀疑Android会这样做,因此您可以查看该区域的来源,但它不符合MIDP.尚无类似SQLite的API的官方JSR.

define and implement a JavaME API that accesses the native SQLite via something like JNI. This is usually extremely complicated if you are not the phone manufacturer or one of its very close partners. I suspect Android does that so you could look at its sources in that area but it won't be MIDP-compliant. There are no official JSR for an SQLite-like API yet.

这篇关于SQLite DB的MIDP Java实现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆