On Friday 11 April 2008, Georgi Naplatanov wrote:
> Hello, David.
>
> In your case EntityTransaction.isActive() should do the job.
>
> Best regards
> Georgi
>
> David Goodenough wrote:
> > Is there a way to detect whether there are any modified/dirty objects
> > that need to be written to the datastore?  I do not need to know which
> > objects are dirty, just whether there are any.
> >
> > I am trying to add the kind of functionality that puts up a question
> > when someone tries to terminate the program without saving to
> > point out that they need to save.
> >
> > Thanks,
> >
> > David

The reference manual says that isActive tells me whether begin has been
called more recently than commit or rollback (section 9.2).  Are you saying
that if begin has been called but nothing has been modified that it will also
return true.  Also if the last thing that was called was commit or rollback
and begin has not yet been called will it be true if something has been 
modified?

David

Reply via email to