• 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
EOFetchSpecification that locks objects like 'SELECT FOR UPDATE NO WAIT'
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

EOFetchSpecification that locks objects like 'SELECT FOR UPDATE NO WAIT'


  • Subject: EOFetchSpecification that locks objects like 'SELECT FOR UPDATE NO WAIT'
  • From: "Andri vonAllmen" <email@hidden>
  • Date: Tue, 04 Nov 2008 10:41:01 +0100

Hi,
 
a EOFetchSpecification that locks objects and throws an exception on any other access trials (SELECT, UPDATE, whatever) is required. The behaviour should be the same as the SQL Statement 'SELECT FOR UPDATE NO WAIT'.
 
For locking objects ('SELECT FOR UPDATE') the EOFetchSpecifications method 'setRefreshesRefetchedObjects' is used:
 
    EOFetchSpecification spec = new EOFetchSpecification("AnEntity", qualifier, null);
    spec.setRefreshesRefetchedObjects(true);
 
For the 'NO WAIT' clause, the OracleSQLExpressions 'setUseNoWaitLocks' method seems to be the right one, but i could not figure out, how to apply it (i'm new to java...and english speaking -.-).
 
Any helpful hints or examples how to use 'setUseNoWaitLocks' would be appreciated.
 
Regards
Andri von Allmen
 _______________________________________________
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: EOFetchSpecification that locks objects like 'SELECT FOR UPDATE NO WAIT'
      • From: Chuck Hill <email@hidden>
    • Re: EOFetchSpecification that locks objects like 'SELECT FOR UPDATE NO WAIT'
      • From: Andrew Lindesay <email@hidden>
  • Prev by Date: Re: Setting up horizontal inheritance
  • Next by Date: Re: Setting up horizontal inheritance
  • Previous by thread: Re: Applications respond "Access Denied" to wotaskd
  • Next by thread: Re: EOFetchSpecification that locks objects like 'SELECT FOR UPDATE NO WAIT'
  • Index(es):
    • Date
    • Thread