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

java.lang.Object
  extended by de.fraunhofer.ipsi.ipsixq.api.impl.XQAbstractDataFactory
      extended by de.fraunhofer.ipsi.ipsixq.api.impl.XQAbstractConnection
          extended by de.fraunhofer.ipsi.ipsixq.api.impl.XQConnectionImpl
All Implemented Interfaces:
XQConnection, XQDataFactory, XQDynamicContext, XQStaticContext

public class XQConnectionImpl
extends XQAbstractConnection

Author:
Michael Stark

Constructor Summary
XQConnectionImpl()
           
 
Method Summary
 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 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 bindInt(javax.xml.namespace.QName varname, int value)
          Binds an integer 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 bindString(javax.xml.namespace.QName varname, java.lang.String value)
          Binds a string value to the given variable.
 void bindURI(javax.xml.namespace.QName varname, java.net.URI value)
          Binds a URI value to the given external variable.
 void close()
          Closes the connection.
 XQExpression createExpression()
          Creates a new Xquery expression object that can be used to perform execute immediate operations with XQuery expressions.
 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.
 boolean isClosed()
          Checks if the connection is closed.
 XQPreparedExpression prepareExpression(java.io.Reader xquery)
          Prepares an expression for execution (input xquery reader).
 XQPreparedExpression prepareExpression(java.lang.String xquery)
          Prepares an expression for execution.
 
Methods inherited from class de.fraunhofer.ipsi.ipsixq.api.impl.XQAbstractConnection
bindBase64Binary, bindContextItem, bindHexBinary, bindItem, bindLexicalValue, bindNotation, bindSequence, bindTime, bindTimestamp, clearWarnings, commit, getBaseURI, getDefaultCollation, getDefaultElementTypeNamespace, getDefaultFunctionNamespace, getDefaultValidationMode, getDefaultXMLSpacePolicy, getHoldability, getImplicitTimeZone, getInScopeNamespacePrefixes, getMetaData, getMetaDataProperty, getNamespaceURI, getQueryLanguageTypeAndVersion, getScrollability, getStaticInScopeVariableNames, getStaticInScopeVariableType, getSupportedMetaDataPropertyNames, getUpdatability, getWarnings, rollback, setCommonHandler, setHoldability, setImplicitTimeZone, setQueryLanguageAndVersion, setScrollability, setUpdatability
 
Methods inherited from class de.fraunhofer.ipsi.ipsixq.api.impl.XQAbstractDataFactory
createCachedSequence, createCachedSequence, createItem, createItemFromByte, createItemFromDate, createItemFromInt, createItemFromLong, createItemFromString, createItemType, createSequenceType, createSequenceType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.xml.xquery.XQDataFactory
createCachedSequence, createCachedSequence, createItem, createItemFromByte, createItemFromDate, createItemFromInt, createItemFromLong, createItemFromString, createItemType, createSequenceType, createSequenceType
 

Constructor Detail

XQConnectionImpl

public XQConnectionImpl()
Method Detail

close

public void close()
           throws XQException
Description copied from interface: XQConnection
Closes the connection.

Specified by:
close in interface XQConnection
Overrides:
close in class XQAbstractConnection
Throws:
XQException

createExpression

public XQExpression createExpression()
                              throws XQException
Description copied from interface: XQConnection
Creates a new Xquery expression object that can be used to perform execute immediate operations with XQuery expressions.

Specified by:
createExpression in interface XQConnection
Overrides:
createExpression in class XQAbstractConnection
Throws:
XQException

isClosed

public boolean isClosed()
Description copied from interface: XQConnection
Checks if the connection is closed.

Specified by:
isClosed in interface XQConnection
Overrides:
isClosed in class XQAbstractConnection

prepareExpression

public XQPreparedExpression prepareExpression(java.io.Reader xquery)
                                       throws XQException
Description copied from interface: XQConnection
Prepares an expression for execution (input xquery reader).

Specified by:
prepareExpression in interface XQConnection
Overrides:
prepareExpression in class XQAbstractConnection
Throws:
XQException

prepareExpression

public XQPreparedExpression prepareExpression(java.lang.String xquery)
                                       throws XQException
Description copied from interface: XQConnection
Prepares an expression for execution.

Specified by:
prepareExpression in interface XQConnection
Overrides:
prepareExpression in class XQAbstractConnection
Throws:
XQException

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
Overrides:
bindBoolean in class XQAbstractConnection
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
Overrides:
bindDouble in class XQAbstractConnection
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
Overrides:
bindFloat in class XQAbstractConnection
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
Overrides:
bindInt in class XQAbstractConnection
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
Overrides:
bindLong in class XQAbstractConnection
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
Overrides:
bindString in class XQAbstractConnection
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
Overrides:
bindByte in class XQAbstractConnection
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
Overrides:
bindDecimal in class XQAbstractConnection
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
Overrides:
bindURI in class XQAbstractConnection
Throws:
XQTypeException
XPathDTException

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
Overrides:
bindNode in class XQAbstractConnection
Throws:
XQTypeException

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
Overrides:
createItemType in class XQAbstractDataFactory
Throws:
XQException