on 01-26-2005 11:30 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.