net.sf.saxon.xqj

Class SaxonXQConnection

Implemented Interfaces:
XQConnection, XQDataFactory

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.

Method Summary

void
close()
void
commit()
XQExpression
createExpression()
XQExpression
createExpression(XQStaticContext properties)
boolean
getAutoCommit()
Configuration
getConfiguration()
XQMetaData
getMetaData()
XQStaticContext
getStaticContext()
boolean
isClosed()
XQPreparedExpression
prepareExpression(InputStream xquery)
XQPreparedExpression
prepareExpression(InputStream xquery, XQStaticContext properties)
XQPreparedExpression
prepareExpression(Reader xquery)
XQPreparedExpression
prepareExpression(Reader xquery, XQStaticContext properties)
XQPreparedExpression
prepareExpression(String xquery)
XQPreparedExpression
prepareExpression(String xquery, XQStaticContext properties)
void
rollback()
void
setAutoCommit(boolean autoCommit)
void
setStaticContext(XQStaticContext properties)

Methods inherited from class net.sf.saxon.xqj.SaxonXQDataFactory

createAtomicType, createAtomicType, createAttributeType, createAttributeType, createCommentType, createDocumentElementType, createDocumentSchemaElementType, createDocumentType, createElementType, createElementType, createItem, createItemFromAtomicValue, createItemFromBoolean, createItemFromByte, createItemFromDocument, createItemFromDocument, createItemFromDocument, createItemFromDocument, createItemFromDocument, createItemFromDocument, createItemFromDouble, createItemFromFloat, createItemFromInt, createItemFromLong, createItemFromNode, createItemFromObject, createItemFromShort, createItemFromString, createItemType, createNodeType, createProcessingInstructionType, createSchemaAttributeType, createSchemaElementType, createSequence, createSequence, createSequenceType, createTextType, getObjectConverter, init

Method Details

close

public void close()
Specified by:
close in interface XQConnection

commit

public void commit()
            throws XQException
Specified by:
commit in interface XQConnection

createExpression

public XQExpression createExpression()
            throws XQException
Specified by:
createExpression in interface XQConnection

createExpression

public XQExpression createExpression(XQStaticContext properties)
            throws XQException
Specified by:
createExpression in interface XQConnection

getAutoCommit

public boolean getAutoCommit()
            throws XQException
Specified by:
getAutoCommit in interface XQConnection

getConfiguration

public Configuration getConfiguration()

getMetaData

public XQMetaData getMetaData()
            throws XQException
Specified by:
getMetaData in interface XQConnection

getStaticContext

public XQStaticContext getStaticContext()
            throws XQException
Specified by:
getStaticContext in interface XQConnection

isClosed

public boolean isClosed()
Specified by:
isClosed in interface XQConnection

prepareExpression

public XQPreparedExpression prepareExpression(InputStream xquery)
            throws XQException
Specified by:
prepareExpression in interface XQConnection

prepareExpression

public XQPreparedExpression prepareExpression(InputStream xquery,
                                              XQStaticContext properties)
            throws XQException
Specified by:
prepareExpression in interface XQConnection

prepareExpression

public XQPreparedExpression prepareExpression(Reader xquery)
            throws XQException
Specified by:
prepareExpression in interface XQConnection

prepareExpression

public XQPreparedExpression prepareExpression(Reader xquery,
                                              XQStaticContext properties)
            throws XQException
Specified by:
prepareExpression in interface XQConnection

prepareExpression

public XQPreparedExpression prepareExpression(String xquery)
            throws XQException
Specified by:
prepareExpression in interface XQConnection

prepareExpression

public XQPreparedExpression prepareExpression(String xquery,
                                              XQStaticContext properties)
            throws XQException
Specified by:
prepareExpression in interface XQConnection

rollback

public void rollback()
            throws XQException
Specified by:
rollback in interface XQConnection

setAutoCommit

public void setAutoCommit(boolean autoCommit)
            throws XQException
Specified by:
setAutoCommit in interface XQConnection

setStaticContext

public void setStaticContext(XQStaticContext properties)
            throws XQException
Specified by:
setStaticContext in interface XQConnection