You will not be able to run SQL statements in J2ME on the RecordStore. THe recordstore only stores all the data as separate records.
You need to formulate a way to store all the data (which means that you could either store each tuple in your db as separate rows, or you could store all of them in a single record).
You will need to implement the complete mechanism to read (and write) all the bytes from the recordstore, interpret them as required and then use the data. You can even skip the RecordFilter and do it yourself.
It makes more sense to build something like a DAO (Data Access Object) and store the object. The object will internally have store() and read() methods which will know how to write to and read from the RecordStore.
Main Topics
Browse All Topics





by: qasitouchPosted on 2007-10-25 at 00:33:44ID: 20145707
dear. RMS is not the RELATIONAL DATABASE.
anyways i tel you about how u can handel the record in RMS.
its just a simple way to store your data in mobiles.
each transaction is stores as a record in RMS, which is stors like , u can say list or array:P (because it has no rows and cols).
and there are no sql queries supported in j2me.
your must read the record (rms) and then find compare that with your required string/data.
hope you have the solution to your problem.
one more thing, there is a size limitation of RMS, which varies from phone to phone and available memory.
Kind Regards,
qasitouch.