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

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

See: Description

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) 2017 Software AG. All Rights Reserved.