> > I thought you were using a WeakHashMap.
> > Then you just do:
> >
> > map.put( role.getName(), role )
> >
> > However its not ordered. Does it need to be?
>
> No, it need not be ordered, so it really doesn't need
> Comparable interface.
>
> How about me implementing it in BaseProfileLocator for equality?
>

What are we trying to order, ProfileLocators?
If that is the case, then it has to be ordered in the same order as the
primary key that you defined.
Perhaps a TreeMap is better?
Actually Im not sure what exactly it is your are trying to do.
Are you creating a cache like in the CastorPSMLmanager?
Then, the only reason it would need to be orderd would be for queries,
right?
For all other PSMLManager methods, I dont see a need for ordering...

Perhaps its best to let the db handle queries, return Profile IDs (as
discussed in my previous email to Anil), and then go to your hashmap to get
the objects for a little performance gain.


> Role gets compared on role.getName()
> Group gets compared on group.getName(),
> and same goes withe the user..or do I have to use "user.getUserName()"
> Language/Country is simple String equality.
>
> -Atul



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

Reply via email to