openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Linskey" <plins...@bea.com>
Subject RE: Getting all the ClassMetaDatas
Date Tue, 02 Jan 2007 09:56:50 GMT
> -----Original Message-----
> From: Patrick Linskey 
> Sent: Tuesday, January 02, 2007 1:44 AM
> To: open-jpa-dev@incubator.apache.org
> Subject: RE: Getting all the ClassMetaDatas
> 
> You may also be interested in the StateManager.getDirty() 
> method, which
> returns a BitSet corresponding to the entries in
> StateManager.getMetaData().getFields(). The BitSet identifies which
> fields in a given object are modified.
> 
> On top of that, you could also take advantage of
> StateManager.getFlushed(), which returns another BitSet 
> indicating which
> fields have already been flushed. Combining the two, you can compute
> which fields are dirty and unflushed; in a pre-flush 
> callback, these are
> the fields that have been mutated since the last time flush() was
> invoked (directly or indirectly).

Correction: both of those methods are in OpenJPAStateManager, not
StateManager. Sorry for any confusion.

-Patrick
_______________________________________________________________________
Notice:  This email message, together with any attachments, may contain
information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated
entities,  that may be confidential,  proprietary,  copyrighted  and/or
legally privileged, and is intended solely for the use of the individual
or entity named in this message. If you are not the intended recipient,
and have received this message in error, please immediately return this
by email and then delete it.

Mime
View raw message