Package wt.fc
Class NavigateSpecResultProcessor
java.lang.Object
wt.fc.NavigateSpecResultProcessor
- All Implemented Interfaces:
Serializable,ResultProcessor
This ResultProcessor creates a mapping of the source QueryKeys and the link or other-side
role objects. In the target map, the keys are the source QueryKeys. The values are either the
link object(s) or the other-side object(s), depending on mapOtherSide boolean.
If the other-side cardinality is modeled as greater than one then each Map value is a WTArrayList.
Otherwise, the Map value is the object (link or other-side).
The assumption is that each row in the QueryResult is an array of length two where:
[0] is the other-side object.
[1] is the link object.
The easy way to get this result set is to call
Supported API: true
Extendable: false
PersistenceHelper.buildNavigateSpec
with otherSide=true.
Supported API: true
Extendable: false
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNavigateSpecResultProcessor(WTCollection a_source, String a_role, Class linkClass, boolean a_mapOtherSide) This constructor initialized the instance. -
Method Summary
-
Constructor Details
-
NavigateSpecResultProcessor
public NavigateSpecResultProcessor(WTCollection a_source, String a_role, Class linkClass, boolean a_mapOtherSide) throws WTException This constructor initialized the instance.
Supported API: true- Parameters:
a_source- The source of the navigate operation.a_role- The role to navigate to.linkClass- The association link class to navigate.- Throws:
WTException
-