jsr338-experts@jpa-spec.java.net

[jsr338-experts] Re: Standardized Access to ChangeSet

From: Adam Bien <abien_at_adam-bien.com>
Date: Tue, 21 Jun 2011 13:58:12 +0200

You are right - getDirtyEntities - was my mistake.
On 20.06.2011, at 20:38, Werner Keil wrote:

> Adam,
> I was referring to the last of the proposed methods you mentioned, not another message.
>
> Set<Class> dirty = EntityManager#getDirty(Class<T>.class);
> Why shouldn't that be getDirtyEntities() like the other get*Entities() methods? It has the same signature.
>
> Werner
>
> On Sun, Jun 19, 2011 at 1:49 PM, Adam Bien <abien_at_adam-bien.com> wrote:
> Hi Werner,
>
> I searched in the proposal and in the mailing lists but couldn't find anything similar.
>
> I'm happy with another solution as well.
>
> adam
> On 18.06.2011, at 13:48, Werner Keil wrote:
>
> > Why the different name pattern for the last proposed?
> > They would all fulfill the same purpose.
> >
> > Cheers,
> > Werner
> >
> > -------- Original-Nachricht --------
> >> Datum: Sat, 18 Jun 2011 13:06:03 +0200
> >> Von: Adam Bien <abien_at_adam-bien.com>
> >> An: jsr338-experts_at_jpa-spec.java.net
> >> Betreff: [jsr338-experts] Standardized Access to ChangeSet
> >
> >> HI All,
> >>
> >> I would like to propose additional EntityManager methods:
> >>
> >> Set<Class> updated = EntityManager#getUpdatedEntities(Class<T>.class);
> >> Set<Class> deleted = EntityManager#getDeletedEntities(Class<T>.class);
> >> Set<Class> created = EntityManager#getCreatedEntities(Class<T>.class);
> >> Set<Class> dirty = EntityManager#getDirty(Class<T>.class);
> >>
> >> We had to use provider-specific EntityManager extensions to access the
> >> dirty entities for the implementation of replication or historization.
> >>
> >> Such methods would be also useful for debugging purposes,
> >>
> >> thanks in advance,
> >>
> >> adam
> >>
> >>
> >
> > --
> > NEU: FreePhone - kostenlos mobil telefonieren!
> > Jetzt informieren: http://www.gmx.net/de/go/freephone
>
>
>
>
>
> --
> Werner Keil | UOMo Lead | Eclipse Foundation | Agile Coach, Principal Consultant | emergn limited
> 590 Madison Avenue. New York. NY 10022 | 68 Lombard Street. London EC3V 9LJ UK
> US Toll Free: +1-877.964.1981 | Worldwide Toll Free: +800.225.53482
> Twitter @wernerkeil | Skype: werner.keil | www.emergn.com | Reshaping IT
>