Re: Merging data from two data bases

Armin Waibel <[email protected]>
Newsgroups gmane.comp.jakarta.ojb.user
Message-ID <[email protected]>
Hi Bernd,

Längerich wrote:
> "Ingrid" Längerich writes:
> 
>> The code I tried is like this:
> 
> OK, I found out that 
> 
>       Iterator it = masterbroker.getReportQueryIteratorByQuery(masterquery);
>       Collection taids = new Vector();
>       while (it.hasNext()) {
>         Object obj = ((Object[])it.next())[0];
>         taids.add(obj);
>       }
> 
> is working. Is there a better way to achieve the same result?
>

I don't know a better way to do this. A report query result is always an 
object array and you use a ReportQueryIterator, so the ResultSet is only 
looped once.

regards,
Armin

> Bernd
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.