// Take care of any in memory data first
((BlackBerryBalanceDemo) uiApp).onWipe(serviceUid, dataType);
}
// Retrieve the persistent object for this application
final PersistentObject store =
PersistentStore
.getPersistentObject(BlackBerryBalanceDemo.BLACKBERRY_BALANCE_DEMO_ID);
// Retrieve the saved Memo objects from the persistent store
final Vector memos = (Vector) store.getContents();
final int size = memos.size();
for (int i = 0; i < size; ++i) {
final Memo memo = (Memo) memos.elementAt(i);
if (serviceUid.equals(memo.getMode())) {
// Wipe the memo
memos.removeElementAt(i);
}
}
synchronized (store) {
// Persist the updated collection
store.setContents(memos);
PersistentObject.commit(store);
}
return MultiServicePlatformConstants.SUCCESS;
}