Thanks for the reply. I was able to retrieve a resultset object using the
undocumented methods, but since it is not a supported feature I cannot use it.
>From Macromedia's documentation:
"...The following table lists how ColdFusion converts ColdFusion data values to
Java data types when passing arguments. The left column represents the
underlying ColdFusion representation of its data. The right column indicates
the Java data types into which ColdFusion can automatically convert the data:
Query object | java.util.Map ..."
Unfortunately, I'm beginning to suspect it does not work in the version I'm
using.
Originally, I was hoping I did not have to convert the query to a java object
manually, but your example works fine and is less painful then I thought :)
Thanks for all the great suggestions.
>CF only converts simple data types with JavaCast() as a means of
>informing CF when there are overloaded methods in your Java object
>receiving the arguments. There might be a way to return the java
>resultset object from a query object using an undocumented method of
>the query object. For a java.util.Map (which is the interface for
>java.util.Hashtable and subsequently coldfusion.util.Hashtable) you
>should be able to create a java hashtable object and insert all the
>values from a struct this way:
>
><cfset hashtable = createObject("java","java.util.hashTable")>
><cfset mystruct.putAll(hashtable)>
>
>Then pass the hashtable variable to your java object.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble
Ticket application
http://www.houseoffusion.com/banners/view.cfm?bannerid=48
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207666
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54