Package com.softwareag.tamino.db.api.response

Provides the classes and interfaces to access result information returned by Tamino.

See:
          Description

Interface Summary
TResponse Defines operations for accessing the information provided by Tamino in response to a database request (e.g.
TResponseBuilder TResponseBuilder is the interface that defines all operations needed to build high level TResponse objects upon low level TInputStream objects.
TResponseContent  
TResponseContentItem  
TResponseHandle TResponseHandle is the �protected� interface for the internal (non public) access to the Tamino response object.
TResponseInfoContent TResponseInfoContent represents the interface for Tamino XML document response informations.
TResponseQueryContent TResponseQueryContent is the interface that defines all operations needed to access the actual content of a response for a previous query operation.
TServerEcho TServerEcho provides access to information retrieved from the http header as returned by a Tamino database.
TServerTime TServerTime is the interface for acces of time information of a Tamino database.
TWarning TWarning defines operations for accessing the warnings provided by Tamino in response to a database request.
 

Class Summary
TAbstractResponse TAbstractResponse is the basis for response implementations.
TCursorContentItem TCursorInfoItem is the cursor info specific implementation class for TResponseInfoItem.
THeaderEnlister THeaderdEnlister provides services so that specific headers either given within a stream header or response can be enlisted at a TDataObject.
TInputStreamInterpreter TInputStreamInterpreter defines the abstract base class for interpreting a TInputStream object.
TMessageContentItem TMessageContentItem is the message information specific implementation class for TResponseContentItem.
TMessageLineContentItem  
TMessageTextContentItem  
TNonXMLObjectIteratorImpl TNonXMLObjectIteratorImpl is the implementation class for TNonXMLObjectIterator.
TObjectContentItem TObjectContentItem is the object info specific implementation class for TResponseContentItem.
TPreparedQueryContentItem TPreparedQueryContentItem is the prepared query info specific implementation class for TResponseContentItem.
TQueryContentItem TQueryContentItem is the query info specific implementation class for TResponseContentItem.
TResponseBuilderFactory TResponseBuilderFactory is the factory class for the instantiation of TResponseBuilder instances.
TResponseBuilderImpl TResponseBuilderImpl is the implementation class for TResponseBuilder.
TResponseContentFactory TResponseContentFactory is a factory class for the instantiation of so called response content instances.
TResponseContentItemFactory TResponseContentItemFactory is a factory class for the instantiation of so called response content item instances.
TResponseHandleImpl TResponseBody is the implementation of the �protected� TResponseHandle.
TResponseInfoContentImpl TResponseInfoImpl is the implementation class for TResponseInfo.
TResponseMessages This class defines constants for the keys of the messages defined in com.softwareag.tamino.db.api.response.TResponseMessages.xml.
TResponseQueryContentImpl TResponseContentImpl is the implementation class for TResponseContent.
TSerializedResponse TAbstractResponse is the basis for response implementations.
TServerEchoImpl TServerEchoImpl is the implemantation of the TServerEcho interface.
TServerTimeImpl TServerTimeImpl is the implemantation of the TServerTime interface.
TSessionContentItem TSessionContentItem is the session info specific implementation class for TResponseContentItem.
TTimeContentItem TTimeContentItem is the time info specific implementation class for TResponseContentItem.
TWarningContentItem TwarningContentItem is the warning information specific implementation class for TResponseContentItem.
TWarningImpl TWarningImpl is the implemantation of the TWarning interface.
TWarningLineContentItem TMessageLineContentItem is the warning line information specific implementation class for TResponseContentItem.
TWarningTextContentItem TMessageTextContentItem is the warning text information specific implementation class for TResponseContentItem.
TXMLObjectFetchingIterator TXMLObjectFetchingIterator is the implementation class for the Tamino cursoring of the TXMLObjectIterator interface.
TXMLObjectIteratorImpl TXMLObjectIteratorImpl is the implementation class for TXMLObjectIterator.
TXQueryContentItem TXQueryContentItem is the query info specific implementation class for TResponseContentItem.
 

Exception Summary
TResponseBuildException TResponseBuildException is the general purpose exception class for the response builder.
TStreamInterpretException TStreamInterpretException is a special exception type for the interpreting of XML containing input streams.
 

Package com.softwareag.tamino.db.api.response Description

Provides the classes and interfaces to access result information returned by Tamino.

The main interface of this package is the TResponse interface. The information made available through this interface can be split in two categories:

The following code snippet shows how a client might work with a TResponse instance obtained from a TXMLAccessor:

    
    TConnectionFactory connectionFactory = TConnectionFactory.getInstance();
    TConnection connection = connectionFactory.newConnection( databaseURI , userId , password );
    TXMLObjectAccessor xmlAccessor = connection.newXMLObjectAccessor( accessLocation , TDOMObjectModel.getInstance() );
    TQuery query = new TQuery( "Book/Author[Lastname='Mustermann']" );
    TResponse response = xmlAccessor.query( query );
    TResultSetIterator iterator = response.getXMLObjectIterator();
    while ( iterator.hasNext() ) {
      TXMLObject xmlObject = iterator.next();
      StringWriter writer = new StringWriter();
      xmlObject.writeTo( writer );
      System.out.println( writer );
    }
    
  



Copyright (c) 2013 Software AG. All Rights Reserved.