XQuery Types Supported by XQJ get Methods


For a value of an XQuery result to be used by a Java application, the value must be mapped to a Java data type using the XQJ get methods. Table G-16 lists the XQuery types that are supported for XQJ get methods.

.

Table G-16. XQuery Types Supported for XQJ get Methods 
get Method
Supported XQuery Type
getAtomicValue
xs:anyAtomicType (or any of its built-in subtypes derived by restriction)
getBoolean
xs:boolean
getByte
xs:decimal (or any of its built-in subtypes derived by restriction)
getDouble
xs:double
getFloat
xs:float
getInt
xs:decimal (or any of its built-in subtypes derived by restriction)
getLong
xs:decimal (or any of its built-in subtypes derived by restriction)
getNode
node( )
getObject
xs:anyAtomicType or node( )
getShort
xs:decimal (or any of its built-in subtypes derived by restriction)