wt.fc.requireddata
Class LinkQueryData

java.lang.Object
  extended bywt.fc.requireddata.LinkQueryData
Direct Known Subclasses:
AdHocForeignKeyLinkQueryData

public class LinkQueryData
extends Object

Data holder for information needed to query a link class for a set of roleA and roleB target ids.

Supported API: false

Extendable: false


Field Summary
private static String CLASSNAME
           
private  Class linkClass
           
private static String RESOURCE
           
private  long[] roleAIds
           
private  long[] roleBIds
           
 
Constructor Summary
LinkQueryData()
           
 
Method Summary
protected  String getIdString(long[] ids)
           
 Class getLinkClass()
          Gets the value of the attribute: linkClass; Supports ObjectToObjectLink, ObjectToVersionLink and VersionToVersionLink.
 long[] getRoleAIds()
          Gets the value of the attribute: roleAIds; The long[] can contain either ida2a2s or branchIds.
 long[] getRoleBIds()
          Gets the value of the attribute: roleBIds; See roleAIds attribute documentation.
static LinkQueryData newInstance(Class linkClass, long[] roleAIds, long[] roleBIds)
          

Supported API: false
static LinkQueryData newInstance(Class linkClass, Long[] roleAIds, Long[] roleBIds)
          

Supported API: false
 void setLinkClass(Class a_LinkClass)
          Sets the value of the attribute: linkClass; Supports ObjectToObjectLink, ObjectToVersionLink and VersionToVersionLink.
 void setRoleAIds(long[] a_RoleAIds)
          Sets the value of the attribute: roleAIds; The long[] can contain either ida2a2s or branchIds.
 void setRoleBIds(long[] a_RoleBIds)
          Sets the value of the attribute: roleBIds; See roleAIds attribute documentation.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

linkClass

private Class linkClass

roleAIds

private long[] roleAIds

roleBIds

private long[] roleBIds
Constructor Detail

LinkQueryData

public LinkQueryData()
Method Detail

getLinkClass

public Class getLinkClass()
Gets the value of the attribute: linkClass; Supports ObjectToObjectLink, ObjectToVersionLink and VersionToVersionLink.

Supported API: false

Returns:
Class

setLinkClass

public void setLinkClass(Class a_LinkClass)
                  throws WTPropertyVetoException
Sets the value of the attribute: linkClass; Supports ObjectToObjectLink, ObjectToVersionLink and VersionToVersionLink.

Supported API: false

Parameters:
a_LinkClass -
Throws:
WTPropertyVetoException

getRoleAIds

public long[] getRoleAIds()
Gets the value of the attribute: roleAIds; The long[] can contain either ida2a2s or branchIds. If this role is for a Versioned object that plays the "version" role in an ObjectToVersionLink or VersionToVersionLink then the long[] should contain branchIds. If this role is for a non-Versioned or Versioned object that plays the "object" role in an ObjectToObjectLink or ObjectToVersionLink then the long[] should contain ida2a2s.

Supported API: false

Returns:
long[]

setRoleAIds

public void setRoleAIds(long[] a_RoleAIds)
                 throws WTPropertyVetoException
Sets the value of the attribute: roleAIds; The long[] can contain either ida2a2s or branchIds. If this role is for a Versioned object that plays the "version" role in an ObjectToVersionLink or VersionToVersionLink then the long[] should contain branchIds. If this role is for a non-Versioned or Versioned object that plays the "object" role in an ObjectToObjectLink or ObjectToVersionLink then the long[] should contain ida2a2s.

Supported API: false

Parameters:
a_RoleAIds -
Throws:
WTPropertyVetoException

getRoleBIds

public long[] getRoleBIds()
Gets the value of the attribute: roleBIds; See roleAIds attribute documentation.

Supported API: false

Returns:
long[]

setRoleBIds

public void setRoleBIds(long[] a_RoleBIds)
                 throws WTPropertyVetoException
Sets the value of the attribute: roleBIds; See roleAIds attribute documentation.

Supported API: false

Parameters:
a_RoleBIds -
Throws:
WTPropertyVetoException

newInstance

public static LinkQueryData newInstance(Class linkClass,
                                        long[] roleAIds,
                                        long[] roleBIds)


Supported API: false

Parameters:
linkClass -
roleAIds -
roleBIds -
Returns:
LinkQueryData

newInstance

public static LinkQueryData newInstance(Class linkClass,
                                        Long[] roleAIds,
                                        Long[] roleBIds)


Supported API: false

Parameters:
linkClass -
roleAIds -
roleBIds -
Returns:
LinkQueryData

toString

public String toString()

getIdString

protected String getIdString(long[] ids)