com.softwareag.xqj.extension
Interface TXQExpression

All Superinterfaces:
javax.xml.xquery.XQDynamicContext, javax.xml.xquery.XQExpression

public interface TXQExpression
extends javax.xml.xquery.XQExpression

Tamino specific extensions for expressions.


Method Summary
 void bindString(javax.xml.namespace.QName qname, java.lang.String s, javax.xml.xquery.XQItemType xqitemtype)
          Binds the input string of specific ItemType to the query
 javax.xml.xquery.XQResultSequence executeInsert(java.io.Reader content)
          Inserts the given reader into the database.
 javax.xml.xquery.XQResultSequence executeInsert(java.lang.String content)
          Inserts the given string content into the database.
 javax.xml.xquery.XQResultSequence executeInsertNonXML(java.io.InputStream content, java.lang.String doctype, java.lang.String docname, java.lang.String contentType)
          Inserts the given non-XML content into the database.
 javax.xml.xquery.XQResultSequence executeUpdate(java.io.Reader updateExpression)
          Executes an update query expression given in the form of a reader.
 javax.xml.xquery.XQResultSequence executeUpdate(java.lang.String updateExpression)
          Executes an update query expression given in the form of a string.
 
Methods inherited from interface javax.xml.xquery.XQExpression
cancel, close, executeCommand, executeCommand, executeQuery, executeQuery, executeQuery, getStaticContext, isClosed
 
Methods inherited from interface javax.xml.xquery.XQDynamicContext
bindAtomicValue, bindBoolean, bindByte, bindDocument, bindDocument, bindDocument, bindDocument, bindDocument, bindDouble, bindFloat, bindInt, bindItem, bindLong, bindNode, bindObject, bindSequence, bindShort, getImplicitTimeZone, setImplicitTimeZone
 

Method Detail

executeInsert

javax.xml.xquery.XQResultSequence executeInsert(java.lang.String content)
                                                throws javax.xml.xquery.XQException
Inserts the given string content into the database.

Parameters:
content - - The XML content to be inserted.
Throws:
javax.xml.xquery.XQException - - if a problem occurred.

executeInsert

javax.xml.xquery.XQResultSequence executeInsert(java.io.Reader content)
                                                throws javax.xml.xquery.XQException
Inserts the given reader into the database.

Parameters:
content - - The XML content to be inserted (a Reader object).
Throws:
javax.xml.xquery.XQException - - if a problem occurred.

executeInsertNonXML

javax.xml.xquery.XQResultSequence executeInsertNonXML(java.io.InputStream content,
                                                      java.lang.String doctype,
                                                      java.lang.String docname,
                                                      java.lang.String contentType)
                                                      throws javax.xml.xquery.XQException
Inserts the given non-XML content into the database.

Parameters:
content - - The non-XML content to be inserted (a Reader object).
doctype - document type
docname - document name
contentType - content type of non-XML
Throws:
javax.xml.xquery.XQException - if there is problem inserting the content.

executeUpdate

javax.xml.xquery.XQResultSequence executeUpdate(java.lang.String updateExpression)
                                                throws javax.xml.xquery.XQException
Executes an update query expression given in the form of a string. This implicitly closes any previous result sequences obtained from this expression.

Parameters:
updateExpression - update query expression string.
Returns:
an XQResultSequence object containing the result of the query execution.
Throws:
javax.xml.xquery.XQException - if there are errors when executing the query or if the expression is in a closed state or if the execution is cancelled.

executeUpdate

javax.xml.xquery.XQResultSequence executeUpdate(java.io.Reader updateExpression)
                                                throws javax.xml.xquery.XQException
Executes an update query expression given in the form of a reader. This implicitly closes any previous result sequences obtained from this expression.

Parameters:
updateExpression - update query expression as a reader object.
Returns:
an XQResultSequence containing the result of the query execution
Throws:
javax.xml.xquery.XQException - if there are errors when executing the query or if the expression when executing the query or if the expression is in a closed state or if the execution is cancelled.

bindString

void bindString(javax.xml.namespace.QName qname,
                java.lang.String s,
                javax.xml.xquery.XQItemType xqitemtype)
                throws javax.xml.xquery.XQException
Binds the input string of specific ItemType to the query

Specified by:
bindString in interface javax.xml.xquery.XQDynamicContext
Parameters:
qname - - QName
s - - String to be bound
xqitemtype - - Item Type
Throws:
javax.xml.xquery.XQException