de.fraunhofer.ipsi.ipsixq.api.impl
Class XQAbstractDataFactory

java.lang.Object
  extended by de.fraunhofer.ipsi.ipsixq.api.impl.XQAbstractDataFactory
All Implemented Interfaces:
XQDataFactory
Direct Known Subclasses:
XQAbstractConnection, XQAbstractDataSource

public abstract class XQAbstractDataFactory
extends java.lang.Object
implements XQDataFactory

Author:
Michael Stark

Constructor Summary
XQAbstractDataFactory()
           
 
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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XQAbstractDataFactory

public XQAbstractDataFactory()
Method Detail

createCachedSequence

public XQCachedSequence createCachedSequence()
Description copied from interface: XQDataFactory
Returns an updatable, scrollable sequence, independent of the connection.

Specified by:
createCachedSequence in interface XQDataFactory

createCachedSequence

public XQCachedSequence createCachedSequence(XQSequenceType seqtype)
Description copied from interface: XQDataFactory
Returns an updatable, scrollable sequence of the given type.

Specified by:
createCachedSequence in interface XQDataFactory

createItem

public XQCachedItem createItem(XQItem item)
                        throws XQException
Description copied from interface: XQDataFactory
Create a cached item from the item object.

Specified by:
createItem in interface XQDataFactory
Throws:
XQException

createItemFromByte

public XQCachedItem createItemFromByte(byte[] bytes,
                                       XQItemType type)
                                throws XQTypeException
Description copied from interface: XQDataFactory
Create a cached item from a binary value.

Specified by:
createItemFromByte in interface XQDataFactory
Throws:
XQTypeException

createItemFromDate

public XQCachedItem createItemFromDate(java.util.Calendar date,
                                       XQItemType type)
                                throws XQTypeException
Description copied from interface: XQDataFactory
Create a cached item from a date value.

Specified by:
createItemFromDate in interface XQDataFactory
Throws:
XQTypeException

createItemFromInt

public XQCachedItem createItemFromInt(int intval,
                                      XQItemType type)
                               throws XQTypeException
Description copied from interface: XQDataFactory
Create a cached item from an integer value.

Specified by:
createItemFromInt in interface XQDataFactory
Throws:
XQTypeException

createItemFromLong

public XQCachedItem createItemFromLong(long longval,
                                       XQItemType type)
                                throws XQTypeException
Description copied from interface: XQDataFactory
Create a cached item from a long value.

Specified by:
createItemFromLong in interface XQDataFactory
Throws:
XQTypeException

createItemFromString

public XQCachedItem createItemFromString(java.lang.String strval,
                                         XQItemType type)
                                  throws XQTypeException
Description copied from interface: XQDataFactory
Create a cached item from a string value.

Specified by:
createItemFromString in interface XQDataFactory
Throws:
XQTypeException

createItemType

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

Specified by:
createItemType in interface XQDataFactory
Throws:
XQException

createItemType

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

Specified by:
createItemType in interface XQDataFactory
Throws:
XQException

createSequenceType

public XQSequenceType createSequenceType(javax.xml.namespace.QName name,
                                         int occurence)
Description copied from interface: XQDataFactory
Creates a new sequence type from type and occurence indicator.

Specified by:
createSequenceType in interface XQDataFactory

createSequenceType

public XQSequenceType createSequenceType(XQItemType item,
                                         int occurence)
Description copied from interface: XQDataFactory
Creates a new sequence type from an ItemType and occurence indicator.

Specified by:
createSequenceType in interface XQDataFactory