Hello,

I have this problem:

I have a Collection that contains n String (I don't know the number in advance).

These n String are used to construct some criteria. Each String is used for one 
criteria.
I need OR statements between criteria, like:
crit1 OR crit2 OR crit3 OR ... critn

The criteria should look like: crit.like("packageOwner", owner);

the code is:
----code----
Iterator iterator = collection.iterator();
while (iterator.hasNext()) {
String owner = (String) iter.next();
//construct some criteria with OR statements between them

???????

}
----code----

How can I construct these criteria with OJB?
Is anyone has an experience?


Thanks in advance
Sylvain

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

Reply via email to