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

java.lang.Object
  extended by de.fraunhofer.ipsi.ipsixq.api.impl.XQAbstractExprCommons
All Implemented Interfaces:
XQDynamicContext, XQExprCommons
Direct Known Subclasses:
XQExprCommonsImpl

public class XQAbstractExprCommons
extends java.lang.Object
implements XQExprCommons

Author:
Michael Stark

Constructor Summary
XQAbstractExprCommons()
           
 
Method Summary
 void bindBase64Binary(javax.xml.namespace.QName varname, java.lang.Byte[] value)
          Binds a base64 binary value to the given external variable.
 void bindBoolean(javax.xml.namespace.QName varname, boolean value)
          Binds a boolean value to the given external variable.
 void bindByte(javax.xml.namespace.QName varname, byte value)
          Binds a byte value to the given external variable.
 void bindContextItem(XQItem contextitem)
          Binds an XQuery item object for context.
 void bindDecimal(javax.xml.namespace.QName varname, java.math.BigDecimal value)
          Binds a big decimal value to the given external variable.
 void bindDouble(javax.xml.namespace.QName varname, double value)
          Binds a double value to the given external variable.
 void bindFloat(javax.xml.namespace.QName varname, float value)
          Binds a float value to the given external variable.
 void bindHexBinary(javax.xml.namespace.QName varname, java.lang.Byte[] value)
          Binds a hexadecimal value to the given external variable.
 void bindInt(javax.xml.namespace.QName varname, int value)
          Binds an integer value to the given external variable.
 void bindItem(javax.xml.namespace.QName varname, XQItem item)
          Binds an item to this variable.
 void bindLexicalValue(javax.xml.namespace.QName varname, java.lang.String value, XQItemType type)
          Binds a lexical value to the given external variable.
 void bindLong(javax.xml.namespace.QName varname, long value)
          Binds a long value to the given external variable.
 void bindNode(javax.xml.namespace.QName varname, org.w3c.dom.Node node)
          Binds an XML node.
 void bindNotation(javax.xml.namespace.QName varname, java.lang.String value)
          Binds a Notation value to the given external variable.
 void bindSequence(javax.xml.namespace.QName varname, XQSequence seq)
          Binds a variable to the sequence of items contained in the input.
 void bindString(javax.xml.namespace.QName varname, java.lang.String value)
          Binds a string value to the given variable.
 void bindTime(javax.xml.namespace.QName varname, java.sql.Time value)
          Binds a time value to the given external variable.
 void bindTimestamp(javax.xml.namespace.QName varname, java.sql.Timestamp value)
          Binds a timestamp value to the given external variable.
 void bindURI(javax.xml.namespace.QName varname, java.net.URI value)
          Binds a URI value to the given external variable.
 void cancel()
          Attempts to cancel the execution of the XQExpression if both the XQuery data source and the XQJ driver support aborting the execution of an XQExpression.
 void clearWarnings()
          Clears the list of warnings associated with this expression.
 void close()
          Closes the expression object and release associated resources.
 java.util.TimeZone getImplicitTimeZone()
          Gets the implicit timezone.
 int getQueryTimeout()
          Retrieves the number of seconds that the driver will wait for the expression to execute.
 XQWarning getWarnings()
          Gets the first warning in a chained list of warnings associated with this expression.
 boolean isClosed()
          Checks if the expression is in a closed state.
 void setImplicitTimeZone(java.util.TimeZone implicitTimeZone)
          Sets the implicit timezone.
 void setQueryTimeout(int seconds)
          Sets the number of seconds the driver will wait for the expression to execute.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XQAbstractExprCommons

public XQAbstractExprCommons()
Method Detail

cancel

public void cancel()
            throws XQException
Description copied from interface: XQExprCommons
Attempts to cancel the execution of the XQExpression if both the XQuery data source and the XQJ driver support aborting the execution of an XQExpression.

Specified by:
cancel in interface XQExprCommons
Throws:
XQException

clearWarnings

public void clearWarnings()
                   throws XQException
Description copied from interface: XQExprCommons
Clears the list of warnings associated with this expression.

Specified by:
clearWarnings in interface XQExprCommons
Throws:
XQException

close

public void close()
           throws XQException
Description copied from interface: XQExprCommons
Closes the expression object and release associated resources.

Specified by:
close in interface XQExprCommons
Throws:
XQException

getQueryTimeout

public int getQueryTimeout()
                    throws XQException
Description copied from interface: XQExprCommons
Retrieves the number of seconds that the driver will wait for the expression to execute.

Specified by:
getQueryTimeout in interface XQExprCommons
Throws:
XQException

getWarnings

public XQWarning getWarnings()
                      throws XQException
Description copied from interface: XQExprCommons
Gets the first warning in a chained list of warnings associated with this expression.

Specified by:
getWarnings in interface XQExprCommons
Throws:
XQException

isClosed

public boolean isClosed()
Description copied from interface: XQExprCommons
Checks if the expression is in a closed state.

Specified by:
isClosed in interface XQExprCommons

setQueryTimeout

public void setQueryTimeout(int seconds)
                     throws XQException
Description copied from interface: XQExprCommons
Sets the number of seconds the driver will wait for the expression to execute.

Specified by:
setQueryTimeout in interface XQExprCommons
Throws:
XQException

bindBase64Binary

public void bindBase64Binary(javax.xml.namespace.QName varname,
                             java.lang.Byte[] value)
                      throws XQTypeException
Description copied from interface: XQDynamicContext
Binds a base64 binary value to the given external variable.

Specified by:
bindBase64Binary in interface XQDynamicContext
Throws:
XQTypeException

bindBoolean

public void bindBoolean(javax.xml.namespace.QName varname,
                        boolean value)
                 throws XQTypeException
Description copied from interface: XQDynamicContext
Binds a boolean value to the given external variable.

Specified by:
bindBoolean in interface XQDynamicContext
Throws:
XQTypeException

bindByte

public void bindByte(javax.xml.namespace.QName varname,
                     byte value)
              throws XQTypeException
Description copied from interface: XQDynamicContext
Binds a byte value to the given external variable.

Specified by:
bindByte in interface XQDynamicContext
Throws:
XQTypeException

bindContextItem

public void bindContextItem(XQItem contextitem)
                     throws XQTypeException
Description copied from interface: XQDynamicContext
Binds an XQuery item object for context.

Specified by:
bindContextItem in interface XQDynamicContext
Throws:
XQTypeException

bindDecimal

public void bindDecimal(javax.xml.namespace.QName varname,
                        java.math.BigDecimal value)
                 throws XQTypeException
Description copied from interface: XQDynamicContext
Binds a big decimal value to the given external variable.

Specified by:
bindDecimal in interface XQDynamicContext
Throws:
XQTypeException

bindDouble

public void bindDouble(javax.xml.namespace.QName varname,
                       double value)
                throws XQTypeException
Description copied from interface: XQDynamicContext
Binds a double value to the given external variable.

Specified by:
bindDouble in interface XQDynamicContext
Throws:
XQTypeException

bindFloat

public void bindFloat(javax.xml.namespace.QName varname,
                      float value)
               throws XQTypeException
Description copied from interface: XQDynamicContext
Binds a float value to the given external variable.

Specified by:
bindFloat in interface XQDynamicContext
Throws:
XQTypeException

bindHexBinary

public void bindHexBinary(javax.xml.namespace.QName varname,
                          java.lang.Byte[] value)
                   throws XQTypeException
Description copied from interface: XQDynamicContext
Binds a hexadecimal value to the given external variable.

Specified by:
bindHexBinary in interface XQDynamicContext
Throws:
XQTypeException

bindInt

public void bindInt(javax.xml.namespace.QName varname,
                    int value)
             throws XQTypeException
Description copied from interface: XQDynamicContext
Binds an integer value to the given external variable.

Specified by:
bindInt in interface XQDynamicContext
Throws:
XQTypeException

bindItem

public void bindItem(javax.xml.namespace.QName varname,
                     XQItem item)
              throws XQTypeException
Description copied from interface: XQDynamicContext
Binds an item to this variable.

Specified by:
bindItem in interface XQDynamicContext
Throws:
XQTypeException

bindLexicalValue

public void bindLexicalValue(javax.xml.namespace.QName varname,
                             java.lang.String value,
                             XQItemType type)
                      throws XQTypeException
Description copied from interface: XQDynamicContext
Binds a lexical value to the given external variable.

Specified by:
bindLexicalValue in interface XQDynamicContext
Throws:
XQTypeException

bindLong

public void bindLong(javax.xml.namespace.QName varname,
                     long value)
              throws XQTypeException
Description copied from interface: XQDynamicContext
Binds a long value to the given external variable.

Specified by:
bindLong in interface XQDynamicContext
Throws:
XQTypeException

bindNode

public void bindNode(javax.xml.namespace.QName varname,
                     org.w3c.dom.Node node)
              throws XQTypeException
Description copied from interface: XQDynamicContext
Binds an XML node.

Specified by:
bindNode in interface XQDynamicContext
Throws:
XQTypeException

bindNotation

public void bindNotation(javax.xml.namespace.QName varname,
                         java.lang.String value)
                  throws XQTypeException
Description copied from interface: XQDynamicContext
Binds a Notation value to the given external variable.

Specified by:
bindNotation in interface XQDynamicContext
Throws:
XQTypeException

bindSequence

public void bindSequence(javax.xml.namespace.QName varname,
                         XQSequence seq)
                  throws XQTypeException
Description copied from interface: XQDynamicContext
Binds a variable to the sequence of items contained in the input.

Specified by:
bindSequence in interface XQDynamicContext
Throws:
XQTypeException

bindString

public void bindString(javax.xml.namespace.QName varname,
                       java.lang.String value)
                throws XQTypeException
Description copied from interface: XQDynamicContext
Binds a string value to the given variable.

Specified by:
bindString in interface XQDynamicContext
Throws:
XQTypeException

bindTime

public void bindTime(javax.xml.namespace.QName varname,
                     java.sql.Time value)
              throws XQTypeException
Description copied from interface: XQDynamicContext
Binds a time value to the given external variable.

Specified by:
bindTime in interface XQDynamicContext
Throws:
XQTypeException

bindTimestamp

public void bindTimestamp(javax.xml.namespace.QName varname,
                          java.sql.Timestamp value)
                   throws XQTypeException
Description copied from interface: XQDynamicContext
Binds a timestamp value to the given external variable.

Specified by:
bindTimestamp in interface XQDynamicContext
Throws:
XQTypeException

bindURI

public void bindURI(javax.xml.namespace.QName varname,
                    java.net.URI value)
             throws XQTypeException,
                    XPathDTException
Description copied from interface: XQDynamicContext
Binds a URI value to the given external variable.

Specified by:
bindURI in interface XQDynamicContext
Throws:
XQTypeException
XPathDTException

getImplicitTimeZone

public java.util.TimeZone getImplicitTimeZone()
Description copied from interface: XQDynamicContext
Gets the implicit timezone.

Specified by:
getImplicitTimeZone in interface XQDynamicContext

setImplicitTimeZone

public void setImplicitTimeZone(java.util.TimeZone implicitTimeZone)
Description copied from interface: XQDynamicContext
Sets the implicit timezone.

Specified by:
setImplicitTimeZone in interface XQDynamicContext