|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.fc.WTObject
wt.vc.ObjectToVersionLink
Supported API: true
Extendable: true
Field Summary | |
private static String |
CLASSNAME
|
static long |
EXTERNALIZATION_VERSION_UID
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
static String |
ROLE_AOBJECT_REF
Label for the attribute. |
static String |
ROLE_BOBJECT_REF
Label for the attribute. |
private ObjectReference |
roleAObjectRef
|
private VersionReference |
roleBObjectRef
|
(package private) static long |
serialVersionUID
|
Fields inherited from class wt.fc.WTObject |
CREATE_TIMESTAMP, MODIFY_TIMESTAMP |
Fields inherited from interface wt.fc.BinaryLink |
ALL_ROLES, BOTH_ROLES, ROLE_AOBJECT_ROLE, ROLE_BOBJECT_ROLE |
Fields inherited from interface wt.fc.Persistable |
IDENTITY, PERSIST_INFO, TYPE |
Fields inherited from interface wt.identity.DisplayIdentification |
DISPLAY_IDENTIFIER, DISPLAY_IDENTITY, DISPLAY_TYPE |
Constructor Summary | |
ObjectToVersionLink()
|
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. |
WTObject |
duplicate()
Create a deep copy of this Link. |
boolean |
equals(Object obj)
Indicates whether the given object is equal to this object from a persistence perspective, by comparing the two objects ObjectIdentifier s. |
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()
Return the LinkInfo object for this Link Supported API: false |
Persistable |
getObject(String role)
Deprecated. replaced by getRoleObject(String) |
Persistable |
getOtherObject(Persistable obj)
Supported API: false |
String |
getRole(Persistable obj)
Supported API: false |
Persistable |
getRoleAObject()
Returns the role A object of this Link for this Link. |
QueryKey |
getRoleAObjectId()
Return the object id of the role A object for this Link. |
WTReference |
getRoleAObjectRef()
Gets the object for the association that plays role: ROLE_AOBJECT_REF. |
Persistable |
getRoleBObject()
Returns the role B object of this Link for this Link. |
QueryKey |
getRoleBObjectId()
Return the object id of the role B object for this Link. |
WTReference |
getRoleBObjectRef()
Gets the object for the association that plays role: ROLE_BOBJECT_REF. |
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. |
int |
hashCode()
Returns a hash code for this object based upon its ObjectIdentifier . |
protected void |
initialize(Persistable roleAObject,
Iterated roleBObject)
Default initializer for Link objects. |
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(ObjectToVersionLink thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
setRoleAObject(Persistable roleAObject)
Sets the role A object for this Link. |
void |
setRoleAObjectRef(WTReference a_RoleAObjectRef)
Sets the object for the association that plays role: ROLE_AOBJECT_REF. |
void |
setRoleBObject(Persistable roleBObject)
Sets the role B object for this Link. |
void |
setRoleBObjectRef(WTReference a_RoleBObjectRef)
Sets the object for the association that plays role: ROLE_BOBJECT_REF. |
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, finalize, getClassInfo, getCreateTimestamp, getDisplayIdentifier, getDisplayIdentity, getDisplayType, getIdentity, getModifyTimestamp, getPersistInfo, getType, initialize, readVersion, setPersistInfo, toString |
Methods inherited from class java.lang.Object |
clone, 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
public static final String ROLE_AOBJECT_REF
private ObjectReference roleAObjectRef
public static final String ROLE_BOBJECT_REF
private VersionReference roleBObjectRef
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
Constructor Detail |
public ObjectToVersionLink()
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(ObjectToVersionLink 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 LinkInfo getLinkInfo() throws WTIntrospectionException
getLinkInfo
in interface BinaryLink
WTIntrospectionException
public Persistable getObject(String role) throws WTException, InvalidRoleException
getObject
in interface BinaryLink
role
-
WTException
InvalidRoleException
public Persistable getOtherObject(Persistable obj) throws ObjectNotForLinkException
getOtherObject
in interface BinaryLink
obj
-
ObjectNotForLinkException
public String getRole(Persistable obj) throws WTException, ObjectNotForLinkException
getRole
in interface BinaryLink
obj
-
WTException
ObjectNotForLinkException
public Persistable getRoleAObject()
getRoleAObject
in interface BinaryLink
public void setRoleAObject(Persistable roleAObject)
setRoleAObject
in interface BinaryLink
roleAObject
- The role A object for this Link.public QueryKey getRoleAObjectId()
getRoleAObjectId
in interface BinaryLink
public Persistable getRoleBObject()
getRoleBObject
in interface BinaryLink
public void setRoleBObject(Persistable roleBObject)
setRoleBObject
in interface BinaryLink
roleBObject
- The role B object for this Link.public QueryKey getRoleBObjectId()
getRoleBObjectId
in interface BinaryLink
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 WTObject duplicate() throws WTException
duplicate
in class WTObject
WTException
protected void initialize(Persistable roleAObject, Iterated roleBObject) throws WTException
roleAObject
- roleBObject
-
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 BinaryLink
public void setRoleAObjectRef(WTReference a_RoleAObjectRef)
setRoleAObjectRef
in interface BinaryLink
a_RoleAObjectRef
- public WTReference getRoleBObjectRef()
getRoleBObjectRef
in interface BinaryLink
public void setRoleBObjectRef(WTReference a_RoleBObjectRef)
setRoleBObjectRef
in interface BinaryLink
a_RoleBObjectRef
- public boolean equals(Object obj)
ObjectIdentifier
s.
Changed or stale copies are still considered equal by this method.
Delegates to PersistenceHelper.equals(Persistable,Object)
.
Warning: Certain core Windchill operations may depend upon
equals
being ObjectIdentifier
-based. Changes
to the default implementation should be done with care, if at all.
Supported API: false
equals
in class WTObject
obj
-
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 |