Package wt.fc

Class AbstractOidChunkResultProcessor

java.lang.Object
wt.fc.AbstractOidChunkResultProcessor
All Implemented Interfaces:
ResultProcessor

public abstract class AbstractOidChunkResultProcessor extends Object implements ResultProcessor
This abstract class implements methods to process results directly from the low level persistence layer. It will process query results that return a class name and object id as the first two items in a query result element/row. The ids are stored internally for each class name. If a class limit or overall limit is reached, then the ids and class names are used to populate a WTSet which is then passed to a process() method. Note that the complete() method should be called to process any remaining ids after the query producing the results is executed.

Supported API: true

Extendable: true
  • Method Details

    • addElement

      public void addElement(Object anObj) throws WTException
      This method is called by the low level persistence layer to add the specified object to the result. The actual type of the element is assumed to be an Object[] with index 0 containing a String class name and index 1 containing a Number object ID.

      Supported API: true
      Specified by:
      addElement in interface ResultProcessor
      Parameters:
      anObj - Result object to add.
      Throws:
      WTException - - if the object can't be added to the result
      WTException