Norbert,

All you need to do is to

A) use the correct locking mode (DbLocked), as this will instruct Castor
to use the SELECT .. FOR UPDATE statement.
B) add the correct key generator (HIGH/LOW in your case?) to the
relevant class mappings.

Werner

> -----Original Message-----
> From: Norbert Toth-Gati [mailto:[EMAIL PROTECTED] 
> Sent: Freitag, 30. September 2005 12:58
> To: [email protected]
> Subject: Re: [castor-user] Support select for update
> 
> On 9/28/05, Norbert Toth-Gati <[EMAIL PROTECTED]> wrote:
> > Hello,
> >
> > I came through a log where you stated - from which I have 
> deduced that 
> > Castor does support SELECT .. For UPDATE statements using HIGH/LOW 
> > keys. So if this is true, I would like to learn more about 
> how is this 
> > usable?
> >
> > Thanks,
> >   Norbert
> >
> > PS.: part of log Version 0.8.9 November, 3 2000 "Fixed a gap in 
> > HIGH/LOW key generator implementation: with databases
> >         that don't support "SELECT FOR UPDATE" (like 
> Hypersonic SQL and
> >         InstantDB)"
> >
> >
> > On 9/28/05, Werner Guttmann <[EMAIL PROTECTED]> wrote:
> > > Nobert,
> > >
> > > It does support SELECT .. For UPDATE statemenst for those 
> RDBMS that 
> > > actually do support this feature. What else do you want 
> to know ?  
> > > Can I assume that you have been able to read the information 
> > > provided at http://castor.codehaus.org/locking.html on 
> how Castor handles locking ?
> > >
> > > Werner
> > >
> > > > -----Original Message-----
> > > > From: Norbert Toth-Gati [mailto:[EMAIL PROTECTED]
> > > > Sent: Mittwoch, 28. September 2005 11:14
> > > > To: [email protected]
> > > > Subject: [castor-user] Support select for update
> > > >
> > > > Hi All,
> > > >
> > > > I would like to know if Castor supports select for 
> update or how 
> > > > does it handle this ?
> > > >
> > > > Thanks,
> > > >  Norbert
> > > >
> > > > -------------------------------------------------
> > > > If you wish to unsubscribe from this list, please send an empty 
> > > > message to the following address:
> > > >
> > > > [EMAIL PROTECTED]
> > > > -------------------------------------------------
> > > >
> > > >
> > > >
> > >
> >
> 
> -------------------------------------------------
> If you wish to unsubscribe from this list, please send an 
> empty message to the following address:
> 
> [EMAIL PROTECTED]
> -------------------------------------------------
> 
> 
> 

-------------------------------------------------
If you wish to unsubscribe from this list, please
send an empty message to the following address:

[EMAIL PROTECTED]
-------------------------------------------------

Reply via email to