{
println("\nSpecifying the Calculation of Starting and Ending Positions " +
"in a Parent");
// Specifying the Calculation of Starting and Ending Positions in a Parent.
CompoundCursorSpecification rootCursorSpec =
(CompoundCursorSpecification) cursorMngrSpec.getRootCursorSpecification();
// Get the List of CursorSpecification objects for the outputs.
// Iterate through the list, specifying the calculation of the extent
// for each output CursorSpecification.
Iterator iterOutputSpecs = rootCursorSpec.getOutputs().iterator();
while(iterOutputSpecs.hasNext())
{
ValueCursorSpecification valCursorSpec = (ValueCursorSpecification)
iterOutputSpecs.next();
valCursorSpec.setParentStartCalculationSpecified(true);
valCursorSpec.setParentEndCalculationSpecified(true);
}
boolean isSet = true;
Iterator outputSpecsItr = rootCursorSpec.getOutputs().iterator();
while(outputSpecsItr.hasNext())
{
ValueCursorSpecification valCursorSpec = (ValueCursorSpecification)
outputSpecsItr.next();
if (valCursorSpec.isParentStartCalculationSpecified())