public final class CompoundCursorSpecification extends CursorSpecification implements CompoundCursorInfoSpecification
CursorSpecification for a Source that has one or more outputs. A CompoundCursorSpecification has child CursorSpecification objects. It always has a base ValueCursorSpecification for the values of the elements of the Source. It also has a CursorSpecification for each of the outputs of the Source. With methods of a CompoundCursorSpecification, an application can get its base ValueCursorSpecification and the outputs.
With other methods, an application can accept a CursorSpecificationVisitor or specify that the default fetch size be set on the children of the CompoundCursorSpecification. The fetch size is the number of elements that a Cursor retrieves during a single fetch from the data store. If a CursorSpecification is set to specify the fetch size for a Cursor, then an application can specify the value of the fetch size by calling the setFetchSize method on the Cursor.
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
acceptVisitor(CursorSpecificationVisitor visitor, java.lang.Object context)
Calls the
visitCompoundCursorSpecification method of the specified CursorSpecificationVisitor and passes that method this CompoundCursorSpecification and the specified context object. |
java.util.List |
getOutputs()
Gets a
List whose values are the outputs of this CompoundCursorSpecification. |
ValueCursorInfoSpecification |
getValue()
Gets the
ValueCursorSpecification for this CompoundCursorSpecification. |
ValueCursorSpecification |
getValueCursorSpecification()
Gets the base
ValueCursorSpecification, which is the CursorSpecification for the base ValueCursor, which has the values of the Source for the CompoundCursorSpecification. |
void |
specifyDefaultFetchSizeOnChildren()
Specifies that the default fetch size be set on the child
CursorSpecification objects of the CompoundCursorSpecification. |
void |
specifyDefaultFetchSizeOnChildren(int defaultFetchSize)
Specifies that the default fetch size be set on the child
CursorSpecification objects of the CompoundCursorSpecification and supplies an initial value for the fetch size. |
getDefaultFetchSize, getSource, getTransaction, isExtentCalculationSpecified, isParentEndCalculationSpecified, isParentStartCalculationSpecified, setDefaultFetchSize, setExtentCalculationSpecified, setParentEndCalculationSpecified, setParentStartCalculationSpecified, setTransactionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSource, isParentEndCalculationSpecified, isParentStartCalculationSpecified, setParentEndCalculationSpecified, setParentStartCalculationSpecifiedpublic final java.lang.Object acceptVisitor(CursorSpecificationVisitor visitor, java.lang.Object context)
visitCompoundCursorSpecification method of the specified CursorSpecificationVisitor and passes that method this CompoundCursorSpecification and the specified context object.acceptVisitor in class CursorSpecificationvisitor - A CursorSpecificationVisitor.context - An Object.Object returned by the visitCompoundCursorSpecification method.public final java.util.List getOutputs()
List whose values are the outputs of this CompoundCursorSpecification.getOutputs in interface CompoundCursorInfoSpecificationList with the outputs of the CompoundCursorSpecification.public final ValueCursorSpecification getValueCursorSpecification()
ValueCursorSpecification, which is the CursorSpecification for the base ValueCursor, which has the values of the Source for the CompoundCursorSpecification.ValueCursorSpecification for the CompoundCursorSpecification.public final ValueCursorInfoSpecification getValue()
ValueCursorSpecification for this CompoundCursorSpecification.getValue in interface CompoundCursorInfoSpecificationValueCursorSpecification for this CompoundCursorSpecification.public final void specifyDefaultFetchSizeOnChildren()
CursorSpecification objects of the CompoundCursorSpecification.public final void specifyDefaultFetchSizeOnChildren(int defaultFetchSize)
CursorSpecification objects of the CompoundCursorSpecification and supplies an initial value for the fetch size.defaultFetchSize - The initial fetch size to set for the child CursorSpecification objects.