Package net.sf.saxon.xqj
Class SaxonXQConnection
- java.lang.Object
-
- net.sf.saxon.xqj.SaxonXQDataFactory
-
- net.sf.saxon.xqj.SaxonXQConnection
-
- All Implemented Interfaces:
XQConnection
,XQDataFactory
,XQStaticContext
public class SaxonXQConnection extends SaxonXQDataFactory implements XQConnection
Saxon implementation of the XQL interface XQConnection. This interface represents a "connection" between an XQuery application and an XQuery server. In Saxon the client and server run in the same process so the concept of a connection is rather notional, and some of the properties have little meaning. However, the connection is the factory object used to compile queries.For Javadoc descriptions of the public methors, see the XQJ documentation.
-
-
Constructor Summary
Constructors Constructor Description SaxonXQConnection(SaxonXQDataSource dataSource)
Create an SaxonXQConnection from a SaxonXQDataSource
-
Method Summary
-
Methods inherited from class net.sf.saxon.xqj.SaxonXQDataFactory
createAtomicItemType, createItem, createItemFromAtomicValue, createItemFromBoolean, createItemFromByte, createItemFromDocument, createItemFromDouble, createItemFromFloat, createItemFromInt, createItemFromLong, createItemFromNode, createItemFromObject, createItemFromShort, createItemType, createItemType, createSequence, createSequence, createSequenceType, mapSaxonTypeToXQJ
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.saxon.javax.xml.xquery.XQDataFactory
createAtomicItemType, createItem, createItemFromAtomicValue, createItemFromBoolean, createItemFromByte, createItemFromDocument, createItemFromDouble, createItemFromFloat, createItemFromInt, createItemFromLong, createItemFromNode, createItemFromObject, createItemFromShort, createItemType, createItemType, createSequence, createSequence, createSequenceType
-
-
-
-
Constructor Detail
-
SaxonXQConnection
SaxonXQConnection(SaxonXQDataSource dataSource)
Create an SaxonXQConnection from a SaxonXQDataSource- Parameters:
dataSource
- the data source.
-
-
Method Detail
-
getConfiguration
public Configuration getConfiguration()
- Specified by:
getConfiguration
in classSaxonXQDataFactory
-
getCommonHandler
public XQCommonHandler getCommonHandler()
- Specified by:
getCommonHandler
in classSaxonXQDataFactory
-
clearWarnings
public void clearWarnings() throws XQException
- Specified by:
clearWarnings
in interfaceXQConnection
- Throws:
XQException
-
close
public void close()
- Specified by:
close
in interfaceXQConnection
-
commit
public void commit() throws XQException
- Specified by:
commit
in interfaceXQConnection
- Throws:
XQException
-
createExpression
public XQExpression createExpression() throws XQException
- Specified by:
createExpression
in interfaceXQConnection
- Throws:
XQException
-
getHoldability
public int getHoldability() throws XQException
- Specified by:
getHoldability
in interfaceXQConnection
- Throws:
XQException
-
getMetaData
public XQMetaData getMetaData() throws XQException
- Specified by:
getMetaData
in interfaceXQConnection
- Throws:
XQException
-
getMetaDataProperty
public java.lang.String getMetaDataProperty(java.lang.String key) throws XQException
- Specified by:
getMetaDataProperty
in interfaceXQConnection
- Throws:
XQException
-
getQueryLanguageTypeAndVersion
public int getQueryLanguageTypeAndVersion() throws XQException
- Specified by:
getQueryLanguageTypeAndVersion
in interfaceXQConnection
- Throws:
XQException
-
getScrollability
public int getScrollability() throws XQException
- Specified by:
getScrollability
in interfaceXQConnection
- Throws:
XQException
-
getSupportedMetaDataPropertyNames
public java.lang.String[] getSupportedMetaDataPropertyNames() throws XQException
- Specified by:
getSupportedMetaDataPropertyNames
in interfaceXQConnection
- Throws:
XQException
-
getUpdatability
public int getUpdatability() throws XQException
- Specified by:
getUpdatability
in interfaceXQConnection
- Throws:
XQException
-
getWarnings
public XQWarning getWarnings() throws XQException
- Specified by:
getWarnings
in interfaceXQConnection
- Throws:
XQException
-
isClosed
public boolean isClosed()
- Specified by:
isClosed
in interfaceXQConnection
-
prepareExpression
public XQPreparedExpression prepareExpression(java.io.InputStream xquery) throws XQException
- Specified by:
prepareExpression
in interfaceXQConnection
- Throws:
XQException
-
prepareExpression
public XQPreparedExpression prepareExpression(java.io.InputStream xquery, XQItemType contextItemType) throws XQException
- Specified by:
prepareExpression
in interfaceXQConnection
- Throws:
XQException
-
prepareExpression
public XQPreparedExpression prepareExpression(java.io.Reader xquery) throws XQException
- Specified by:
prepareExpression
in interfaceXQConnection
- Throws:
XQException
-
prepareExpression
public XQPreparedExpression prepareExpression(java.io.Reader xquery, XQItemType contextItemType) throws XQException
- Specified by:
prepareExpression
in interfaceXQConnection
- Throws:
XQException
-
prepareExpression
public XQPreparedExpression prepareExpression(java.lang.String xquery) throws XQException
- Specified by:
prepareExpression
in interfaceXQConnection
- Throws:
XQException
-
prepareExpression
public XQPreparedExpression prepareExpression(java.lang.String xquery, XQItemType contextItemType) throws XQException
- Specified by:
prepareExpression
in interfaceXQConnection
- Throws:
XQException
-
rollback
public void rollback() throws XQException
- Specified by:
rollback
in interfaceXQConnection
- Throws:
XQException
-
setCommonHandler
public void setCommonHandler(XQCommonHandler handler)
- Specified by:
setCommonHandler
in interfaceXQConnection
-
setHoldability
public void setHoldability(int holdability) throws XQException
- Specified by:
setHoldability
in interfaceXQConnection
- Throws:
XQException
-
setQueryLanguageTypeAndVersion
public void setQueryLanguageTypeAndVersion(int langtype) throws XQException
- Specified by:
setQueryLanguageTypeAndVersion
in interfaceXQConnection
- Throws:
XQException
-
setScrollability
public void setScrollability(int scrollability) throws XQException
- Specified by:
setScrollability
in interfaceXQConnection
- Throws:
XQException
-
setUpdatability
public void setUpdatability(int updatability) throws XQException
- Specified by:
setUpdatability
in interfaceXQConnection
- Throws:
XQException
-
getBaseURI
public java.lang.String getBaseURI() throws XQException
- Specified by:
getBaseURI
in interfaceXQStaticContext
- Throws:
XQException
-
getBoundarySpacePolicy
public int getBoundarySpacePolicy() throws XQException
- Specified by:
getBoundarySpacePolicy
in interfaceXQStaticContext
- Throws:
XQException
-
getConstructionMode
public int getConstructionMode() throws XQException
- Specified by:
getConstructionMode
in interfaceXQStaticContext
- Throws:
XQException
-
getCopyNamespacesModeInherit
public int getCopyNamespacesModeInherit() throws XQException
- Specified by:
getCopyNamespacesModeInherit
in interfaceXQStaticContext
- Throws:
XQException
-
getCopyNamespacesModePreserve
public int getCopyNamespacesModePreserve() throws XQException
- Specified by:
getCopyNamespacesModePreserve
in interfaceXQStaticContext
- Throws:
XQException
-
getDefaultCollation
public java.lang.String getDefaultCollation() throws XQException
- Specified by:
getDefaultCollation
in interfaceXQStaticContext
- Throws:
XQException
-
getDefaultElementTypeNamespace
public java.lang.String getDefaultElementTypeNamespace() throws XQException
- Specified by:
getDefaultElementTypeNamespace
in interfaceXQStaticContext
- Throws:
XQException
-
getDefaultFunctionNamespace
public java.lang.String getDefaultFunctionNamespace() throws XQException
- Specified by:
getDefaultFunctionNamespace
in interfaceXQStaticContext
- Throws:
XQException
-
getDefaultOrderForEmptySequences
public int getDefaultOrderForEmptySequences() throws XQException
- Specified by:
getDefaultOrderForEmptySequences
in interfaceXQStaticContext
- Throws:
XQException
-
getInScopeNamespacePrefixes
public java.lang.String[] getInScopeNamespacePrefixes() throws XQException
- Specified by:
getInScopeNamespacePrefixes
in interfaceXQStaticContext
- Throws:
XQException
-
getNamespaceURI
public java.lang.String getNamespaceURI(java.lang.String prefix) throws XQException
- Specified by:
getNamespaceURI
in interfaceXQStaticContext
- Throws:
XQException
-
getOrderingMode
public int getOrderingMode() throws XQException
- Specified by:
getOrderingMode
in interfaceXQStaticContext
- Throws:
XQException
-
getStaticInScopeVariableNames
public javax.xml.namespace.QName[] getStaticInScopeVariableNames() throws XQException
- Specified by:
getStaticInScopeVariableNames
in interfaceXQStaticContext
- Throws:
XQException
-
getStaticInScopeVariableType
public XQSequenceType getStaticInScopeVariableType(javax.xml.namespace.QName varname) throws XQException
- Specified by:
getStaticInScopeVariableType
in interfaceXQStaticContext
- Throws:
XQException
-
-