net.sf.saxon.xqj
Class SaxonXQConnection

java.lang.Object
  extended by net.sf.saxon.xqj.SaxonXQDataFactory
      extended by net.sf.saxon.xqj.SaxonXQConnection
All 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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.saxon.javax.xml.xquery.XQDataFactory
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
 

Method Detail

getConfiguration

public Configuration getConfiguration()

close

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

commit

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

createExpression

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

createExpression

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

getAutoCommit

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

getMetaData

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

getStaticContext

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

isClosed

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

prepareExpression

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

prepareExpression

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

prepareExpression

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

prepareExpression

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

prepareExpression

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

prepareExpression

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

rollback

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

setAutoCommit

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

setStaticContext

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


Copyright (C) Michael H. Kay. All rights reserved.