ColdFusion request on java.sql.ResultSet

I looked through the "undocumentation" and I see how to create coldfusion.sql.QueryTable from a ResultSet , but not vice versa. So how can I extract java.sql.ResultSet from a ColdFusion query object ( coldfusion.sql.QueryTable )?

+4
source share
2 answers

coldfusion.sql.QueryTable implements javax.sql.RowSet, which extends java.sql.ResultSet

Thus, as you have discovered, you do not need to do anything. The ColdFusion request is already a Java ResultSet.

+8
source

It turns out that all I needed to do was pass my coldfusion.sql.QueryTable ... I don’t know why it works, unless ColdFusion does magic casting under the hood.

+2
source

All Articles