com.boylesoftware.cb2
Class FetchResultProcessorHandler

java.lang.Object
  extended bycom.boylesoftware.cb2.FetchResultProcessorHandler

public final class FetchResultProcessorHandler
extends java.lang.Object

Wrapper for FetchResultPocessor interface implementations, so they can be passed to the DAO along with a fetch call. The wrapper adds DM nesting level, on which the processor should be installed. If the level is zero, the processor will be called for each top-level DM, which goes to the array returned by the fetch call back to the caller. If the level is one, then the processor will be called for DMs in the nested DM array in the top-level DM. And so on.

Version:
$Id: FetchResultProcessorHandler.java,v 1.2 2004/04/20 16:00:58 levahim Exp $
Author:
Lev Himmelfarb
See Also:
DAO.fetch(String, Set, Object [], String [], int, int, int, FetchResultProcessorHandler [], FetchResultDescriptor)

Constructor Summary
FetchResultProcessorHandler(FetchResultProcessor processor, int level)
          Creates a handler, which can be passed to the DAO with a fetch call.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FetchResultProcessorHandler

public FetchResultProcessorHandler(FetchResultProcessor processor,
                                   int level)
Creates a handler, which can be passed to the DAO with a fetch call.

Parameters:
processor - processor implementation.
level - nested DM array level starting from zero.


Copyright © 2002,2003,2004 - Boyle Software, Inc.