Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2005

Tip: Looking for answers? Try searching our database.

RMS and midlets

Thread view: 
leggolas - 14 Mar 2005 12:09 GMT
hello.

a student of mine asked this rather interesting questions.  he asked
where the db files are stored (im using the Java's Wireless Toolkit
2.1).  after all, RMS is said to be persistent so it means, a db file
should be created and saved in the local machine (im using the default
j2me emulator).

second question, are there any restrictions imposed on how large a db
file can be?  how about records?  im thinking that since its in bytes,
then each record can only grow as much as the data type imposes.  am i
correct?

peace~!
Darryl Pierce - 14 Mar 2005 13:05 GMT
> a student of mine asked this rather interesting questions.  he asked
> where the db files are stored (im using the Java's Wireless Toolkit
> 2.1).  after all, RMS is said to be persistent so it means, a db file
> should be created and saved in the local machine (im using the default
> j2me emulator).

$WTKDIR/appdb

> second question, are there any restrictions imposed on how large a db
> file can be?

That depends on the device. Devices are required to provide a *minimum*
of 8k, but there are no *maximums* defined in the MIDP specification.
So, OEMs can give as much as they want, but have to provide at *least* 8k.

> how about records?

The number of records is limited by the indexing scheme, which uses an
int. So you can have from 0 to 2,147,483,647 records, assuming there is
sufficient memory to hold them all. :)

> im thinking that since its in bytes,
> then each record can only grow as much as the data type imposes.  am i
> correct?

Each record can, as with the store, hold from 0 to 2,147,483,647 bytes
since it's only limit is the way of indexing the elements in the record.

Signature

Darryl L. Pierce <mcpierce@gmail.com>
Visit my homepage: http://mcpierce.multiply.com
"By doubting we come to inquiry, through inquiry truth." - Peter Abelard

leggolas - 15 Mar 2005 02:23 GMT
thanks darryl.  that cleared up a lot of questions.  i finally found
the file but interstingly enough, i didnt expect the file to be
prefixed with "run_by_class_storage".

in either case, would i be able to open this with another program which
reads db files (say microsoft access)?
Darryl Pierce - 21 Mar 2005 02:59 GMT
> thanks darryl.  that cleared up a lot of questions.  i finally found
> the file but interstingly enough, i didnt expect the file to be
> prefixed with "run_by_class_storage".
>
> in either case, would i be able to open this with another program which
> reads db files (say microsoft access)?

I doubt it, since the file's not a Microsoft Access file. And, that file
is only using whatever format Sun decided upon for the emulator. It's
not necessarily going to be the format used by a real handset.

Signature

Darryl L. Pierce <mcpierce@gmail.com>
Visit my homepage: http://mcpierce.multiply.com
"By doubting we come to inquiry, through inquiry truth." - Peter Abelard

leggolas - 22 Mar 2005 02:18 GMT
wow!  interesting!  thanks!


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.