/** * Construct a typical iterator: * iterate over all the objects * process the objects contained by "value holders"... * ...but only if they have already been instantiated... * ...and don't process the "value holders" themselves * process "wrapped" objects * skip aggregate objects * skip primitives (Strings, Dates, Integers, etc.) */ public DescriptorIterator() { // 2612538 - the default size of Map (32) is appropriate this.visitedObjects = new IdentityHashMap(); this.visitedStack = new Stack(); this.cascadeDepth = CascadeAllParts; this.shouldIterateOverIndirectionObjects = true;// process the objects contained by ValueHolders... this.shouldIterateOverUninstantiatedIndirectionObjects = false;// ...but only if they have already been instantiated... this.shouldIterateOnIndirectionObjects = false;// ...and don't process the ValueHolders themselves this.shouldIterateOverWrappedObjects = true;// process "wrapped" objects this.shouldIterateOnAggregates = false; this.shouldIterateOnPrimitives = false; this.shouldIterateOnFetchGroupAttributesOnly = false; this.shouldBreak = false; this.cascadeCondition = new CascadeCondition(); }
if (this.cascadeCondition.shouldNotCascade(mapping)) { return;
if (this.cascadeCondition.shouldNotCascade(mapping)) { return;
if (this.cascadeCondition.shouldNotCascade(mapping)) { return;
/** * Construct a typical iterator: * iterate over all the objects * process the objects contained by "value holders"... * ...but only if they have already been instantiated... * ...and don't process the "value holders" themselves * process "wrapped" objects * skip aggregate objects * skip primitives (Strings, Dates, Integers, etc.) */ public DescriptorIterator() { // 2612538 - the default size of Map (32) is appropriate this.visitedObjects = new IdentityHashMap(); this.visitedStack = new Stack(); this.cascadeDepth = CascadeAllParts; this.shouldIterateOverIndirectionObjects = true;// process the objects contained by ValueHolders... this.shouldIterateOverUninstantiatedIndirectionObjects = false;// ...but only if they have already been instantiated... this.shouldIterateOnIndirectionObjects = false;// ...and don't process the ValueHolders themselves this.shouldIterateOverWrappedObjects = true;// process "wrapped" objects this.shouldIterateOnAggregates = false; this.shouldIterateOnPrimitives = false; this.shouldIterateOnFetchGroupAttributesOnly = false; this.shouldBreak = false; this.cascadeCondition = new CascadeCondition(); }
/** * Construct a typical iterator: * iterate over all the objects * process the objects contained by "value holders"... * ...but only if they have already been instantiated... * ...and don't process the "value holders" themselves * process "wrapped" objects * skip aggregate objects * skip primitives (Strings, Dates, Integers, etc.) */ public DescriptorIterator() { // 2612538 - the default size of Map (32) is appropriate this.visitedObjects = new IdentityHashMap(); this.visitedStack = new Stack(); this.cascadeDepth = CascadeAllParts; this.shouldIterateOverIndirectionObjects = true;// process the objects contained by ValueHolders... this.shouldIterateOverUninstantiatedIndirectionObjects = false;// ...but only if they have already been instantiated... this.shouldIterateOnIndirectionObjects = false;// ...and don't process the ValueHolders themselves this.shouldIterateOverWrappedObjects = true;// process "wrapped" objects this.shouldIterateOnAggregates = false; this.shouldIterateOnPrimitives = false; this.shouldBreak = false; this.cascadeCondition = new CascadeCondition(); }