net.sf.saxon.xqj

Class SaxonXQDynamicContext

Implemented Interfaces:
XQDynamicContext
Known Direct Subclasses:
SaxonXQExpression, SaxonXQPreparedExpression

public abstract class SaxonXQDynamicContext
extends java.lang.Object
implements XQDynamicContext

Saxon implementation of the XQJ DynamicContext interface

Field Summary

protected SaxonXQConnection
connection

Method Summary

void
bindAtomicValue(QName varname, String value, XQItemType type)
void
bindBoolean(QName varname, boolean value, XQItemType type)
void
bindByte(QName varname, byte value, XQItemType type)
void
bindDocument(QName varname, InputStream value, XQItemType type)
void
bindDocument(QName varname, Reader value, XQItemType type)
void
bindDocument(QName varname, Source value, XQItemType type)
void
bindDocument(QName varname, String value, XQItemType type)
void
bindDocument(QName varname, XMLReader value, XQItemType type)
void
bindDocument(QName varname, XMLStreamReader value, XQItemType type)
void
bindDouble(QName varname, double value, XQItemType type)
void
bindFloat(QName varname, float value, XQItemType type)
void
bindInt(QName varname, int value, XQItemType type)
void
bindItem(QName varname, XQItem value)
void
bindLong(QName varname, long value, XQItemType type)
void
bindNode(QName varname, Node value, XQItemType type)
void
bindObject(QName varname, Object value, XQItemType type)
void
bindSequence(QName varname, XQSequence value)
void
bindShort(QName varname, short value, XQItemType type)
void
bindString(QName varname, String value, XQItemType type)
protected abstract void
checkNotClosed()
protected abstract SaxonXQDataFactory
getDataFactory()
protected abstract DynamicQueryContext
getDynamicContext()
TimeZone
getImplicitTimeZone()
void
setImplicitTimeZone(TimeZone implicitTimeZone)

Field Details

connection

protected SaxonXQConnection connection

Method Details

bindAtomicValue

public void bindAtomicValue(QName varname,
                            String value,
                            XQItemType type)
            throws XQException
Specified by:
bindAtomicValue in interface XQDynamicContext

bindBoolean

public void bindBoolean(QName varname,
                        boolean value,
                        XQItemType type)
            throws XQException
Specified by:
bindBoolean in interface XQDynamicContext

bindByte

public void bindByte(QName varname,
                     byte value,
                     XQItemType type)
            throws XQException
Specified by:
bindByte in interface XQDynamicContext

bindDocument

public void bindDocument(QName varname,
                         InputStream value,
                         XQItemType type)
            throws XQException
Specified by:
bindDocument in interface XQDynamicContext

bindDocument

public void bindDocument(QName varname,
                         Reader value,
                         XQItemType type)
            throws XQException
Specified by:
bindDocument in interface XQDynamicContext

bindDocument

public void bindDocument(QName varname,
                         Source value,
                         XQItemType type)
            throws XQException
Specified by:
bindDocument in interface XQDynamicContext

bindDocument

public void bindDocument(QName varname,
                         String value,
                         XQItemType type)
            throws XQException
Specified by:
bindDocument in interface XQDynamicContext

bindDocument

public void bindDocument(QName varname,
                         XMLReader value,
                         XQItemType type)
            throws XQException
Specified by:
bindDocument in interface XQDynamicContext

bindDocument

public void bindDocument(QName varname,
                         XMLStreamReader value,
                         XQItemType type)
            throws XQException
Specified by:
bindDocument in interface XQDynamicContext

bindDouble

public void bindDouble(QName varname,
                       double value,
                       XQItemType type)
            throws XQException
Specified by:
bindDouble in interface XQDynamicContext

bindFloat

public void bindFloat(QName varname,
                      float value,
                      XQItemType type)
            throws XQException
Specified by:
bindFloat in interface XQDynamicContext

bindInt

public void bindInt(QName varname,
                    int value,
                    XQItemType type)
            throws XQException
Specified by:
bindInt in interface XQDynamicContext

bindItem

public void bindItem(QName varname,
                     XQItem value)
            throws XQException
Specified by:
bindItem in interface XQDynamicContext

bindLong

public void bindLong(QName varname,
                     long value,
                     XQItemType type)
            throws XQException
Specified by:
bindLong in interface XQDynamicContext

bindNode

public void bindNode(QName varname,
                     Node value,
                     XQItemType type)
            throws XQException
Specified by:
bindNode in interface XQDynamicContext

bindObject

public void bindObject(QName varname,
                       Object value,
                       XQItemType type)
            throws XQException
Specified by:
bindObject in interface XQDynamicContext

bindSequence

public void bindSequence(QName varname,
                         XQSequence value)
            throws XQException
Specified by:
bindSequence in interface XQDynamicContext

bindShort

public void bindShort(QName varname,
                      short value,
                      XQItemType type)
            throws XQException
Specified by:
bindShort in interface XQDynamicContext

bindString

public void bindString(QName varname,
                       String value,
                       XQItemType type)
            throws XQException
Specified by:
bindString in interface XQDynamicContext

checkNotClosed

protected abstract void checkNotClosed()
            throws XQException

getDataFactory

protected abstract SaxonXQDataFactory getDataFactory()
            throws XQException

getDynamicContext

protected abstract DynamicQueryContext getDynamicContext()

getImplicitTimeZone

public TimeZone getImplicitTimeZone()
            throws XQException
Specified by:
getImplicitTimeZone in interface XQDynamicContext

setImplicitTimeZone

public void setImplicitTimeZone(TimeZone implicitTimeZone)
            throws XQException
Specified by:
setImplicitTimeZone in interface XQDynamicContext