XQDataFactory
This interface represents a factory to obtain sequences, item objects, and types, which when obtained are independent of any connection.
Some of the methods in this interface create element, document, or attribute nodes. DataDirect XQuery creates untyped instances of these nodes.
Table G-2 describes how DataDirect XQuery supports the methods of the XQDataFactory interface.
Table G-2. XQDataFactory Method Summary Method Support XQItemType createAtomicType(int basetype) Supported. XQItemType createAtomicType(int basetype, QName typename, URI schemaURI) Supported. DataDirect XQuery does not support user-defined XML Schema types. XQItemType createAttributeType(QName nodename, int basetype) Supported. XQItemType createAttributeType(QName nodename, int basetype, QName typename, URI schemaURI) Supported. DataDirect XQuery does not support user-defined XML Schema types.1 XQItemType createCommentType( ) Supported. XQItemType createDocumentElementType
(XQItemType elementType) Supported. XQItemType createDocumentSchemaElementType
(XQItemType elementType) DataDirect XQuery does not support user-defined XML Schema types. XQItemType createDocumentType( ) Supported. XQItemType createElementType(QName nodename, int basetype) Supported. XQItemType createElementType(QName nodename, int basetype, QName typename, URI schemaURI, boolean allowNill) Supported. schemaURI and allowNill are ignored. If typename is not null, then it must match the value specified for basetype.1 XQItem createItem(XQItem item) Supported. XQItem createItemFromAtomicValue(String value, XQItemType type) Supported. XQItem createItemFromBoolean(boolean value, XQItemType type) Supported. XQItem createItemFromByte(byte value, XQItemType type) Supported. XQItem createItemFromDocument(InputStream value, String baseURI, XQItemType type) Supported. XQItem createItemFromDocument(Reader value,
String baseURI, XQItemType type) Supported. XQItem createItemFromDocument(String value,
String baseURI, XQItemType type) Supported. XQItem createItemFromDocument(Source value,
XQItemType type) Supported. XQItem createItemFromDocument(XMLStreamReader value,
XQItemType type) Supported. XQItem createItemFromDouble(double value, XQItemType type) Supported. XQItem createItemFromFloat(float value, XQItemType type) Supported. XQItem createItemFromInt(int value, XQItemType type) Supported. XQItem createItemFromLong(long value, XQItemType type) Supported. XQItem createItemFromNode(Node value, XQItemType type) Supported. XQItem createItemFromObject(Object value, XQItemType type) Supported. XQItem createItemFromShort(short value, XQItemType type) Supported. XQItem createItemFromString(String value, XQItemType type) Supported. XQItemType createItemType( ) Supported. XQItemType createNodeType( ) Supported. XQItemType createProcessingInstructionType(String piTarget) Supported. XQItemType createSchemaAttributeType(QName nodename, int basetype, URI schemaURI) DataDirect XQuery does not support user-defined XML Schema types. XQItemType createSchemaElementType(QName nodename, int basetype, URI schemaURI) DataDirect XQuery does not support user-defined XML Schema types. XQSequence createSequence(Iterator i) Supported. XQSequence createSequence(XQSequence s) Supported. XQSequenceType createSequenceType(XQItemType item, int occurrence) Supported. XQItemType createTextType( ) Supported.
1 An example where typename does not equal basetype:createAttributeType(
new QName("http://www.foo.com", "bar"),
XQItemType.XQBASETYPE_INTEGER,
new QNAME("http://www.w3.org/2001/XMLSchema", "decimal"),null);