Neil,
You asked this question
"What is the process for looping through a Java iterator in CF?"
My response was a solution to that question.
and
"Now only thing to see is if there is a way to get the iterator length ;-)"
As I stated before there is no special method to gather length() or size()
and
you don't to know the length using that loop.
On 11/1/06, Robertson-Ravo, Neil (RX) <[EMAIL PROTECTED]>
wrote:
>
> Thanks, but as noted I fixed it using the search API.
>
> Thanks for the 101, how nice :-) I rarely use (or have need) pure Java in
> ColdFusion....outside what if provides out of the box the hence why I
> asked.
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> "This e-mail is from Reed Exhibitions (Gateway House, 28 The Quadrant,
> Richmond, Surrey, TW9 1DN, United Kingdom), a division of Reed Business,
> Registered in England, Number 678540. It contains information which is
> confidential and may also be privileged. It is for the exclusive use of
> the
> intended recipient(s). If you are not the intended recipient(s) please
> note
> that any form of distribution, copying or use of this communication or the
> information in it is strictly prohibited and may be unlawful. If you have
> received this communication in error please return it to the sender or
> call
> our switchboard on +44 (0) 20 89107910. The opinions expressed within
> this
> communication are not necessarily those expressed by Reed Exhibitions."
> Visit our website at http://www.reedexpo.com
>
> -----Original Message-----
> From: Dan Plesse
> To: CF-Talk
> Sent: Wed Nov 01 16:55:16 2006
> Subject: Re: Java ListIterator to CF Variable
>
> Neil,
>
> This is basically a CF java 101 question and I am shocked shocked well not
> that shocked.
>
> Interesting coldfusion.sql.QueryColumn has two listIterators and
> implements
> java.util.List
>
> public java.util.ListIterator listIterator(int)
>
> public java.util.ListIterator listIterator()
>
> I would try size() or length() but that goes with List object and not
> ListIterator
>
> Simply google java.util.ListIterator and look at the method list or use my
> object Viewer
>
> Interestingly google does not help with Interfaces.
>
> The only remaining thing you can do is use the Object Viewer
>
> http://www.cfide.org/ObjectViewer.cfm
>
> My forName().isInterface() YES which means its a Interface and it has only
> 9
> methods but no size() or length()
> methods
>
> Use the the new school EOF looper I think old school was to wait for a
> null.
>
>
> <cfloop condition="object.hasNext()">
> <cfset stuff = object.next()>
> </cfoop>
>
> and that should do it.
>
>
>
> On 11/1/06, Andrew Scott <[EMAIL PROTECTED]> wrote:
> >
> > If you have returned it has a jave object via CreateObject, treat it the
> > same way as you would in Java.
> >
> > On 11/2/06, Robertson-Ravo, Neil (RX) <
> > [EMAIL PROTECTED]>
> > wrote:
> > >
> > > Hi All,
> > >
> > > I am currently interfacing with our new Search Engine via its Java API
> > > (obviously using ColdFusion ;-) and it has the following line in the
> API
> > > docs...
> > >
> > > Java.util.ListIterator iterator = result.documents(); // returns a
> list
> > > iterator for the document summaries in this query result.
> > >
> > > What is the process for looping through a Java iterator in CF?
> > >
> > > Thanks
> > >
> > > Neil
> > >
> > >
> > >
> > >
> > >
> > >
> >
> >
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four
times a year.
http://www.fusionauthority.com/quarterly
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:258760
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4