|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Link is the interface that represents any kind of associations between
two or more domain-specific objects.
Supported API: true
Extendable: true
Field Summary | |
static String |
ALL_ROLES
Supported API: false |
static String |
BOTH_ROLES
Deprecated. replaced by ALL_ROLES |
static String |
ROLE_AOBJECT_REF
Deprecated. |
static String |
ROLE_AOBJECT_ROLE
Deprecated. |
static String |
ROLE_BOBJECT_REF
Deprecated. |
static String |
ROLE_BOBJECT_ROLE
Deprecated. |
Fields inherited from interface wt.fc.Persistable |
IDENTITY, PERSIST_INFO, TYPE |
Method Summary | |
QuerySpec |
appendJoinCriteria(Persistable obj,
String otherSideRole,
QuerySpec qs,
int targetPos,
int linkPos)
Appends applicable search condition(s) onto the end of the given query spec based on the role to be navigate to and the attributes of the given object. |
QuerySpec |
appendRoleCriteria(Persistable obj,
String role,
QuerySpec qs,
int linkPos)
Appends applicable search condition(s) onto the end of the given query spec based on the role and the attributes of the given object. |
Object[] |
getAllObjects()
Gets all the role objects of this link. |
Object[] |
getJoinValues(Persistable obj,
String otherSideRole)
Gets an array of values in the same order as the query was appended with search conditions. |
LinkInfo |
getLinkInfo()
Supported API: false |
Persistable |
getObject(String role)
Deprecated. replaced by same named method on the BinaryLink abstraction (i.e., no longer valid for this generalization). |
Persistable |
getOtherObject(Persistable obj)
Deprecated. replaced by same named method on the BinaryLink abstraction (i.e., no longer valid for this generalization). |
String |
getRole(Persistable obj)
Deprecated. replaced by same named method on the BinaryLink abstraction (i.e., no longer valid for this generalization). |
Persistable |
getRoleAObject()
Deprecated. replaced by same named method on the BinaryLink abstraction (i.e., no longer valid for this generalization). |
QueryKey |
getRoleAObjectId()
Deprecated. replaced by same named method on the BinaryLink abstraction (i.e., no longer valid for this generalization). |
WTReference |
getRoleAObjectRef()
Deprecated. replaced by same named method on the BinaryLink abstraction (i.e., no longer valid for this generalization). |
Persistable |
getRoleBObject()
Deprecated. replaced by same named method on the BinaryLink abstraction (i.e., no longer valid for this generalization). |
QueryKey |
getRoleBObjectId()
Deprecated. replaced by same named method on the BinaryLink abstraction (i.e., no longer valid for this generalization). |
WTReference |
getRoleBObjectRef()
Deprecated. replaced by same named method on the BinaryLink abstraction (i.e., no longer valid for this generalization). |
String |
getRoleIdName(String rolename)
Gets the role's key id attribute name of this link for the given role name. |
Object |
getRoleObject(String rolename)
Gets the role object of this link for the given role name. |
void |
setRoleAObject(Persistable roleAObject)
Deprecated. replaced by same named method on the BinaryLink abstraction (i.e., no longer valid for this generalization). |
void |
setRoleAObjectRef(WTReference a_RoleAObjectRef)
Deprecated. replaced by same named method on the BinaryLink abstraction (i.e., no longer valid for this generalization). |
void |
setRoleBObject(Persistable roleBObject)
Deprecated. replaced by same named method on the BinaryLink abstraction (i.e., no longer valid for this generalization). |
void |
setRoleBObjectRef(WTReference a_RoleBObjectRef)
Deprecated. replaced by same named method on the BinaryLink abstraction (i.e., no longer valid for this generalization). |
void |
setRoleObject(Object roleObject,
String rolename)
Sets the role object of this link for the given role name. |
Methods inherited from interface wt.fc.Persistable |
checkAttributes, getIdentity, getPersistInfo, getType, setPersistInfo |
Methods inherited from interface wt.fc.ObjectMappable |
readExternal, writeExternal |
Methods inherited from interface wt.fc.NetFactor |
getClassInfo, getConceptualClassname |
Field Detail |
public static final String ALL_ROLES
public static final String BOTH_ROLES
public static final String ROLE_AOBJECT_ROLE
public static final String ROLE_BOBJECT_ROLE
public static final String ROLE_AOBJECT_REF
public static final String ROLE_BOBJECT_REF
Method Detail |
public LinkInfo getLinkInfo() throws WTIntrospectionException
WTIntrospectionException
public Persistable getObject(String role) throws WTException, InvalidRoleException
role
-
WTException
InvalidRoleException
public Persistable getOtherObject(Persistable obj) throws ObjectNotForLinkException
obj
-
ObjectNotForLinkException
public String getRole(Persistable obj) throws WTException, ObjectNotForLinkException
obj
-
WTException
ObjectNotForLinkException
public Persistable getRoleAObject()
public void setRoleAObject(Persistable roleAObject)
roleAObject
- The role A object for this Link.public QueryKey getRoleAObjectId()
public WTReference getRoleAObjectRef()
public void setRoleAObjectRef(WTReference a_RoleAObjectRef)
a_RoleAObjectRef
- The role A object for this Link.public Persistable getRoleBObject()
public void setRoleBObject(Persistable roleBObject)
roleBObject
- The role B object for this Link.public QueryKey getRoleBObjectId()
public WTReference getRoleBObjectRef()
public void setRoleBObjectRef(WTReference a_RoleBObjectRef)
a_RoleBObjectRef
- The role A object for this Link.public Object[] getAllObjects()
public Object getRoleObject(String rolename) throws WTException
rolename
-
WTException
public void setRoleObject(Object roleObject, String rolename) throws WTException
roleObject
- The role A object for this Link.rolename
-
WTException
public String getRoleIdName(String rolename) throws WTException
rolename
-
WTException
public QuerySpec appendJoinCriteria(Persistable obj, String otherSideRole, QuerySpec qs, int targetPos, int linkPos) throws WTException
obj
- otherSideRole
- qs
- targetPos
- linkPos
-
WTException
public Object[] getJoinValues(Persistable obj, String otherSideRole) throws WTException
obj
- otherSideRole
-
WTException
public QuerySpec appendRoleCriteria(Persistable obj, String role, QuerySpec qs, int linkPos) throws WTException
obj
- role
- qs
- linkPos
-
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |