Re: Newbie help! Returning an enumeration
- From: Roedy Green <my_email_is_posted_on_my_website@xxxxxxxxxxxxxx>
- Date: Wed, 28 Dec 2005 20:34:12 GMT
On Wed, 28 Dec 2005 20:24:05 GMT, "Andy Bailey"
<andy.bailey1@xxxxxxxxxxxx> wrote, quoted or indirectly quoted someone
who said :
> Do i need to Cast the ResultSet rs to an Enumeration
>type? Or am i totally barking up the wrong tree and i need to implement the
>Enumeration interface?
You need to return an object that implements the Enumeration (or
Iterator to be modern) Interface.
This class his burned into it the information needed to get at each
row, i.e. you pass it the resultset to its constructor. It can be an
anonymous class. Have a look at source code in src.zip that returns
Enumerations or Iterators to see how they do it.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
.
- References:
- Newbie help! Returning an enumeration
- From: Andy Bailey
- Newbie help! Returning an enumeration
- Prev by Date: Re: Constructor Conundrum
- Next by Date: creating/copying files..
- Previous by thread: Newbie help! Returning an enumeration
- Next by thread: creating/copying files..
- Index(es):
Relevant Pages
|