Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [eclipselink-users] Techniques for interrogating what objectsare held in EclipseLink 1.0.1 cache?

Thanks Tom,

That worked fine once I saw from source code inspection that I should
pass null as the Expression, which allowed me to pass null for the
Record argument as well. A bit cleaner than what I was originally
attempting.

Best regards,

Doug

-----Original Message-----
From: eclipselink-users-bounces@xxxxxxxxxxx
[mailto:eclipselink-users-bounces@xxxxxxxxxxx] On Behalf Of Tom Ware
Sent: Friday, October 31, 2008 11:17 AM
To: EclipseLink User Discussions
Subject: Re: [eclipselink-users] Techniques for interrogating what
objectsare held in EclipseLink 1.0.1 cache?

Hi Doug,

   There is some public API on IdentityMapAccessor you should be able to
use.

   Take a look at the "getAllFromIdentityMap" methods.

-Tom

Gschwind, Doug wrote:
> Hello,
> 
>  
> 
> Ideally, I would like to know how many instances of each JPA mapped 
> class are held in EclipseLink identity maps, and in some cases, the 
> primary keys of those instances per Class. I was thinking the way to
do 
> this was to leverage the IdentityMapAccessor exposed by a Session 
> instance, then simply iterate the ClassDescriptor instances bound into

> the Session. This requires use of 
>  org.eclipse.persistence.internal.sessions.IdentityMapAccessor and 
> org.eclipse.persistence.internal.identitymaps.IdentityMap classes that

> do not appear to be part of the public API.
> 
>  
> 
> I am wondering if a different means is available, possibly through JMX

> Mbeans or other mechanisms?
> 
>  
> 
> Thanks,
> 
>  
> 
> Doug
> 
> 
> 
> 
> 
> 
> The contents of this electronic mail message and any attachments are
confidential, possibly privileged and intended
> for the addressee(s) only. Only the addressee(s) may read,
disseminate, retain or otherwise use this message. If
> received in error, please immediately inform the sender and then
delete this message without disclosing its contents
> to anyone.
> 
> 
>
------------------------------------------------------------------------
> 
> _______________________________________________
> eclipselink-users mailing list
> eclipselink-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/eclipselink-users
_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users


Back to the top