|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.epm.structure.LinkProxy
The LinkProxy is a proxy object for a Binary Link. In addition to
holding the identity of the Binary Link that it represents, it also
holds the identities of the link's role A and role B objects. It is
return by the PLSQLNavigator methods, which query link classes using
PL/SQL stored procedures.
LinkProxy also supports the notion of a "missing link". You may navigate
from one object to another using a config spec or other filtering rules.
A "missing link" signifies that you can navigate from the object to other
iterations of the same master but not to the one selected by the config
spec or other filtering rules.
Supported API: false
Extendable: false
Nested Class Summary | |
static class |
LinkProxy.Role
Represents the Role for a LinkProxy. |
Field Summary | |
private BinaryLink |
link
|
private ObjectIdentifier |
linkId
|
private QueryKey |
roleA
|
static LinkProxy.Role |
RoleA
|
private Persistable |
roleAObject
|
private QueryKey |
roleB
|
static LinkProxy.Role |
RoleB
|
private Persistable |
roleBObject
|
Constructor Summary | |
protected |
LinkProxy(QueryKey roleA,
QueryKey roleB,
ObjectIdentifier objectId)
Constructs a LinkProxy object. |
Method Summary | |
static void |
cacheObjects(Collection linkProxies)
Given a collection of LinkProxy objects, query the Binary Links that they represent from the database as efficiently as possible. |
static void |
cacheRoleObjects(Collection linkProxies,
LinkProxy.Role role,
Collection objects)
Given a collection of LinkProxy objects, query the role A or B objects from the database as efficiently as possible. |
boolean |
equals(Object object)
Indicates whether given object is a LinkProxy object that represents the "same link" as this LinkProxy. |
BinaryLink |
getObject()
Finds the Binary Link object that this is a proxy for. |
ObjectIdentifier |
getObjectId()
Gets the object identifier of the Binary Link object that this is a proxy for. |
static Set |
getRole(Collection linkProxies,
LinkProxy.Role role)
Given a collection of LinkProxy objects, return the query keys for the given role. |
QueryKey |
getRole(LinkProxy.Role role)
Gets the query key (object identifier or version key) for the given role. |
QueryKey |
getRoleA()
Gets the query key (object identifier or version key) for the role A object. |
Persistable |
getRoleAObject()
Gets the role A object. |
QueryKey |
getRoleB()
Gets the query key (object identifier or version key) for the role B object. |
Persistable |
getRoleBObject()
Gets the role B object. |
Persistable |
getRoleObject(LinkProxy.Role role)
Gets the role object for the given role. |
static List |
getRoleObjects(Collection linkProxies,
LinkProxy.Role role)
Given a collection of LinkProxy objects, return the objects for the given role. |
static LinkProxy.Role[] |
getRoles(Class linkClass,
Class objectClass)
For the given Link class, determine which roles (if any) that objects of the given class may participate as. |
int |
hashCode()
Returns a hash code value for this LinkProxy object. |
boolean |
isMissingLink()
Returns true if this LinkProxy represents a "missing link". |
private void |
setRoleObject(LinkProxy.Role role,
Persistable object)
|
static Map |
sortByRole(Collection linkProxies,
LinkProxy.Role role)
Given a collection of LinkProxy objects, sort the LinkProxy objects by the query keys for the given role. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static LinkProxy.Role RoleA
public static LinkProxy.Role RoleB
private QueryKey roleA
private Persistable roleAObject
private QueryKey roleB
private Persistable roleBObject
private ObjectIdentifier linkId
private BinaryLink link
Constructor Detail |
protected LinkProxy(QueryKey roleA, QueryKey roleB, ObjectIdentifier objectId) throws WTException
Method Detail |
public QueryKey getRoleA()
public Persistable getRoleAObject()
public QueryKey getRoleB()
public Persistable getRoleBObject()
public QueryKey getRole(LinkProxy.Role role)
public Persistable getRoleObject(LinkProxy.Role role)
public ObjectIdentifier getObjectId()
public BinaryLink getObject() throws WTException
WTException
public boolean equals(Object object)
public int hashCode()
public boolean isMissingLink()
public static Set getRole(Collection linkProxies, LinkProxy.Role role)
public static List getRoleObjects(Collection linkProxies, LinkProxy.Role role)
public static Map sortByRole(Collection linkProxies, LinkProxy.Role role)
public static LinkProxy.Role[] getRoles(Class linkClass, Class objectClass) throws WTException
WTException
public static void cacheObjects(Collection linkProxies) throws WTException
WTException
public static void cacheRoleObjects(Collection linkProxies, LinkProxy.Role role, Collection objects) throws WTException
WTException
private void setRoleObject(LinkProxy.Role role, Persistable object)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |