Adobe COLDFUSION 9 Manual page 1164

Developing applications
Hide thumbs Also See for COLDFUSION 9:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Using Web Elements and External Objects
int / System.Int32
int[] / System.Int32[]
long / System.Int64
long[] / System.Int64[]
sbyte / System.Sbyte
sbyte []/ System.Sbyte[]
short / System.Int16
short[] / System.Int16[]
System.Decimal
System.String
Note: You do not have to use a
converted to .NET System.String.
Create special objects for .NET primitive unsigned data types, such as byte (unsigned byte), ushort (unsigned short),
uint (unsigned int) and ulong (unsigned long), for which no corresponding java types exist. The following table lists
the .NET primitive types and the corresponding class you must use.
.NET type
byte / System.Byte
ushort / System.UInt16
uint / System.UInt32
ulong / System.UInt64
Use the
function or
createObject
other .NET classes, before you use them in your assignment statement. For example, the following line creates a ushort
representation of the value 100:
<cfset boxedUShort = createObject(".NET". "System.BoxedUShort").init(100)>
The following example creates a System.Hashtable object and populates it with examples of all types of primitives.
int
int[]
long
long[]
byte
byte []
short
short[]
bigdecimal
String
function to convert ColdFusion string variables. They are automatically
JavaCast
Class used in cfobject/createObject
System.BoxedByte
System.BoxedUShort
System.BoxedUInt
System.BoxedULong
tag to create these special objects, in the same manner as you create
cfobject
Last updated 8/5/2010
1159

Advertisement

Table of Contents
loading

Table of Contents