|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.epm.structure.Relationship.Role
wt.epm.structure.Relationship.VersionRole
Field Summary |
Fields inherited from class wt.epm.structure.Relationship.Role |
|
Constructor Summary | |
protected |
Relationship.VersionRole(String name,
Class referencedClass)
|
Method Summary | |
void |
appendJoinCriteria(QuerySpec select,
Class linkClass)
Appends a JOIN condition to input QuerySpec that joins this role of the given link class with the object class that this role references. |
void |
appendRoleCriteria(QuerySpec select,
Class linkClass,
WTCollection objects)
Appends a seach condition to the input QuerySpec that finds all links of the given class where this role of the link references one of the objects in the given collection. |
boolean |
areSuitable(WTCollection objects)
Determines whether all of the objects in the given collection are suitable for this role. |
QueryKey |
createQueryKey(String className,
long identifier)
Creates the appropriate type of QueryKey for this role, either an ObjectIdentifier or a VersionForeignKey. |
WTCollection |
filterObjects(WTCollection objects)
Filters out all of the objects in the given collection are not suitable for this role. |
protected String |
getIdentifierName()
Returns the logical name of the database column that holds the identifier of the object that this role references. |
int |
getKeyMask()
Returns the appropriate key mask for this role. |
Methods inherited from class wt.epm.structure.Relationship.Role |
getClassName, getName, getReference, getReferencedClass, isRoleA, selectQueryKey, setObject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected Relationship.VersionRole(String name, Class referencedClass)
Method Detail |
public void appendJoinCriteria(QuerySpec select, Class linkClass) throws WTException
Relationship.Role
appendJoinCriteria
in class Relationship.Role
WTException
public void appendRoleCriteria(QuerySpec select, Class linkClass, WTCollection objects) throws WTException
Relationship.Role
appendRoleCriteria
in class Relationship.Role
WTException
public boolean areSuitable(WTCollection objects) throws WTException
areSuitable
in class Relationship.Role
WTException
public WTCollection filterObjects(WTCollection objects) throws WTException
filterObjects
in class Relationship.Role
WTException
public QueryKey createQueryKey(String className, long identifier) throws WTException
Relationship.Role
createQueryKey
in class Relationship.Role
WTException
protected String getIdentifierName()
Relationship.Role
getIdentifierName
in class Relationship.Role
public int getKeyMask()
Relationship.Role
getKeyMask
in class Relationship.Role
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |