Skip to Content
author's profile photo
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 comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    author's profile photo
    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 comment
    10|10000 characters needed characters exceeded