XQConnection Interface


This interface describes the connection used to execute XQuery expressions. This interface extends XQDataFactory.

Table G-1 describes how DataDirect XQuery supports the methods of the XQConnection interface.

Table G-1. XQConnection Method Summary 
Method
Support
void close( )
Supported.
void commit( )
XQExpression createExpression( )
Supported.
XQExpression createExpression(XQStaticContext staticContext)
Supported.
boolean getAutoCommit( )
Supported. See Understanding the Transactional Behavior of DataDirect XQuery Updates for information about auto-commit.
XQMetaData getMetaData( )
Supported.
XQStaticContext getStaticContext( )
Supported.
String[] getSupportedMetaDataPropertyNames()
Not supported.
XQWarning getWarnings()
Supported. Always returns null. DataDirect XQuery does not generate warnings.
boolean isClosed( )
Supported.
XQPreparedExpression prepareExpression(Inputstream xquery)
Supported. When the query is read from a java.io.InputStream, DataDirect XQuery assumes the encoding specified in the XQuery version declaration. Otherwise, DataDirect XQuery parses the byte stream using UTF-8.
XQPreparedExpression prepareExpression(Inputstream xquery, XQStaticContext staticContext)
Supported. When the query is read from a java.io.InputStream, DataDirect XQuery assumes the encoding specified in the XQuery version declaration. Otherwise, DataDirect XQuery parses the byte stream using UTF-8.
XQPreparedExpression prepareExpression(Reader xquery)
Supported.
XQPreparedExpression prepareExpression(Reader xquery, XQStaticContext staticContext)
Supported.
XQPreparedExpression prepareExpression(String xquery)
Supported.
XQPreparedExpression prepareExpression(String xquery, XQStaticContext staticContext)
Supported.
void rollback( )
void setAutoCommit(boolean autoCommit)
Supported. See Understanding the Transactional Behavior of DataDirect XQuery Updates for information about auto-commit.
void setStaticContext(XQStaticContext staticContext)
Supported.