Hi,

Saman Ghodsian wrote:
Hi everyone,

I've been trying to find a way to have a sorted list where I can do a
get method on the key, right now I'm using to lists, one that I have
implemented based on the java SortedMap list and a vector, then when OJB
uses the setList method I go and add all the elements to the sorted map,
and viceversa.... Problem is of course performance.... I've been looking
in implementing my Sorted List by implementing the ManageableCollection
Interface, the question Is if that's all I would need to do? Just
implement those methods and have my repository collection tag to my own
?

yes, that should be sufficient. have a look at org.apache.ojb.broker.util.collections.ManageableHashSet for an example.
It is a HashSet that implements the ManageableCollection interface.


Are you willing to share your Map class? I'd love to add more user defined ManageableCollections to the util.collections package.

cheers,
Thomas

Anyone has come across this before? Any hints appreciated

Thanks,



Saman Ghodsian
CTO
Middle Earth Technologies Ltd.
www.metca.com
Cell (604)-839-7791
Vancouver, BC
Canada



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




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



Reply via email to