Sorry I meant that the Vector methods get(index), add(index, Object) and remove(index, Object) are useful since I am concerned about an ordered collection.

Hi Jakob,

Maybe I'm missing something, but it seems that if I use a Collection class for my proxy collection, random access is not convenient and I cannot do useful modifications to the collection since get(index), add() and remove() methods are not available.

Phil

Jakob Braeuchi wrote:

hi phil,

VectorProxy will not be possible because Vector is not an interface.
imo we should not have an additional proxy like ListProxy, this would imlply
methods like getListByQuery.
why can't you use collections ?

jakob

----- Original Message -----
From: "Phil Warrick" <[EMAIL PROTECTED]>
To: "OJB Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, November 12, 2002 3:16 PM
Subject: Re: orderby and non-composed M:N mapping



Phil Warrick wrote:

Hi Jakob,

Thanks, this did work, even using another field other than the foreign
key fields of the indirection class (as in the field
PERSON_PROJECT_SORTORDER in my original example).

However it only worked using java.util.Collection as the collection
class.  I do need to use java.util.Vector, but this gives an error
(below). Someone reported something similar earlier:


http://archives.apache.org/eyebrowse/ReadMsg?listName=ojb-user@;jakarta.apach
e.org&msgId=456467


Scanning the archives again, I see that proxy collections have to use
java.util.Collection
since they are implemented as
org.apache.ojb.broker.accesslayer.CollectionProxy
(this should be added to the docs if it has not already?). Perhaps
VectorProxy
and ListProxy classes could also be added?

Phil


--
To unsubscribe, e-mail: <mailto:ojb-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:ojb-user-help@;jakarta.apache.org>


--
To unsubscribe, e-mail: <mailto:ojb-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:ojb-user-help@;jakarta.apache.org>



--
To unsubscribe, e-mail:   <mailto:ojb-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:ojb-user-help@;jakarta.apache.org>

Reply via email to