Class SaxonXQConnection
java.lang.Object
net.sf.saxon.xqj.SaxonXQDataFactory
net.sf.saxon.xqj.SaxonXQConnection
- All Implemented Interfaces:
XQConnection, XQDataFactory, XQStaticContext
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
ConstructorsConstructorDescriptionSaxonXQConnection(SaxonXQDataSource dataSource) Create an SaxonXQConnection from a SaxonXQDataSource -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclose()voidcommit()intintintintintintString[]getNamespaceURI(String prefix) intintintQName[]getStaticInScopeVariableType(QName varname) String[]intbooleanisClosed()prepareExpression(InputStream xquery) prepareExpression(InputStream xquery, XQItemType contextItemType) prepareExpression(Reader xquery) prepareExpression(Reader xquery, XQItemType contextItemType) prepareExpression(String xquery) prepareExpression(String xquery, XQItemType contextItemType) voidrollback()voidsetCommonHandler(XQCommonHandler handler) voidsetHoldability(int holdability) voidsetQueryLanguageTypeAndVersion(int langtype) voidsetScrollability(int scrollability) voidsetUpdatability(int updatability) Methods inherited from class SaxonXQDataFactory
createAtomicItemType, createItem, createItemFromAtomicValue, createItemFromBoolean, createItemFromByte, createItemFromDocument, createItemFromDouble, createItemFromFloat, createItemFromInt, createItemFromLong, createItemFromNode, createItemFromObject, createItemFromShort, createItemType, createItemType, createSequence, createSequence, createSequenceType, mapSaxonTypeToXQJMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface XQDataFactory
createAtomicItemType, createItem, createItemFromAtomicValue, createItemFromBoolean, createItemFromByte, createItemFromDocument, createItemFromDouble, createItemFromFloat, createItemFromInt, createItemFromLong, createItemFromNode, createItemFromObject, createItemFromShort, createItemType, createItemType, createSequence, createSequence, createSequenceType
-
Constructor Details
-
SaxonXQConnection
SaxonXQConnection(SaxonXQDataSource dataSource) Create an SaxonXQConnection from a SaxonXQDataSource- Parameters:
dataSource- the data source.
-
-
Method Details
-
getConfiguration
- Specified by:
getConfigurationin classSaxonXQDataFactory
-
getCommonHandler
- Specified by:
getCommonHandlerin classSaxonXQDataFactory
-
clearWarnings
- Specified by:
clearWarningsin interfaceXQConnection- Throws:
XQException
-
close
public void close()- Specified by:
closein interfaceXQConnection
-
commit
- Specified by:
commitin interfaceXQConnection- Throws:
XQException
-
createExpression
- Specified by:
createExpressionin interfaceXQConnection- Throws:
XQException
-
getHoldability
- Specified by:
getHoldabilityin interfaceXQConnection- Throws:
XQException
-
getMetaData
- Specified by:
getMetaDatain interfaceXQConnection- Throws:
XQException
-
getMetaDataProperty
- Specified by:
getMetaDataPropertyin interfaceXQConnection- Throws:
XQException
-
getQueryLanguageTypeAndVersion
- Specified by:
getQueryLanguageTypeAndVersionin interfaceXQConnection- Throws:
XQException
-
getScrollability
- Specified by:
getScrollabilityin interfaceXQConnection- Throws:
XQException
-
getSupportedMetaDataPropertyNames
- Specified by:
getSupportedMetaDataPropertyNamesin interfaceXQConnection- Throws:
XQException
-
getUpdatability
- Specified by:
getUpdatabilityin interfaceXQConnection- Throws:
XQException
-
getWarnings
- Specified by:
getWarningsin interfaceXQConnection- Throws:
XQException
-
isClosed
public boolean isClosed()- Specified by:
isClosedin interfaceXQConnection
-
prepareExpression
- Specified by:
prepareExpressionin interfaceXQConnection- Throws:
XQException
-
prepareExpression
public XQPreparedExpression prepareExpression(InputStream xquery, XQItemType contextItemType) throws XQException - Specified by:
prepareExpressionin interfaceXQConnection- Throws:
XQException
-
prepareExpression
- Specified by:
prepareExpressionin interfaceXQConnection- Throws:
XQException
-
prepareExpression
public XQPreparedExpression prepareExpression(Reader xquery, XQItemType contextItemType) throws XQException - Specified by:
prepareExpressionin interfaceXQConnection- Throws:
XQException
-
prepareExpression
- Specified by:
prepareExpressionin interfaceXQConnection- Throws:
XQException
-
prepareExpression
public XQPreparedExpression prepareExpression(String xquery, XQItemType contextItemType) throws XQException - Specified by:
prepareExpressionin interfaceXQConnection- Throws:
XQException
-
rollback
- Specified by:
rollbackin interfaceXQConnection- Throws:
XQException
-
setCommonHandler
- Specified by:
setCommonHandlerin interfaceXQConnection
-
setHoldability
- Specified by:
setHoldabilityin interfaceXQConnection- Throws:
XQException
-
setQueryLanguageTypeAndVersion
- Specified by:
setQueryLanguageTypeAndVersionin interfaceXQConnection- Throws:
XQException
-
setScrollability
- Specified by:
setScrollabilityin interfaceXQConnection- Throws:
XQException
-
setUpdatability
- Specified by:
setUpdatabilityin interfaceXQConnection- Throws:
XQException
-
getBaseURI
- Specified by:
getBaseURIin interfaceXQStaticContext- Throws:
XQException
-
getBoundarySpacePolicy
- Specified by:
getBoundarySpacePolicyin interfaceXQStaticContext- Throws:
XQException
-
getConstructionMode
- Specified by:
getConstructionModein interfaceXQStaticContext- Throws:
XQException
-
getCopyNamespacesModeInherit
- Specified by:
getCopyNamespacesModeInheritin interfaceXQStaticContext- Throws:
XQException
-
getCopyNamespacesModePreserve
- Specified by:
getCopyNamespacesModePreservein interfaceXQStaticContext- Throws:
XQException
-
getDefaultCollation
- Specified by:
getDefaultCollationin interfaceXQStaticContext- Throws:
XQException
-
getDefaultElementTypeNamespace
- Specified by:
getDefaultElementTypeNamespacein interfaceXQStaticContext- Throws:
XQException
-
getDefaultFunctionNamespace
- Specified by:
getDefaultFunctionNamespacein interfaceXQStaticContext- Throws:
XQException
-
getDefaultOrderForEmptySequences
- Specified by:
getDefaultOrderForEmptySequencesin interfaceXQStaticContext- Throws:
XQException
-
getInScopeNamespacePrefixes
- Specified by:
getInScopeNamespacePrefixesin interfaceXQStaticContext- Throws:
XQException
-
getNamespaceURI
- Specified by:
getNamespaceURIin interfaceXQStaticContext- Throws:
XQException
-
getOrderingMode
- Specified by:
getOrderingModein interfaceXQStaticContext- Throws:
XQException
-
getStaticInScopeVariableNames
- Specified by:
getStaticInScopeVariableNamesin interfaceXQStaticContext- Throws:
XQException
-
getStaticInScopeVariableType
- Specified by:
getStaticInScopeVariableTypein interfaceXQStaticContext- Throws:
XQException
-