• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Database access
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Database access
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: Any formal notice
  • Next by Date: Re: Database access
  • Previous by thread: Re: Any formal notice
  • Next by thread: Re: Database access
  • Index(es):
    • Date
    • Thread