Comments for OpenBaseMovil http://www.openbasemovil.org J2ME Framework, J2ME database and more Wed, 24 Mar 2010 21:58:28 +0000 http://wordpress.org/?v=2.9.2 hourly 1 Comment on OpenBaseMovil 3.0 final Released by jdonadob http://www.openbasemovil.org/2008/01/23/openbasemovil-30-final-released/comment-page-1/#comment-101 jdonadob Wed, 24 Mar 2010 21:58:28 +0000 http://www.openbasemovil.org/2008/01/23/openbasemovil-30-final-released/#comment-101 I'm sorry, I forgot one thing. The FieldIndex function was created by me. It returns de Id of the field which match with the name passed by parameter. I did it on that way becouse if I put the field name in the setField method then it throws error; it only works if I put the Id and no the field name. I’m sorry, I forgot one thing.

The FieldIndex function was created by me. It returns de Id of the field which match with the name passed by parameter. I did it on that way becouse if I put the field name in the setField method then it throws error; it only works if I put the Id and no the field name.

]]>
Comment on OpenBaseMovil 3.0 final Released by jdonadob http://www.openbasemovil.org/2008/01/23/openbasemovil-30-final-released/comment-page-1/#comment-100 jdonadob Wed, 24 Mar 2010 20:18:59 +0000 http://www.openbasemovil.org/2008/01/23/openbasemovil-30-final-released/#comment-100 Thanks for answer. I created the table on this way: Estructura = new Table( Tabla ); Estructura.addColumn("User", bm.db.Constants.FT_STRING, 25, false, null); Estructura.addColumn("Password", bm.db.Constants.FT_STRING, 25, false, null); BaseDatos.createTable( Estructura ); Estructura.close(); Estructura = BaseDatos.getTable(Tabla); Estructura.createIndex( "Primary", "User" ); Registro = Estructura.createRow(); Registro.setField( FieldIndex( "User", Estructura ) , "ADMIN" ); Registro.setField( FieldIndex( "Password", Estructura ), "12345" ); Registro.save(); I tried several ways and this is unique one that worked, the other ways throw error. Then I look for as follows: row = tabla.find( "User", "ADMIN" ); and the row variable, which is of type RowSet, is returned with no rows. Thanks for answer.

I created the table on this way:

Estructura = new Table( Tabla );
Estructura.addColumn(“User”, bm.db.Constants.FT_STRING, 25, false, null);
Estructura.addColumn(“Password”, bm.db.Constants.FT_STRING, 25, false, null);

BaseDatos.createTable( Estructura );

Estructura.close();
Estructura = BaseDatos.getTable(Tabla);

Estructura.createIndex( “Primary”, “User” );

Registro = Estructura.createRow();
Registro.setField( FieldIndex( “User”, Estructura ) , “ADMIN” );
Registro.setField( FieldIndex( “Password”, Estructura ), “12345″ );
Registro.save();

I tried several ways and this is unique one that worked, the other ways throw error.

Then I look for as follows:

row = tabla.find( “User”, “ADMIN” );

and the row variable, which is of type RowSet, is returned with no rows.

]]>
Comment on OpenBaseMovil 3.0 final Released by Narciso Cerezo http://www.openbasemovil.org/2008/01/23/openbasemovil-30-final-released/comment-page-1/#comment-99 Narciso Cerezo Wed, 24 Mar 2010 16:52:02 +0000 http://www.openbasemovil.org/2008/01/23/openbasemovil-30-final-released/#comment-99 Hello jdonadob, The find method will do only an exact match, and depending on the way you declared the index on the User field it will be case insensitive or not. Check the case sensitive parameter when creating the index. Also, if you want to find a word inside the field content instead of an exact match, you can use the findFuzzy method which will look over the index contents for words starting with ADMIN. In this case the index should be created as full text, so it will index the words separately instead of the full field contents. All of this is explained in the quick start guide and in the database developer guide, where you can find examples for the different index types and finder methods. Hope that helps. Hello jdonadob,

The find method will do only an exact match, and depending on the way you declared the index on the User field it will be case insensitive or not.
Check the case sensitive parameter when creating the index.
Also, if you want to find a word inside the field content instead of an exact match, you can use the findFuzzy method which will look over the index contents for words starting with ADMIN. In this case the index should be created as full text, so it will index the words separately instead of the full field contents.
All of this is explained in the quick start guide and in the database developer guide, where you can find examples for the different index types and finder methods.
Hope that helps.

]]>
Comment on OpenBaseMovil 3.0 final Released by jdonadob http://www.openbasemovil.org/2008/01/23/openbasemovil-30-final-released/comment-page-1/#comment-98 jdonadob Wed, 24 Mar 2010 15:48:30 +0000 http://www.openbasemovil.org/2008/01/23/openbasemovil-30-final-released/#comment-98 Help me please. I'm trying to use the method Find of the class Table but doesn't work. I do the same of the tutorial but empty RowSet is returned. row = tabla.find( "User", "ADMIN" ) User is the field name and ADMIN is the word I'm looking for. What is happening ? Thank You. Help me please.

I’m trying to use the method Find of the class Table but doesn’t work. I do the same of the tutorial but empty RowSet is returned.

row = tabla.find( “User”, “ADMIN” )

User is the field name and ADMIN is the word I’m looking for.

What is happening ?

Thank You.

]]>
Comment on About by 改善你的J2ME程序界面-使用开源UI库 – 快乐享受科技生活 http://www.openbasemovil.org/about/comment-page-1/#comment-95 改善你的J2ME程序界面-使用开源UI库 – 快乐享受科技生活 Thu, 10 Sep 2009 18:10:26 +0000 #comment-95 [...] OpenBaseMovil: http://www.openbasemovil.org/about/ BaseMovil是一个J2ME应用程序开发框架。它由多个比较独立类库组成包括:一、OpenBaseMovil-core:整个框架的底层基础类 库,它主要提供国际化支持、任务控制、加密、压缩、浮点支持、properties文件支持、一个MVC框架、一个事件框架。二、 OpenBaseMovil-db:一个关系型数据库引擎,其中一个表格存储的数据可上千。三、OpenBaseMovil-script:一个脚本引 擎。四、OpenBaseMovil-ui:一个UI工具包。这个几类库都能够完全集成在一起使用。 [...] [...] OpenBaseMovil: http://www.openbasemovil.org/about/ BaseMovil是一个J2ME应用程序开发框架。它由多个比较独立类库组成包括:一、OpenBaseMovil-core:整个框架的底层基础类 库,它主要提供国际化支持、任务控制、加密、压缩、浮点支持、properties文件支持、一个MVC框架、一个事件框架。二、 OpenBaseMovil-db:一个关系型数据库引擎,其中一个表格存储的数据可上千。三、OpenBaseMovil-script:一个脚本引 擎。四、OpenBaseMovil-ui:一个UI工具包。这个几类库都能够完全集成在一起使用。 [...]

]]>
Comment on About by Java ME UI Frameworks package | Allove of Paradise http://www.openbasemovil.org/about/comment-page-1/#comment-85 Java ME UI Frameworks package | Allove of Paradise Tue, 30 Dec 2008 00:45:59 +0000 #comment-85 [...] OpenBaseMovil: http://www.openbasemovil.org/about/ [...] [...] OpenBaseMovil: http://www.openbasemovil.org/about/ [...]

]]>
Comment on OpenBaseMovil 3.0 final Released by Narciso Cerezo http://www.openbasemovil.org/2008/01/23/openbasemovil-30-final-released/comment-page-1/#comment-83 Narciso Cerezo Thu, 18 Dec 2008 12:54:08 +0000 http://www.openbasemovil.org/2008/01/23/openbasemovil-30-final-released/#comment-83 Hi sigma12, What you are looking for is exactly what we do with BaseMovil, the framework from which OpenBaseMovil was born. OpenBaseMovil has all the features (in fact we are migrating BaseMovil to sit on top of OpenBaseMovil) but synchronization. We offer synchronization services in a variety of ways and business models, and you can even try them free. Please, contact me for more information: narciso /at/ elondra /dot/ com Regards, Narciso Hi sigma12,

What you are looking for is exactly what we do with BaseMovil, the framework from which OpenBaseMovil was born.
OpenBaseMovil has all the features (in fact we are migrating BaseMovil to sit on top of OpenBaseMovil) but synchronization.
We offer synchronization services in a variety of ways and business models, and you can even try them free.
Please, contact me for more information: narciso /at/ elondra /dot/ com

Regards,
Narciso

]]>
Comment on OpenBaseMovil 3.0 final Released by sigma12 http://www.openbasemovil.org/2008/01/23/openbasemovil-30-final-released/comment-page-1/#comment-82 sigma12 Wed, 17 Dec 2008 06:45:59 +0000 http://www.openbasemovil.org/2008/01/23/openbasemovil-30-final-released/#comment-82 Hi Narciso Cerezo, Thanks for your reply. It is quite helpful indeed. Is it possible to access this database created on Symbian phone (S60) 3rd edition and transfer it to a PC? I have a database on PC (server) and I want to create a java module to synchronize it with the database present on symbian device. Do you think it is possible? Thanks in advance for your inputs. Hi Narciso Cerezo,
Thanks for your reply. It is quite helpful indeed. Is it possible to access this database created on Symbian phone (S60) 3rd edition and transfer it to a PC?
I have a database on PC (server) and I want to create a java module to synchronize it with the database present on symbian device. Do you think it is possible?

Thanks in advance for your inputs.

]]>
Comment on OpenBaseMovil 3.0 final Released by Narciso Cerezo http://www.openbasemovil.org/2008/01/23/openbasemovil-30-final-released/comment-page-1/#comment-81 Narciso Cerezo Tue, 16 Dec 2008 13:26:29 +0000 http://www.openbasemovil.org/2008/01/23/openbasemovil-30-final-released/#comment-81 Hi sigma12, The database storage engine uses the RMS, so the actual location and contents vary a lot between devices. I can't tell you exactly where the S60 emulator places the files. Sun WTK's and emulators based on it by various manufacturers store the rms files in the appdb folder. For WTK 2.2 it was just beneath the root instalation folder of the WTK, for WTK 2.5.2 a folder called j2mewtk is created on the user home folder, and the appdb folder is on it. On the device, usually the rms files are not accessible due to security constraints. But on Symbian phones it is possible to get to them. For 2nd edition devices they are placed in the same folder of the .jar file and it is a single file that can be more or less viewed with an hexadecimal editor. For 3rd edition devices, this was improved and it is more difficult to actually view the contents of the file. In fact, with 2nd edition phones you could move the data file from one device to another and it will work, but that doesn't work for 3rd edition. Of course, you need FExplorer or similar software on Symbian to view the internal filesystem. We will provide in the future a file based storage, but probably only for BlackBerry, since the file storage has many drawbacks in terms of security and API access (applications need to be signed). Hi sigma12,
The database storage engine uses the RMS, so the actual location and contents vary a lot between devices.
I can’t tell you exactly where the S60 emulator places the files. Sun WTK’s and emulators based on it by various manufacturers store the rms files in the appdb folder. For WTK 2.2 it was just beneath the root instalation folder of the WTK, for WTK 2.5.2 a folder called j2mewtk is created on the user home folder, and the appdb folder is on it.
On the device, usually the rms files are not accessible due to security constraints.
But on Symbian phones it is possible to get to them. For 2nd edition devices they are placed in the same folder of the .jar file and it is a single file that can be more or less viewed with an hexadecimal editor. For 3rd edition devices, this was improved and it is more difficult to actually view the contents of the file.
In fact, with 2nd edition phones you could move the data file from one device to another and it will work, but that doesn’t work for 3rd edition.
Of course, you need FExplorer or similar software on Symbian to view the internal filesystem.
We will provide in the future a file based storage, but probably only for BlackBerry, since the file storage has many drawbacks in terms of security and API access (applications need to be signed).

]]>
Comment on OpenBaseMovil 3.0 final Released by sigma12 http://www.openbasemovil.org/2008/01/23/openbasemovil-30-final-released/comment-page-1/#comment-80 sigma12 Tue, 16 Dec 2008 13:14:19 +0000 http://www.openbasemovil.org/2008/01/23/openbasemovil-30-final-released/#comment-80 I am not sure whether this is the right forum to post this question but I want to know that when I create a database using openbasemovil, where is the database file store (1) when I am using nokia S60 emulator to test and (2) on the device. I mean at which location the database is created. Will appreciate any pointers. I am not sure whether this is the right forum to post this question but I want to know that when I create a database using openbasemovil, where is the database file store (1) when I am using nokia S60 emulator to test and (2) on the device. I mean at which location the database is created. Will appreciate any pointers.

]]>