wt.fc
Class SourceLinkMapResultProcessor

java.lang.Object
  extended bywt.fc.SourceLinkMapResultProcessor
All Implemented Interfaces:
ResultProcessor, Serializable

public class SourceLinkMapResultProcessor
extends Object
implements ResultProcessor, Serializable

The ResultProcessor creates a mapping of source QueryKeys and associated Link ObjectIdentifiers stored in a WTArrayList value. The first element of each row is assumed to be a full Persistable BinaryLink object.

Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
private  Map referenceMap
           
private static String RESOURCE
           
private  WTCollection source
           
private  boolean sourceRoleA
           
private  Map targetMap
           
 
Constructor Summary
SourceLinkMapResultProcessor()
          Default constructor.
SourceLinkMapResultProcessor(WTCollection a_source, String a_role, Class linkClass)
          This constructor initialized the instance.
 
Method Summary
 void addElement(Object anObj)
          Add the specified object to the result processor, and increase the size by one

Supported API: false
 WTCollection getSource()
          Gets the value of the attribute: source; The source objects that will be used as the keys in the Map.
 Map getTargetMap()
          Gets the value of the attribute: targetMap; The target results of the query.
 boolean isSourceRoleA()
          Gets the value of the attribute: sourceRoleA; Indicates whether the source objects are role A (true) or role B (false).
 void setSource(WTCollection a_Source)
          Sets the value of the attribute: source; The source objects that will be used as the keys in the Map.
 void setSourceRoleA(boolean a_SourceRoleA)
          Sets the value of the attribute: sourceRoleA; Indicates whether the source objects are role A (true) or role B (false).
 void setTargetMap(Map a_TargetMap)
          Sets the value of the attribute: targetMap; The target results of the query.
 int size()
          Return the number of objects which have been added by the result processor

Supported API: false
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

targetMap

private Map targetMap

source

private WTCollection source

sourceRoleA

private boolean sourceRoleA

referenceMap

private transient Map referenceMap
Constructor Detail

SourceLinkMapResultProcessor

public SourceLinkMapResultProcessor()
Default constructor.

Supported API: false


SourceLinkMapResultProcessor

public SourceLinkMapResultProcessor(WTCollection a_source,
                                    String a_role,
                                    Class linkClass)
                             throws WTException
This constructor initialized the instance.

Supported API: false

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
Method Detail

getTargetMap

public Map getTargetMap()
Gets the value of the attribute: targetMap; The target results of the query. This attribute may set prior to the query and the map will be used. Otherwise, a default instance will be instantiated.

Supported API: false

Returns:
Map

setTargetMap

public void setTargetMap(Map a_TargetMap)
                  throws WTPropertyVetoException
Sets the value of the attribute: targetMap; The target results of the query. This attribute may set prior to the query and the map will be used. Otherwise, a default instance will be instantiated.

Supported API: false

Parameters:
a_TargetMap -
Throws:
WTPropertyVetoException

getSource

public WTCollection getSource()
Gets the value of the attribute: source; The source objects that will be used as the keys in the Map.

Supported API: false

Returns:
WTCollection

setSource

public void setSource(WTCollection a_Source)
               throws WTPropertyVetoException
Sets the value of the attribute: source; The source objects that will be used as the keys in the Map.

Supported API: false

Parameters:
a_Source -
Throws:
WTPropertyVetoException

isSourceRoleA

public boolean isSourceRoleA()
Gets the value of the attribute: sourceRoleA; Indicates whether the source objects are role A (true) or role B (false).

Supported API: false

Returns:
boolean

setSourceRoleA

public void setSourceRoleA(boolean a_SourceRoleA)
                    throws WTPropertyVetoException
Sets the value of the attribute: sourceRoleA; Indicates whether the source objects are role A (true) or role B (false).

Supported API: false

Parameters:
a_SourceRoleA -
Throws:
WTPropertyVetoException

addElement

public void addElement(Object anObj)
Add the specified object to the result processor, and increase the size by one

Supported API: false

Specified by:
addElement in interface ResultProcessor
Parameters:
anObj -

size

public int size()
Return the number of objects which have been added by the result processor

Supported API: false

Specified by:
size in interface ResultProcessor
Returns:
int