javax.xml.xquery
Interface XQConnection

All Superinterfaces:
XQDataFactory, XQDynamicContext, XQStaticContext
All Known Implementing Classes:
XQAbstractConnection, XQConnectionImpl

public interface XQConnection
extends XQDataFactory, XQDynamicContext, XQStaticContext

Author:
Michael Stark

Method Summary
 void clearWarnings()
          Clears the list of warnings associated with this connection.
 void close()
          Closes the connection.
 void commit()
          Commits the current transaction.
 XQExpression createExpression()
          Creates a new Xquery expression object that can be used to perform execute immediate operations with XQuery expressions.
 int getHoldability()
          Gets the value of the holdability property of this connection.
 XQMetaData getMetaData()
          Gets the Metadata for this connection.
 java.lang.String getMetaDataProperty(java.lang.String key)
          Gets the Value of the connection property indicated by the specified key.
 int getQueryLanguageTypeAndVersion()
          Gets the query language type and version.
 int getScrollability()
          Gets the value of the scrollability property of this connection.
 java.lang.String[] getSupportedMetaDataPropertyNames()
          Determines the property names supported by this connection.
 int getUpdatability()
          Gets the value of the updatability property of this connection.
 XQWarning getWarnings()
          Gets the first warning in a chained list of warnings associated with this connection.
 boolean isClosed()
          Checks if the connection is closed.
 XQPreparedExpression prepareExpression(java.io.Reader xquery)
          Prepares an expression for execution (input xquery reader).
 XQPreparedExpression prepareExpression(java.lang.String xquery)
          Prepares an expression for execution.
 void rollback()
          Rollsback the current transaction.
 void setCommonHandler(XQCommonHandler hdlr)
          Sets the default common handler to be used for converting items to and from Java objects in the setObject and getObject methods on an item.
 void setHoldability(int holdability)
          Sets the holdability of the result sequence.
 void setQueryLanguageAndVersion(int langType)
          Sets the input query language type and version.
 void setScrollability(int scrollability)
          Sets the scrollability of the result sequence.
 void setUpdatability(int updatability)
          Sets the updatability of the result sequence.
 
Methods inherited from interface javax.xml.xquery.XQDataFactory
createCachedSequence, createCachedSequence, createItem, createItemFromByte, createItemFromDate, createItemFromInt, createItemFromLong, createItemFromString, createItemType, createItemType, createSequenceType, createSequenceType
 
Methods inherited from interface javax.xml.xquery.XQDynamicContext
bindBase64Binary, bindBoolean, bindByte, bindContextItem, bindDecimal, bindDouble, bindFloat, bindHexBinary, bindInt, bindItem, bindLexicalValue, bindLong, bindNode, bindNotation, bindSequence, bindString, bindTime, bindTimestamp, bindURI, getImplicitTimeZone, setImplicitTimeZone
 
Methods inherited from interface javax.xml.xquery.XQStaticContext
getBaseURI, getDefaultCollation, getDefaultElementTypeNamespace, getDefaultFunctionNamespace, getDefaultValidationMode, getDefaultXMLSpacePolicy, getInScopeNamespacePrefixes, getNamespaceURI, getStaticInScopeVariableNames, getStaticInScopeVariableType
 

Method Detail

clearWarnings

void clearWarnings()
                   throws XQException
Clears the list of warnings associated with this connection.

Throws:
XQException

close

void close()
           throws XQException
Closes the connection.

Throws:
XQException

commit

void commit()
            throws XQException
Commits the current transaction.

Throws:
XQException

createExpression

XQExpression createExpression()
                              throws XQException
Creates a new Xquery expression object that can be used to perform execute immediate operations with XQuery expressions.

Throws:
XQException

getHoldability

int getHoldability()
                   throws XQException
Gets the value of the holdability property of this connection.

Throws:
XQException

getMetaData

XQMetaData getMetaData()
                       throws XQException
Gets the Metadata for this connection.

Throws:
XQException

getMetaDataProperty

java.lang.String getMetaDataProperty(java.lang.String key)
                                     throws XQException
Gets the Value of the connection property indicated by the specified key.

Throws:
XQException

getQueryLanguageTypeAndVersion

int getQueryLanguageTypeAndVersion()
                                   throws XQException
Gets the query language type and version.

Throws:
XQException

getScrollability

int getScrollability()
                     throws XQException
Gets the value of the scrollability property of this connection.

Throws:
XQException

getSupportedMetaDataPropertyNames

java.lang.String[] getSupportedMetaDataPropertyNames()
                                                     throws XQException
Determines the property names supported by this connection.

Throws:
XQException

getUpdatability

int getUpdatability()
                    throws XQException
Gets the value of the updatability property of this connection.

Throws:
XQException

getWarnings

XQWarning getWarnings()
                      throws XQException
Gets the first warning in a chained list of warnings associated with this connection.

Throws:
XQException

isClosed

boolean isClosed()
                 throws XQException
Checks if the connection is closed.

Throws:
XQException

prepareExpression

XQPreparedExpression prepareExpression(java.io.Reader xquery)
                                       throws XQException
Prepares an expression for execution (input xquery reader).

Throws:
XQException

prepareExpression

XQPreparedExpression prepareExpression(java.lang.String xquery)
                                       throws XQException
Prepares an expression for execution.

Throws:
XQException

rollback

void rollback()
              throws XQException
Rollsback the current transaction.

Throws:
XQException

setCommonHandler

void setCommonHandler(XQCommonHandler hdlr)
                      throws XQException
Sets the default common handler to be used for converting items to and from Java objects in the setObject and getObject methods on an item.

Throws:
XQException

setHoldability

void setHoldability(int holdability)
                    throws XQException
Sets the holdability of the result sequence.

Throws:
XQException

setQueryLanguageAndVersion

void setQueryLanguageAndVersion(int langType)
                                throws XQException
Sets the input query language type and version.

Throws:
XQException

setScrollability

void setScrollability(int scrollability)
                      throws XQException
Sets the scrollability of the result sequence.

Throws:
XQException

setUpdatability

void setUpdatability(int updatability)
                     throws XQException
Sets the updatability of the result sequence.

Throws:
XQException