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
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 TypeMethodDescriptionvoid
void
close()
void
commit()
int
int
int
int
int
int
String[]
getNamespaceURI
(String prefix) int
int
int
QName[]
getStaticInScopeVariableType
(QName varname) String[]
int
boolean
isClosed()
prepareExpression
(InputStream xquery) prepareExpression
(InputStream xquery, XQItemType contextItemType) prepareExpression
(Reader xquery) prepareExpression
(Reader xquery, XQItemType contextItemType) prepareExpression
(String xquery) prepareExpression
(String xquery, XQItemType contextItemType) void
rollback()
void
setCommonHandler
(XQCommonHandler handler) void
setHoldability
(int holdability) void
setQueryLanguageTypeAndVersion
(int langtype) void
setScrollability
(int scrollability) void
setUpdatability
(int updatability) 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 Details
-
SaxonXQConnection
SaxonXQConnection(SaxonXQDataSource dataSource) Create an SaxonXQConnection from a SaxonXQDataSource- Parameters:
dataSource
- the data source.
-
-
Method Details
-
getConfiguration
- Specified by:
getConfiguration
in classSaxonXQDataFactory
-
getCommonHandler
- Specified by:
getCommonHandler
in classSaxonXQDataFactory
-
clearWarnings
- Specified by:
clearWarnings
in interfaceXQConnection
- Throws:
XQException
-
close
public void close()- Specified by:
close
in interfaceXQConnection
-
commit
- Specified by:
commit
in interfaceXQConnection
- Throws:
XQException
-
createExpression
- Specified by:
createExpression
in interfaceXQConnection
- Throws:
XQException
-
getHoldability
- Specified by:
getHoldability
in interfaceXQConnection
- Throws:
XQException
-
getMetaData
- Specified by:
getMetaData
in interfaceXQConnection
- Throws:
XQException
-
getMetaDataProperty
- Specified by:
getMetaDataProperty
in interfaceXQConnection
- Throws:
XQException
-
getQueryLanguageTypeAndVersion
- Specified by:
getQueryLanguageTypeAndVersion
in interfaceXQConnection
- Throws:
XQException
-
getScrollability
- Specified by:
getScrollability
in interfaceXQConnection
- Throws:
XQException
-
getSupportedMetaDataPropertyNames
- Specified by:
getSupportedMetaDataPropertyNames
in interfaceXQConnection
- Throws:
XQException
-
getUpdatability
- Specified by:
getUpdatability
in interfaceXQConnection
- Throws:
XQException
-
getWarnings
- Specified by:
getWarnings
in interfaceXQConnection
- Throws:
XQException
-
isClosed
public boolean isClosed()- Specified by:
isClosed
in interfaceXQConnection
-
prepareExpression
- Specified by:
prepareExpression
in interfaceXQConnection
- Throws:
XQException
-
prepareExpression
public XQPreparedExpression prepareExpression(InputStream xquery, XQItemType contextItemType) throws XQException - Specified by:
prepareExpression
in interfaceXQConnection
- Throws:
XQException
-
prepareExpression
- Specified by:
prepareExpression
in interfaceXQConnection
- Throws:
XQException
-
prepareExpression
public XQPreparedExpression prepareExpression(Reader xquery, XQItemType contextItemType) throws XQException - Specified by:
prepareExpression
in interfaceXQConnection
- Throws:
XQException
-
prepareExpression
- Specified by:
prepareExpression
in interfaceXQConnection
- Throws:
XQException
-
prepareExpression
public XQPreparedExpression prepareExpression(String xquery, XQItemType contextItemType) throws XQException - Specified by:
prepareExpression
in interfaceXQConnection
- Throws:
XQException
-
rollback
- Specified by:
rollback
in interfaceXQConnection
- Throws:
XQException
-
setCommonHandler
- Specified by:
setCommonHandler
in interfaceXQConnection
-
setHoldability
- Specified by:
setHoldability
in interfaceXQConnection
- Throws:
XQException
-
setQueryLanguageTypeAndVersion
- Specified by:
setQueryLanguageTypeAndVersion
in interfaceXQConnection
- Throws:
XQException
-
setScrollability
- Specified by:
setScrollability
in interfaceXQConnection
- Throws:
XQException
-
setUpdatability
- Specified by:
setUpdatability
in interfaceXQConnection
- Throws:
XQException
-
getBaseURI
- Specified by:
getBaseURI
in interfaceXQStaticContext
- Throws:
XQException
-
getBoundarySpacePolicy
- Specified by:
getBoundarySpacePolicy
in interfaceXQStaticContext
- Throws:
XQException
-
getConstructionMode
- Specified by:
getConstructionMode
in interfaceXQStaticContext
- Throws:
XQException
-
getCopyNamespacesModeInherit
- Specified by:
getCopyNamespacesModeInherit
in interfaceXQStaticContext
- Throws:
XQException
-
getCopyNamespacesModePreserve
- Specified by:
getCopyNamespacesModePreserve
in interfaceXQStaticContext
- Throws:
XQException
-
getDefaultCollation
- Specified by:
getDefaultCollation
in interfaceXQStaticContext
- Throws:
XQException
-
getDefaultElementTypeNamespace
- Specified by:
getDefaultElementTypeNamespace
in interfaceXQStaticContext
- Throws:
XQException
-
getDefaultFunctionNamespace
- Specified by:
getDefaultFunctionNamespace
in interfaceXQStaticContext
- Throws:
XQException
-
getDefaultOrderForEmptySequences
- Specified by:
getDefaultOrderForEmptySequences
in interfaceXQStaticContext
- Throws:
XQException
-
getInScopeNamespacePrefixes
- Specified by:
getInScopeNamespacePrefixes
in interfaceXQStaticContext
- Throws:
XQException
-
getNamespaceURI
- Specified by:
getNamespaceURI
in interfaceXQStaticContext
- Throws:
XQException
-
getOrderingMode
- Specified by:
getOrderingMode
in interfaceXQStaticContext
- Throws:
XQException
-
getStaticInScopeVariableNames
- Specified by:
getStaticInScopeVariableNames
in interfaceXQStaticContext
- Throws:
XQException
-
getStaticInScopeVariableType
- Specified by:
getStaticInScopeVariableType
in interfaceXQStaticContext
- Throws:
XQException
-