Skip to Content
author's profile photo Former Member
Former Member

Deprecation of Persistence API in ME2.1 SP03

Hello together,

I am coding an application with persistence functionality. I am following the example PersistenceSimple from the Mobile Development Kit (MDK):ME2.1 SP03, 4th revised Edition

The example uses the class "Transaction" for persistence. But this class and its methods is declared deprecated. My coding looks like this:

transaction = transactionManager.begin(TransactionType.WRITE);
transactionManager.update(entity, TreeOptionType.COMPLETE);
transaction.commit();

If I simply avoid step 1 and step 3 and using TransationManager only, my data gets written to the disk but it is not persisted after the ME shuts down.

So anybody here with an alternative for ME 2.1 SP03 which does NOT make use of "Transaction"?

Best regards, Tim

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Feb 11, 2005 at 03:52 PM

    Hello,

    sorry - that is a "bug" in the Javadoc. For ME2.1 transaction has to be used - in MI2.5 it is different.

    Bye Sigi

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.