× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: lock during update
  • From: Gary L Peskin <garyp@xxxxxxxxxxxx>
  • Date: Tue, 21 Nov 2000 15:37:07 -0800
  • Organization: The Firstech Corporation

Glenn Holmer wrote:
> An RPG programmer in our shop tells me that when you update
> a record, that *record* is automatically locked.  But how do I ensure
> that no one changes the CNVA2 field out from under me between the time
> I read that record and the time I update it?  What the RPG programmer
> explained to me is that when you do a CHAIN, you either update the record
> or release it, but meantime it's yours.  What's the equivalent in Java?
> (Sorry if this isn't clear to AS/400 programmers, I'm mainly a PC guy.)

I think this will answer your question:

http://publib.boulder.ibm.com/pubs/html/as400/v4r5/ic2924/info/java/rzahh/javadoc/com.ibm.as400.access.AS400File.html#isReadNoUpdate()

Gary
+---
| This is the JAVA/400 Mailing List!
| To submit a new message, send your mail to JAVA400-L@midrange.com.
| To subscribe to this list send email to JAVA400-L-SUB@midrange.com.
| To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner: joe@zappie.net
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.