Simple Java Types and Their XQuery Counterparts This page last changed on Nov 28, 2008. ## Simple Java Types and Their XQuery Counterparts The following outlines the mapping between simple Java types and the corresponding XQuery or schema types:
Java Simple or Defined Type | XQuery/Schema Type
--- | ---
boolean | xs:boolean
byte | xs:byte
char | xs:char
double | xs:double
float | xs:float
int | xs:int
long | xs:long
short | xs:short
string | xd:string
java.lang.Date | xs:datetime
java.lang.Boolean | xs:boolean
java.math.BigInteger | xs:integer
java.math.BigDecimal | xs:decimal
java.lang.Byte | xs.byte
java.lang.Char | xs:char
java.lang.Double | xs:double
java.lang.Float | xs:float
java.lang.Integer | xs:integer
java.lang.Long | xs:long
java.lang.Short | xs:short
java.sql.Date | xs:date
java.sql.Time | xs:time
java.sql.Timestamp | xs:datetime
java.util.Calendar | xs:datetime
- Java functions can consume parameters and return values of the following types: Java primitives and types listed in the previous table Apache XMLBeans Oracle XMLBeans SDO DataObject (typed or untyped)
  | The elements or types referred to in the schema should be global elements.

Document generated by Confluence on Jan 13, 2009 15:57