|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.fc.WTObject
wt.graph.AbstractObjectGraphEdge
Provides a value-add "basic" implementation of an object graph edge abstraction. It wraps the object graph edge factory, and extends the notion of persistability by being a type of WTObject.
This "basic" implementation can be the customizaton point of where to begin specializing. Or alternatively specialization could start at its supertype the object graph edge for maximum flexibility.
Field Summary | |
private static String |
CLASSNAME
|
private Boolean |
excluded
|
static long |
EXTERNALIZATION_VERSION_UID
|
private ObjectReference |
graph
|
private String |
id
|
private static int |
ID_UPPER_LIMIT
|
private ObjectInfo |
info
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
private NodeReference |
roleAObjectRef
|
private NodeReference |
roleBObjectRef
|
(package private) static long |
serialVersionUID
|
Fields inherited from class wt.fc.WTObject |
CREATE_TIMESTAMP, MODIFY_TIMESTAMP |
Fields inherited from interface wt.graph.ObjectGraphEdge |
EXCLUDED, GRAPH, ID, INFO, NEIGHBOR_ROLE, ORIGIN_ROLE, ROLE_AOBJECT_REF, ROLE_BOBJECT_REF |
Fields inherited from interface wt.fc.Persistable |
IDENTITY, PERSIST_INFO, TYPE |
Fields inherited from interface wt.fc.Link |
ALL_ROLES, BOTH_ROLES, ROLE_AOBJECT_ROLE, ROLE_BOBJECT_ROLE |
Fields inherited from interface wt.identity.DisplayIdentification |
DISPLAY_IDENTIFIER, DISPLAY_IDENTITY, DISPLAY_TYPE |
Constructor Summary | |
AbstractObjectGraphEdge()
|
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 |
clone()
Supported API: false |
boolean |
equals(Object obj)
Tests if two references refer to the same object. |
Object[] |
getAllObjects()
Gets all the role objects of this link. |
ObjectReference |
getGraph()
Gets the object for the association that plays role: GRAPH. |
String |
getId()
Gets the value of the attribute: ID. |
ObjectInfo |
getInfo()
Gets the object for the association that plays role: INFO. |
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()
Gets the LinkInfo object for this Link Supported API: false |
GraphNodeModel |
getNeighbor()
Supported API: false |
Persistable |
getObject(String role)
Deprecated. replaced by getRoleObject(String) |
GraphNodeModel |
getOrigin()
Supported API: false |
Persistable |
getOtherObject(Persistable obj)
Gets this link's other side role. |
String |
getRole(Persistable obj)
Gets this link's role name. |
Persistable |
getRoleAObject()
Gets the role A object of this Link for this Link. |
QueryKey |
getRoleAObjectId()
Gets the object id of the role A object for this Link. |
WTReference |
getRoleAObjectRef()
Supported API: false |
Persistable |
getRoleBObject()
Gets the role B object of this Link for this Link. |
QueryKey |
getRoleBObjectId()
Gets the object id of the role B object for this Link. |
WTReference |
getRoleBObjectRef()
Supported API: false |
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. |
private void |
graphValidate(ObjectReference a_Graph)
|
int |
hashCode()
Returns a hash code for this object based upon its ObjectIdentifier . |
private void |
idValidate(String a_Id)
|
protected void |
initialize(ObjectGraphNode origin,
ObjectGraphNode neighbor)
Supported API: false |
boolean |
isExcluded()
Supported API: false |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
void |
readExternal(PersistentRetrieveIfc input)
Used by Persistent Data Service to populate the persistent attributes of this class from a persistent store. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(AbstractObjectGraphEdge thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
protected void |
setExcluded(boolean value)
Supported API: false |
void |
setExcluded(Boolean value)
Supported API: false |
void |
setGraph(ObjectReference a_Graph)
Sets the object for the association that plays role: GRAPH. |
void |
setId(String a_Id)
Sets the value of the attribute: ID. |
void |
setInfo(ObjectInfo a_Info)
Sets the object for the association that plays role: INFO. |
void |
setNeighbor(GraphNodeModel neighbor)
validates that the passed in GraphNodeModel is an instanceof ObjectGraphNode. |
void |
setOrigin(GraphNodeModel origin)
validates that the passed in GraphNodeModel is an instanceof ObjectGraphNode. |
void |
setRoleAObject(Persistable roleAObject)
Sets the role A object for this Link. |
void |
setRoleAObjectRef(WTReference a_RoleAObjectRef)
Supported API: false |
void |
setRoleBObject(Persistable roleBObject)
Sets the role B object for this Link. |
void |
setRoleBObjectRef(WTReference a_RoleBObjectRef)
Supported API: false |
void |
setRoleObject(Object roleObject,
String rolename)
Sets the role object of this link for the given role name. |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
void |
writeExternal(PersistentStoreIfc output)
Used by Persistent Data Service to obtain the values of the persistent attributes of this class, so they can be written to a persistent store. |
Methods inherited from class wt.fc.WTObject |
checkAttributes, duplicate, finalize, getClassInfo, getCreateTimestamp, getDisplayIdentifier, getDisplayIdentity, getDisplayType, getIdentity, getModifyTimestamp, getPersistInfo, getType, initialize, readVersion, setPersistInfo, toString |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface wt.fc.Persistable |
checkAttributes, getIdentity, getPersistInfo, getType, setPersistInfo |
Methods inherited from interface wt.fc.NetFactor |
getClassInfo, getConceptualClassname |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private static int ID_UPPER_LIMIT
private String id
private Boolean excluded
private NodeReference roleAObjectRef
private NodeReference roleBObjectRef
private ObjectInfo info
private ObjectReference graph
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
Constructor Detail |
public AbstractObjectGraphEdge()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class WTObject
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class WTObject
input
-
IOException
ClassNotFoundException
protected boolean readVersion(AbstractObjectGraphEdge thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public void writeExternal(PersistentStoreIfc output) throws SQLException, DatastoreException
(Not intended for general use.)
Supported API: false
writeExternal
in interface ObjectMappable
writeExternal
in class WTObject
output
-
SQLException
DatastoreException
public void readExternal(PersistentRetrieveIfc input) throws SQLException, DatastoreException
(Not intended for general
use.)
Supported API: false
readExternal
in interface ObjectMappable
readExternal
in class WTObject
input
-
SQLException
DatastoreException
public Object clone()
clone
in interface GraphEdgeModel
public boolean equals(Object obj)
equals
in interface GraphEdgeModel
equals
in class WTObject
obj
-
public LinkInfo getLinkInfo() throws WTIntrospectionException
getLinkInfo
in interface Link
WTIntrospectionException
public Persistable getObject(String role) throws WTException, InvalidRoleException
getObject
in interface Link
role
-
WTException
InvalidRoleException
public Persistable getOtherObject(Persistable obj) throws ObjectNotForLinkException
getOtherObject
in interface Link
obj
-
ObjectNotForLinkException
public String getRole(Persistable obj) throws WTException, ObjectNotForLinkException
getRole
in interface Link
obj
-
WTException
ObjectNotForLinkException
public Persistable getRoleAObject()
getRoleAObject
in interface Link
public void setRoleAObject(Persistable roleAObject)
setRoleAObject
in interface Link
roleAObject
- The role A object for this Link.public QueryKey getRoleAObjectId()
getRoleAObjectId
in interface Link
public Persistable getRoleBObject()
getRoleBObject
in interface Link
public void setRoleBObject(Persistable roleBObject)
setRoleBObject
in interface Link
roleBObject
- The role B object for this Link.public QueryKey getRoleBObjectId()
getRoleBObjectId
in interface Link
public Object[] getAllObjects()
getAllObjects
in interface Link
public Object getRoleObject(String rolename) throws WTException
getRoleObject
in interface Link
rolename
-
WTException
public void setRoleObject(Object roleObject, String rolename) throws WTException
setRoleObject
in interface Link
roleObject
- The role A object for this Link.rolename
-
WTException
public String getRoleIdName(String rolename) throws WTException
getRoleIdName
in interface Link
rolename
-
WTException
public QuerySpec appendJoinCriteria(Persistable obj, String otherSideRole, QuerySpec qs, int targetPos, int linkPos) throws WTException
appendJoinCriteria
in interface Link
obj
- otherSideRole
- qs
- targetPos
- linkPos
-
WTException
public Object[] getJoinValues(Persistable obj, String otherSideRole) throws WTException
getJoinValues
in interface Link
obj
- otherSideRole
-
WTException
public QuerySpec appendRoleCriteria(Persistable obj, String role, QuerySpec qs, int linkPos) throws WTException
appendRoleCriteria
in interface Link
obj
- role
- qs
- linkPos
-
WTException
public WTReference getRoleAObjectRef()
getRoleAObjectRef
in interface ObjectGraphEdge
public void setRoleAObjectRef(WTReference a_RoleAObjectRef)
setRoleAObjectRef
in interface ObjectGraphEdge
a_RoleAObjectRef
- The role A object for this Link.public WTReference getRoleBObjectRef()
getRoleBObjectRef
in interface ObjectGraphEdge
public void setRoleBObjectRef(WTReference a_RoleBObjectRef)
setRoleBObjectRef
in interface ObjectGraphEdge
a_RoleBObjectRef
- The role A object for this Link.public GraphNodeModel getOrigin()
getOrigin
in interface ObjectGraphEdge
public void setOrigin(GraphNodeModel origin)
setOrigin
in interface ObjectGraphEdge
origin
- public GraphNodeModel getNeighbor()
getNeighbor
in interface ObjectGraphEdge
public void setNeighbor(GraphNodeModel neighbor)
setNeighbor
in interface ObjectGraphEdge
neighbor
- protected void initialize(ObjectGraphNode origin, ObjectGraphNode neighbor) throws WTException
origin
- neighbor
-
WTException
public void setExcluded(Boolean value)
setExcluded
in interface ObjectGraphEdge
value
- protected void setExcluded(boolean value)
value
- public boolean isExcluded()
isExcluded
in interface ObjectGraphEdge
public String getId()
getId
in interface ObjectGraphEdge
public void setId(String a_Id) throws WTPropertyVetoException
setId
in interface ObjectGraphEdge
a_Id
-
WTPropertyVetoException
private void idValidate(String a_Id) throws WTPropertyVetoException
a_Id
-
WTPropertyVetoException
public ObjectInfo getInfo()
getInfo
in interface ObjectGraphEdge
public void setInfo(ObjectInfo a_Info)
setInfo
in interface ObjectGraphEdge
a_Info
- public ObjectReference getGraph()
getGraph
in interface ObjectGraphEdge
public void setGraph(ObjectReference a_Graph) throws WTPropertyVetoException
setGraph
in interface ObjectGraphEdge
a_Graph
-
WTPropertyVetoException
private void graphValidate(ObjectReference a_Graph) throws WTPropertyVetoException
a_Graph
-
WTPropertyVetoException
public int hashCode()
ObjectIdentifier
.
Delegates to PersistenceHelper.hashCode(Persistable)
.
Warning: Certain core Windchill operations may depend upon
hashCode
being ObjectIdentifier-based
. Changes
to the default implementation should be done with care, if at all.
Supported API: false
hashCode
in class WTObject
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |