org.openrdf.query
Class TupleQueryResultHandlerBase

java.lang.Object
  extended by org.openrdf.query.TupleQueryResultHandlerBase
All Implemented Interfaces:
TupleQueryResultHandler
Direct Known Subclasses:
TupleQueryResultBuilder

public class TupleQueryResultHandlerBase
extends Object
implements TupleQueryResultHandler

Base class for TupleQueryResultHandlers with dummy implementations of all methods. This class is a useful superclass for classes that implement only one or two TupleQueryResultHandler methods.


Constructor Summary
TupleQueryResultHandlerBase()
           
 
Method Summary
 void endQueryResult()
          Indicates the end of a sequence of solutions.
 void handleSolution(BindingSet bindingSet)
          Handles a solution.
 void startQueryResult(List<String> bindingNames)
          Indicates the start of a sequence of Solutions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TupleQueryResultHandlerBase

public TupleQueryResultHandlerBase()
Method Detail

startQueryResult

public void startQueryResult(List<String> bindingNames)
                      throws TupleQueryResultHandlerException
Description copied from interface: TupleQueryResultHandler
Indicates the start of a sequence of Solutions. The supplied bindingNames are an indication of the values that are in the Solutions. For example, a SeRQL query like select X, Y from {X} P {Y} will have binding names X and Y.

Specified by:
startQueryResult in interface TupleQueryResultHandler
Parameters:
bindingNames - An ordered set of binding names.
Throws:
TupleQueryResultHandlerException

endQueryResult

public void endQueryResult()
                    throws TupleQueryResultHandlerException
Description copied from interface: TupleQueryResultHandler
Indicates the end of a sequence of solutions.

Specified by:
endQueryResult in interface TupleQueryResultHandler
Throws:
TupleQueryResultHandlerException

handleSolution

public void handleSolution(BindingSet bindingSet)
                    throws TupleQueryResultHandlerException
Description copied from interface: TupleQueryResultHandler
Handles a solution.

Specified by:
handleSolution in interface TupleQueryResultHandler
Throws:
TupleQueryResultHandlerException


Copyright © 2001-2009 Aduna. All Rights Reserved.