javax.xml.xquery
Interface XQDataFactory

All Known Subinterfaces:
XQConnection, XQDatasource
All Known Implementing Classes:
IPSIXQDataSource, XQAbstractConnection, XQAbstractDataFactory, XQAbstractDataSource, XQConnectionImpl

public interface XQDataFactory

Author:
Michael Stark

Method Summary
 XQCachedSequence createCachedSequence()
          Returns an updatable, scrollable sequence, independent of the connection.
 XQCachedSequence createCachedSequence(XQSequenceType seqtype)
          Returns an updatable, scrollable sequence of the given type.
 XQCachedItem createItem(XQItem item)
          Create a cached item from the item object.
 XQCachedItem createItemFromByte(byte[] bytes, XQItemType type)
          Create a cached item from a binary value.
 XQCachedItem createItemFromDate(java.util.Calendar date, XQItemType type)
          Create a cached item from a date value.
 XQCachedItem createItemFromInt(int intval, XQItemType type)
          Create a cached item from an integer value.
 XQCachedItem createItemFromLong(long longval, XQItemType type)
          Create a cached item from a long value.
 XQCachedItem createItemFromString(java.lang.String strval, XQItemType type)
          Create a cached item from a string value.
 XQItemType createItemType(int itemtype, javax.xml.namespace.QName nodename, javax.xml.namespace.QName[] context_path, boolean firstQNameIsType, boolean nillable)
          Creates a new item type from a schema context path.
 XQItemType createItemType(int itemtype, javax.xml.namespace.QName nodename, javax.xml.namespace.QName typename, boolean nillable)
          Creates a new item type given the node name and type names.
 XQSequenceType createSequenceType(javax.xml.namespace.QName name, int occurence)
          Creates a new sequence type from type and occurence indicator.
 XQSequenceType createSequenceType(XQItemType item, int occurence)
          Creates a new sequence type from an ItemType and occurence indicator.
 

Method Detail

createCachedSequence

XQCachedSequence createCachedSequence()
Returns an updatable, scrollable sequence, independent of the connection.


createCachedSequence

XQCachedSequence createCachedSequence(XQSequenceType seqtype)
Returns an updatable, scrollable sequence of the given type.


createItem

XQCachedItem createItem(XQItem item)
                        throws XQException
Create a cached item from the item object.

Throws:
XQException

createItemFromByte

XQCachedItem createItemFromByte(byte[] bytes,
                                XQItemType type)
                                throws XQTypeException
Create a cached item from a binary value.

Throws:
XQTypeException

createItemFromDate

XQCachedItem createItemFromDate(java.util.Calendar date,
                                XQItemType type)
                                throws XQTypeException
Create a cached item from a date value.

Throws:
XQTypeException

createItemFromInt

XQCachedItem createItemFromInt(int intval,
                               XQItemType type)
                               throws XQTypeException
Create a cached item from an integer value.

Throws:
XQTypeException

createItemFromLong

XQCachedItem createItemFromLong(long longval,
                                XQItemType type)
                                throws XQTypeException
Create a cached item from a long value.

Throws:
XQTypeException

createItemFromString

XQCachedItem createItemFromString(java.lang.String strval,
                                  XQItemType type)
                                  throws XQTypeException
Create a cached item from a string value.

Throws:
XQTypeException

createItemType

XQItemType createItemType(int itemtype,
                          javax.xml.namespace.QName nodename,
                          javax.xml.namespace.QName[] context_path,
                          boolean firstQNameIsType,
                          boolean nillable)
                          throws XQException
Creates a new item type from a schema context path.

Throws:
XQException

createItemType

XQItemType createItemType(int itemtype,
                          javax.xml.namespace.QName nodename,
                          javax.xml.namespace.QName typename,
                          boolean nillable)
                          throws XQException
Creates a new item type given the node name and type names.

Throws:
XQException

createSequenceType

XQSequenceType createSequenceType(javax.xml.namespace.QName name,
                                  int occurence)
Creates a new sequence type from type and occurence indicator.


createSequenceType

XQSequenceType createSequenceType(XQItemType item,
                                  int occurence)
Creates a new sequence type from an ItemType and occurence indicator.