Database access
Database access
- Subject: Database access
- From: André Rothe <email@hidden>
- Date: Thu, 26 Oct 2017 23:08:17 +0200
Hi,
some more questions:
1. I have a thread, which runs a long time. To store the current status,
I use an EO, which has an attribute called "completed". This attribute I
set to 10% or 50% and so on. After a value change, I call
ec.saveChanges(). But it seems, that the values are not visible in the
database in the correct chronologically order. Sometimes I see 90, than
I see 60 again. How can I force the write access to the database backend
for the specific EO?
2. The attribute above I try to read in another EdititingContext. But I
always see 0% (the start value) and after the thread finishes, I will
see 100%. But it is not possible to get other values as long as the
second thread runs. I have tried ec.invalidateObjectsWithGlobalIDs(ids),
but it did not work as expected, "completed" returns always 0%. How I
can force the EditingContext to read the current value from the
database?
Thank you
Andre
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden