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:
getConfigurationin classSaxonXQDataFactory
-
getCommonHandler
public XQCommonHandler getCommonHandler()
- Specified by:
getCommonHandlerin classSaxonXQDataFactory
-
clearWarnings
public void clearWarnings() throws XQException- Specified by:
clearWarningsin interfaceXQConnection- Throws:
XQException
-
close
public void close()
- Specified by:
closein interfaceXQConnection
-
commit
public void commit() throws XQException- Specified by:
commitin interfaceXQConnection- Throws:
XQException
-
createExpression
public XQExpression createExpression() throws XQException
- Specified by:
createExpressionin interfaceXQConnection- Throws:
XQException
-
getHoldability
public int getHoldability() throws XQException- Specified by:
getHoldabilityin interfaceXQConnection- Throws:
XQException
-
getMetaData
public XQMetaData getMetaData() throws XQException
- Specified by:
getMetaDatain interfaceXQConnection- Throws:
XQException
-
getMetaDataProperty
public java.lang.String getMetaDataProperty(java.lang.String key) throws XQException- Specified by:
getMetaDataPropertyin interfaceXQConnection- Throws:
XQException
-
getQueryLanguageTypeAndVersion
public int getQueryLanguageTypeAndVersion() throws XQException- Specified by:
getQueryLanguageTypeAndVersionin interfaceXQConnection- Throws:
XQException
-
getScrollability
public int getScrollability() throws XQException- Specified by:
getScrollabilityin interfaceXQConnection- Throws:
XQException
-
getSupportedMetaDataPropertyNames
public java.lang.String[] getSupportedMetaDataPropertyNames() throws XQException- Specified by:
getSupportedMetaDataPropertyNamesin interfaceXQConnection- Throws:
XQException
-
getUpdatability
public int getUpdatability() throws XQException- Specified by:
getUpdatabilityin interfaceXQConnection- Throws:
XQException
-
getWarnings
public XQWarning getWarnings() throws XQException
- Specified by:
getWarningsin interfaceXQConnection- Throws:
XQException
-
isClosed
public boolean isClosed()
- Specified by:
isClosedin interfaceXQConnection
-
prepareExpression
public XQPreparedExpression prepareExpression(java.io.InputStream xquery) throws XQException
- Specified by:
prepareExpressionin interfaceXQConnection- Throws:
XQException
-
prepareExpression
public XQPreparedExpression prepareExpression(java.io.InputStream xquery, XQItemType contextItemType) throws XQException
- Specified by:
prepareExpressionin interfaceXQConnection- Throws:
XQException
-
prepareExpression
public XQPreparedExpression prepareExpression(java.io.Reader xquery) throws XQException
- Specified by:
prepareExpressionin interfaceXQConnection- Throws:
XQException
-
prepareExpression
public XQPreparedExpression prepareExpression(java.io.Reader xquery, XQItemType contextItemType) throws XQException
- Specified by:
prepareExpressionin interfaceXQConnection- Throws:
XQException
-
prepareExpression
public XQPreparedExpression prepareExpression(java.lang.String xquery) throws XQException
- Specified by:
prepareExpressionin interfaceXQConnection- Throws:
XQException
-
prepareExpression
public XQPreparedExpression prepareExpression(java.lang.String xquery, XQItemType contextItemType) throws XQException
- Specified by:
prepareExpressionin interfaceXQConnection- Throws:
XQException
-
rollback
public void rollback() throws XQException- Specified by:
rollbackin interfaceXQConnection- Throws:
XQException
-
setCommonHandler
public void setCommonHandler(XQCommonHandler handler)
- Specified by:
setCommonHandlerin interfaceXQConnection
-
setHoldability
public void setHoldability(int holdability) throws XQException- Specified by:
setHoldabilityin interfaceXQConnection- Throws:
XQException
-
setQueryLanguageTypeAndVersion
public void setQueryLanguageTypeAndVersion(int langtype) throws XQException- Specified by:
setQueryLanguageTypeAndVersionin interfaceXQConnection- Throws:
XQException
-
setScrollability
public void setScrollability(int scrollability) throws XQException- Specified by:
setScrollabilityin interfaceXQConnection- Throws:
XQException
-
setUpdatability
public void setUpdatability(int updatability) throws XQException- Specified by:
setUpdatabilityin interfaceXQConnection- Throws:
XQException
-
getBaseURI
public java.lang.String getBaseURI() throws XQException- Specified by:
getBaseURIin interfaceXQStaticContext- Throws:
XQException
-
getBoundarySpacePolicy
public int getBoundarySpacePolicy() throws XQException- Specified by:
getBoundarySpacePolicyin interfaceXQStaticContext- Throws:
XQException
-
getConstructionMode
public int getConstructionMode() throws XQException- Specified by:
getConstructionModein interfaceXQStaticContext- Throws:
XQException
-
getCopyNamespacesModeInherit
public int getCopyNamespacesModeInherit() throws XQException- Specified by:
getCopyNamespacesModeInheritin interfaceXQStaticContext- Throws:
XQException
-
getCopyNamespacesModePreserve
public int getCopyNamespacesModePreserve() throws XQException- Specified by:
getCopyNamespacesModePreservein interfaceXQStaticContext- Throws:
XQException
-
getDefaultCollation
public java.lang.String getDefaultCollation() throws XQException- Specified by:
getDefaultCollationin interfaceXQStaticContext- Throws:
XQException
-
getDefaultElementTypeNamespace
public java.lang.String getDefaultElementTypeNamespace() throws XQException- Specified by:
getDefaultElementTypeNamespacein interfaceXQStaticContext- Throws:
XQException
-
getDefaultFunctionNamespace
public java.lang.String getDefaultFunctionNamespace() throws XQException- Specified by:
getDefaultFunctionNamespacein interfaceXQStaticContext- Throws:
XQException
-
getDefaultOrderForEmptySequences
public int getDefaultOrderForEmptySequences() throws XQException- Specified by:
getDefaultOrderForEmptySequencesin interfaceXQStaticContext- Throws:
XQException
-
getInScopeNamespacePrefixes
public java.lang.String[] getInScopeNamespacePrefixes() throws XQException- Specified by:
getInScopeNamespacePrefixesin interfaceXQStaticContext- Throws:
XQException
-
getNamespaceURI
public java.lang.String getNamespaceURI(java.lang.String prefix) throws XQException- Specified by:
getNamespaceURIin interfaceXQStaticContext- Throws:
XQException
-
getOrderingMode
public int getOrderingMode() throws XQException- Specified by:
getOrderingModein interfaceXQStaticContext- Throws:
XQException
-
getStaticInScopeVariableNames
public javax.xml.namespace.QName[] getStaticInScopeVariableNames() throws XQException- Specified by:
getStaticInScopeVariableNamesin interfaceXQStaticContext- Throws:
XQException
-
getStaticInScopeVariableType
public XQSequenceType getStaticInScopeVariableType(javax.xml.namespace.QName varname) throws XQException
- Specified by:
getStaticInScopeVariableTypein interfaceXQStaticContext- Throws:
XQException
-
-