com.orchestranetworks.service.extensions
Class AdaptationTreeOptimizerSpec_RemoveDuplicates

java.lang.Object
  extended bycom.orchestranetworks.service.extensions.AdaptationTreeOptimizerSpec
      extended bycom.orchestranetworks.service.extensions.AdaptationTreeOptimizerSpec_RemoveDuplicates

public class AdaptationTreeOptimizerSpec_RemoveDuplicates
extends AdaptationTreeOptimizerSpec

Specifies an optimization by removing duplicates on an adaptations' tree.

The optimization is made by comparing the adaptation specified (say A) and each descendant specified (say B):

For all A and B pairs, each node pair is compared: if the value of a B node is defined and is equals to the corresponding value of A node,
then value in B is set to "inherited".

For tables it compares each nodes of each record in children with the record of the same primary key in parent.


Constructor Summary
AdaptationTreeOptimizerSpec_RemoveDuplicates(Adaptation anInstance, boolean includeDescendantsWithoutDelegated, boolean includeAllDescendants)
          Contructs a specification for removing duplicates in an adaptations' tree.
 
Method Summary
 AdaptationTreeOptimizerIterator createOptimizerIterator(Session aSession)
          Builds an iterator for adaptation's tree optimization.
 
Methods inherited from class com.orchestranetworks.service.extensions.AdaptationTreeOptimizerSpec
getAdaptation, isIncludeAllDescendants, isIncludeDescendantsWithoutDelegated
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdaptationTreeOptimizerSpec_RemoveDuplicates

public AdaptationTreeOptimizerSpec_RemoveDuplicates(Adaptation anInstance,
                                                    boolean includeDescendantsWithoutDelegated,
                                                    boolean includeAllDescendants)
Contructs a specification for removing duplicates in an adaptations' tree.

If parameters includeDescendantsWithoutDelegated and includeAllDescendants are both set to false, the optimization will concern only the adaptation instance specified and its children.

Parameters:
anInstance - top parent that is targeted by the optimization in the adaptations' tree.
includeDescendantsWithoutDelegated - includes all descendants excepted descendants of delegated adaptations.
includeAllDescendants - includes in the tree all adaptations even children of delegated adaptations.
Method Detail

createOptimizerIterator

public AdaptationTreeOptimizerIterator createOptimizerIterator(Session aSession)
Description copied from class: AdaptationTreeOptimizerSpec
Builds an iterator for adaptation's tree optimization.

Specified by:
createOptimizerIterator in class AdaptationTreeOptimizerSpec
Parameters:
aSession - session for running the optimization.


(report a bug)
EBX.Platform 4.5.3 [0607:0001]
Copyright Orchestra Networks 2000-2008. All rights reserved.