|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TResponse
Defines operations for accessing the information provided by Tamino in response
to a database request (e.g. query, insert operations).
This includes the return value and the result of the current operation. If database
objects are returned, you can access them either by using getXMLObjectIterator and
getNonXMLObjectIterator, or by using getFirstXMLObject and getFirstNonXMLObject.
You can access the result string by using getQueryContentAsString.
When an XQuery has been executed and response wrapping has been switched off, than
if the content type of the pure unwrapped response is xml content, the content
may be accessed via getFirstXMLObject(), otherwise if it is a non xml content, it may
be accessed via getQueryContentAsString().
Method Summary | |
---|---|
TNonXMLObject |
getFirstNonXMLObject()
Gets the first non-XML object returned. |
TXMLObject |
getFirstXMLObject()
Gets the first XML object returned. |
TNonXMLObjectIterator |
getNonXMLObjectIterator()
Gets the non-XML object iterator. |
TInputStream |
getQueryContentAsStream()
Gets the result of a query as a InputStream. |
java.lang.String |
getQueryContentAsString()
Gets the result of a query as a string. |
java.lang.String |
getReturnValue()
Gets the Tamino return code. |
java.util.Iterator |
getWarnings()
Gets an iterator for the list of TWarning instances containing the Tamino warnings. |
TXMLObjectIterator |
getXMLObjectIterator()
Gets the XML object iterator. |
boolean |
hasFirstNonXMLObject()
Indicates if the response provides a first TNonXMLObject instance. |
boolean |
hasFirstXMLObject()
Indicates if the response provides a first TXMLObject instance. |
boolean |
hasQueryContent()
Indicates if the response of Tamino contained any result information. |
boolean |
hasWarnings()
Indicates if the response of Tamino contained any warning information. |
Method Detail |
---|
java.lang.String getReturnValue()
TXMLObjectIterator getXMLObjectIterator()
TXMLObject getFirstXMLObject()
boolean hasFirstXMLObject()
TNonXMLObjectIterator getNonXMLObjectIterator()
TNonXMLObject getFirstNonXMLObject()
boolean hasFirstNonXMLObject()
boolean hasQueryContent()
java.lang.String getQueryContentAsString()
TInputStream getQueryContentAsStream()
boolean hasWarnings()
java.util.Iterator getWarnings()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |