No. You have to follow the steps that Armin explained.

> -----Original Message-----
> From: Ziv Yankowitz [mailto:[EMAIL PROTECTED]
> Sent: Monday, February 09, 2004 4:05 PM
> To: OJB Users List; [EMAIL PROTECTED]
> Subject: RE: Transaction Problem.
> 
> 
> Hi,
> 
> Thanks for the response.
> 
> if I understand correctly the flush writes the object to the 
> db and cache.
> Is there a way to write only to the cache and not to the db 
> and then when commit accurse the db will be hit.
> 
> Thanks.
> 
> -----Original Message-----
> From: Armin Waibel [mailto:[EMAIL PROTECTED]
> Sent: Monday, February 09, 2004 4:59 PM
> To: OJB Users List
> Subject: Re: Transaction Problem.
> 
> 
> Hi,
> 
> Ziv Yankowitz wrote:
> > Folks,
> > 
> > I'm using ODMG API .
> > 
> > I'm trying to insert an object and query the object in the 
> same transaction before the object was committed is this possible.
> 
> You have to use a proprietary extension method of Transaction:
> ((TransactionExt) tx).flush()
> 
> regards,
> Armin
> 
> > 
> > thanks.
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to