Package net.sf.saxon.xqj
Class SaxonXQExpression
- java.lang.Object
-
- net.sf.saxon.xqj.SaxonXQDynamicContext
-
- net.sf.saxon.xqj.SaxonXQExpression
-
- All Implemented Interfaces:
XQDynamicContext
,XQExpression
public class SaxonXQExpression extends SaxonXQDynamicContext implements XQExpression
-
-
Field Summary
Fields Modifier and Type Field Description (package private) boolean
closed
(package private) Configuration
config
(package private) SaxonXQConnection
connection
(package private) DynamicQueryContext
context
-
Constructor Summary
Constructors Constructor Description SaxonXQExpression(SaxonXQConnection connection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancel()
protected void
checkNotClosed()
void
clearWarnings()
void
close()
void
executeCommand(java.io.Reader command)
void
executeCommand(java.lang.String command)
XQResultSequence
executeQuery(java.io.InputStream query)
XQResultSequence
executeQuery(java.io.Reader query)
XQResultSequence
executeQuery(java.lang.String query)
protected SaxonXQDataFactory
getDataFactory()
protected DynamicQueryContext
getDynamicContext()
int
getQueryLanguageTypeAndVersion()
int
getQueryTimeout()
XQWarning
getWarnings()
boolean
isClosed()
void
setQueryTimeout(int seconds)
-
Methods inherited from class net.sf.saxon.xqj.SaxonXQDynamicContext
bindAtomicValue, bindBoolean, bindByte, bindContextItem, bindDocument, bindDouble, bindFloat, bindInt, bindItem, bindLong, bindNode, bindObject, bindSequence, bindShort, getImplicitTimeZone, setImplicitTimeZone
-
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.XQDynamicContext
bindAtomicValue, bindBoolean, bindByte, bindContextItem, bindDocument, bindDouble, bindFloat, bindInt, bindItem, bindLong, bindNode, bindObject, bindSequence, bindShort, getImplicitTimeZone, setImplicitTimeZone
-
-
-
-
Field Detail
-
connection
SaxonXQConnection connection
-
context
DynamicQueryContext context
-
config
Configuration config
-
closed
boolean closed
-
-
Constructor Detail
-
SaxonXQExpression
SaxonXQExpression(SaxonXQConnection connection)
-
-
Method Detail
-
getDynamicContext
protected DynamicQueryContext getDynamicContext()
- Specified by:
getDynamicContext
in classSaxonXQDynamicContext
-
getDataFactory
protected SaxonXQDataFactory getDataFactory() throws XQException
- Specified by:
getDataFactory
in classSaxonXQDynamicContext
- Throws:
XQException
-
checkNotClosed
protected void checkNotClosed() throws XQException
- Specified by:
checkNotClosed
in classSaxonXQDynamicContext
- Throws:
XQException
-
cancel
public void cancel() throws XQException
- Specified by:
cancel
in interfaceXQExpression
- Throws:
XQException
-
clearWarnings
public void clearWarnings() throws XQException
- Specified by:
clearWarnings
in interfaceXQExpression
- Throws:
XQException
-
close
public void close()
- Specified by:
close
in interfaceXQExpression
-
executeCommand
public void executeCommand(java.io.Reader command) throws XQException
- Specified by:
executeCommand
in interfaceXQExpression
- Throws:
XQException
-
executeCommand
public void executeCommand(java.lang.String command) throws XQException
- Specified by:
executeCommand
in interfaceXQExpression
- Throws:
XQException
-
executeQuery
public XQResultSequence executeQuery(java.io.InputStream query) throws XQException
- Specified by:
executeQuery
in interfaceXQExpression
- Throws:
XQException
-
executeQuery
public XQResultSequence executeQuery(java.io.Reader query) throws XQException
- Specified by:
executeQuery
in interfaceXQExpression
- Throws:
XQException
-
executeQuery
public XQResultSequence executeQuery(java.lang.String query) throws XQException
- Specified by:
executeQuery
in interfaceXQExpression
- Throws:
XQException
-
getQueryLanguageTypeAndVersion
public int getQueryLanguageTypeAndVersion() throws XQException
- Specified by:
getQueryLanguageTypeAndVersion
in interfaceXQExpression
- Throws:
XQException
-
getQueryTimeout
public int getQueryTimeout() throws XQException
- Specified by:
getQueryTimeout
in interfaceXQExpression
- Throws:
XQException
-
getWarnings
public XQWarning getWarnings() throws XQException
- Specified by:
getWarnings
in interfaceXQExpression
- Throws:
XQException
-
isClosed
public boolean isClosed()
- Specified by:
isClosed
in interfaceXQExpression
-
setQueryTimeout
public void setQueryTimeout(int seconds) throws XQException
- Specified by:
setQueryTimeout
in interfaceXQExpression
- Throws:
XQException
-
-