Erm...
> What would be the most future-proof method of looping over a
> CFQUERY in a Java tag-lib? You think if I use the
> coldfusion.sql.QueryTable Obj, it wouldn't change? Or should
> I cast it to something else?? Anyone written a tag-lib that
> uses a CF query?
What are you actually trying to do? Take a coldfusion.sql.QueryTable object
and loop over it? If so, the only way to do it is to use the
coldfusion.sql.QueryTable object, unless you can create a class that sits
in-between. Ie
class MyQueryTable {
coldfusion.sql.Querytable myQuery;
public MyQueryTable(coldfusion.sql.Querytable newQuery) {
myQuery = newQuery;
}
public java.sql.ResultSet (or whatever you want here) getData() {
// do something and return a ResultSet from myQuery
}
}
That is probably what I'd do, because then you don't have to touch the
functionality of the tag to update the code, just update the single class.
The other advantage of this (and you could easily make it an inner class or
just a series of methods) is that it's easier for other programmers to
understand if they look at the code. No "What is this
coldfusion.sql.QueryTable class then?" comments.
HTH
Paul
--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]