Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
_jt #1
How to cast cfquery object to type java.util.Map
In the LiveDocs it says:
"..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:
CFML | Java
Query object | java.util.Map .."
I was hoping this meant that a query object could be passed to a java method
that accepted an argument of the type java.util.Map and the query object
would be automatically converted ... or perhaps the query object could be
cast explicitly ... but so far I've had no luck.
Can anyone tell me if it is actually possible to convert a query object to
type java.util.Map and if so, how?
_jt Guest
-
java.util.Arrays$ArrayList exception causing JRun error
We have a website running on a dedicated ColdFusion MX 6.1/Windows 2003 web server that has been running without any problems for two months (since... -
java.util.zip.ZipOutputStream
I'd like to create an object, which would save a created zipfile into a variable instead of file. OutputStream =... -
The file failed to load in the Web Form designer ... Unable to cast object of type myServicedComponentClass ...
I have a user control that inherits from a base user control class. I can view and edit the base user control in the designer. However, my child... -
cast from datetime type to smalldatetime type?
Hi, How can I cast from datetime type to smalldatetime type. I get the records from a table which has got a datetime type column but I want to... -
Cast from type 'DBNull' to type 'String' is not valid error
Trying to add an insert button Sub btnAddRow_Click event for adding a row to the datagrid and dataset back to SQL. Had it working per the... -
_jt #2
Re: How to cast cfquery object to type java.util.Map
Any thoughts anyone?
"_jt" <fakeemail@nospam.not> wrote in message
news:d6vqln$gds$1@forums.macromedia.com...values> In the LiveDocs it says:
> "..The following table lists how ColdFusion converts ColdFusion dataindicates> to Java data types when passing arguments. The left column represents the
> underlying ColdFusion representation of its data. The right columnmethod> the Java data types into which ColdFusion can automatically convert the
> data:
>
> CFML | Java
> Query object | java.util.Map .."
>
> I was hoping this meant that a query object could be passed to a java> that accepted an argument of the type java.util.Map and the query object
> would be automatically converted ... or perhaps the query object could be
> cast explicitly ... but so far I've had no luck.
>
> Can anyone tell me if it is actually possible to convert a query object to
> type java.util.Map and if so, how?
>
>
_jt Guest
-
gclausen #3
Re: How to cast cfquery object to type java.util.Map
Sorry, this is intensionally not allowed in CFML or CFSCRIPT.
gclausen Guest
-
_jt #4
Re: How to cast cfquery object to type java.util.Map
Thanks for the response.
So, you cannot explicitly convert the object in CFML or CFSCRIPT. I guess
that's entirely possible. Do you recall where you read that?
What about passing a query to a java class then? The documentation makes it
sounds like you could pass a query object to a java class that accepts a
java.util.Map object and that CF could implicitly convert the query to a Map
object. But maybe my understanding of the section in the documentation is
wrong...
"gclausen" <webforumsuser@macromedia.com> wrote in message
news:d75992$lm4$1@forums.macromedia.com...> Sorry, this is intensionally not allowed in CFML or CFSCRIPT.
_jt Guest



Reply With Quote

