How to cast cfquery object to type java.util.Map

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. java.util.zip.ZipOutputStream
      I'd like to create an object, which would save a created zipfile into a variable instead of file. OutputStream =...
    3. 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...
    4. 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...
    5. 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...
  3. #2

    Default 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...
    > 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

  4. #3

    Default Re: How to cast cfquery object to type java.util.Map

    Sorry, this is intensionally not allowed in CFML or CFSCRIPT.
    gclausen Guest

  5. #4

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139