wt.part
Class WTSerialNumberedPart
java.lang.Object
wt.fc.WTObject
wt.enterprise.RevisionControlled
wt.part.WTPart
wt.part.WTSerialNumberedPart
- All Implemented Interfaces:
- _DepthLock000, _DepthLock001, _DepthLock002, _DepthLock003, _DepthLock004, _DepthLock005, _DepthLock006, _DepthLock007, AccessControlled, AccessControlList, AdHocControlled, AnnotationTarget, Archiveable, Baselineable, BuildTarget, BusinessInformation, CabinetBased, Changeable2, ChangeableIfc, Configuration, ConfigurationManageable, ContentHolder, DisplayIdentification, DomainAdministered, EffectivityHolder, EffectivityManageable, EffManagedVersion, ElectronicallySignable, Externalizable, Federatable, Foldered, FolderEntry, FolderServiceManaged, IBAHolder, Indexable, Iterated, IteratedFoldered, IteratedLifeCycleManaged, IteratedSubjectOfForum, IteratedSubjectOfNotebook, LifeCycleManaged, Lockable, NetFactor, Notifiable, ObjectMappable, OneOffVersioned, OrganizationOwned, OrganizationOwnedVersion, Ownable, Part, PartVersion, Persistable, Promotable, RecentlyVisited, Releasable, RemotelyLinkable, Representable, RepresentablesAndMasters, RepresentationContributor, RequirementsManageable, Serializable, SerialNumberedComponentVersion, SubjectOfForum, SubjectOfNotebook, TeamManaged, Trackable, Typed, UsesOccurrenceContext, Versionable, Versioned, Viewable, ViewManageable, Workable, WorkspaceTrackable, WTContained
- public class WTSerialNumberedPart
- extends WTPart
- implements SerialNumberedComponentVersion, Externalizable
Use the newWTSerialNumberedPart
static factory method(s),
not the WTSerialNumberedPart
constructor, to construct instances
of this class. Instances must be constructed using the static factory(s),
in order to ensure proper initialization of the instance.
Supported API: true
Extendable: false
- See Also:
- Serialized Form
Fields inherited from interface wt.vc.Iterated |
BRANCH_IDENTIFIER, CONTROL_BRANCH, CREATOR, CREATOR_EMAIL, CREATOR_FULL_NAME, CREATOR_NAME, ITERATION_IDENTIFIER, ITERATION_INFO, ITERATION_NOTE, LATEST_ITERATION, MODIFIER, MODIFIER_EMAIL, MODIFIER_FULL_NAME, MODIFIER_NAME |
Method Summary |
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. |
String |
getConceptualClassname()
Deprecated. |
int |
hashCode()
Returns a hash code for this object based upon its ObjectIdentifier . |
private void |
masterReferenceValidate(ObjectReference a_MasterReference)
|
static WTSerialNumberedPart |
newWTSerialNumberedPart()
Default factory for the class. |
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(WTSerialNumberedPart thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
setMaster(Mastered a_Master)
Sets the object for the association that plays role: MASTER. |
void |
setMasterReference(ObjectReference a_MasterReference)
Sets the value of the attribute: MASTER_REFERENCE. |
void |
setView(ViewReference a_View)
Sets the object for the association that plays role: VIEW. |
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.part.WTPart |
checkAttributes, getAttributeContainer, getContainer, getContainerName, getContainerReference, getContentVector, getDefaultUnit, getEffVector, getFederatableInfo, getHttpVector, getIdentity, getIterationDisplayIdentifierSansView, getName, getNumber, getOneOffVersionIdentifier, getOneOffVersionInfo, getOperation, getOrganization, getOrganizationCodingSystem, getOrganizationName, getOrganizationReference, getOrganizationUniqueIdentifier, getPartType, getSource, getTypeDefinitionReference, getView, getViewName, initialize, initialize, isHasContents, newWTPart, newWTPart, newWTPart, readVersion, setAttributeContainer, setContainer, setContainerReference, setContentVector, setDefaultUnit, setEffVector, setFederatableInfo, setHasContents, setHttpVector, setName, setNumber, setOneOffVersionInfo, setOperation, setOrganization, setOrganizationReference, setPartType, setSource, setTypeDefinitionReference |
Methods inherited from class wt.enterprise.RevisionControlled |
getBranchIdentifier, getBusinessType, getCabinet, getCabinetName, getCabinetReference, getCheckoutInfo, getControlBranch, getCreator, getCreatorEMail, getCreatorFullName, getCreatorName, getDomainRef, getEntrySet, getEventSet, getFolderingInfo, getFolderPath, getIndexerSet, getIterationDisplayIdentifier, getIterationIdentifier, getIterationInfo, getIterationNote, getLifeCycleName, getLifeCycleState, getLifeCycleTemplate, getLocation, getLock, getLockDate, getLocker, getLockerEMail, getLockerFullName, getLockerName, getLockNote, getMaster, getMasterReference, getModifier, getModifierEMail, getModifierFullName, getModifierName, getOwnership, getState, getTeamId, getTeamIdentity, getTeamName, getTeamTemplateId, getTeamTemplateIdentity, getTeamTemplateName, getVersionDisplayIdentifier, getVersionDisplayIdentity, getVersionDisplayType, getVersionIdentifier, getVersionInfo, initialize, isInheritedDomain, isLatestIteration, isLifeCycleAtGate, isLifeCycleBasic, isLocked, readVersion, setCheckoutInfo, setControlBranch, setDomainRef, setEntrySet, setEventSet, setFolderingInfo, setIndexerSet, setInheritedDomain, setIterationInfo, setLock, setOwnership, setState, setTeamId, setTeamTemplateId, setVersionInfo |
Methods inherited from class wt.fc.WTObject |
duplicate, finalize, getClassInfo, getCreateTimestamp, getDisplayIdentifier, getDisplayIdentity, getDisplayType, getModifyTimestamp, getPersistInfo, getType, readVersion, setPersistInfo, toString |
Methods inherited from interface wt.vc.Iterated |
getBranchIdentifier, getControlBranch, getCreator, getCreatorEMail, getCreatorFullName, getCreatorName, getIterationIdentifier, getIterationInfo, getIterationNote, getModifier, getModifierEMail, getModifierFullName, getModifierName, isLatestIteration, setControlBranch, setIterationInfo |
RESOURCE
private static final String RESOURCE
- See Also:
- Constant Field Values
CLASSNAME
private static final String CLASSNAME
serialVersionUID
static final long serialVersionUID
- See Also:
- Constant Field Values
EXTERNALIZATION_VERSION_UID
public static final long EXTERNALIZATION_VERSION_UID
- See Also:
- Constant Field Values
OLD_FORMAT_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
- See Also:
- Constant Field Values
WTSerialNumberedPart
public WTSerialNumberedPart()
writeExternal
public void writeExternal(ObjectOutput output)
throws IOException
- Writes the non-transient fields of this class to an external source.
Supported API: false
- Specified by:
writeExternal
in interface Externalizable
- Overrides:
writeExternal
in class WTPart
- Parameters:
output
-
- Throws:
IOException
readExternal
public void readExternal(ObjectInput input)
throws IOException,
ClassNotFoundException
- Reads the non-transient fields of this class from an external source.
Supported API: false
- Specified by:
readExternal
in interface Externalizable
- Overrides:
readExternal
in class WTPart
- Parameters:
input
-
- Throws:
IOException
ClassNotFoundException
readVersion
protected boolean readVersion(WTSerialNumberedPart thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
throws IOException,
ClassNotFoundException
- Reads the non-transient fields of this class from an external source.
Supported API: false
- Parameters:
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
- Returns:
- boolean
- Throws:
IOException
ClassNotFoundException
readOldVersion
private boolean readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
throws IOException,
ClassNotFoundException
- Reads the non-transient fields of this class from an external source,
which is not the current version.
- Parameters:
input
- readSerialVersionUID
- passThrough
- superDone
-
- Returns:
- boolean
- Throws:
IOException
ClassNotFoundException
writeExternal
public void writeExternal(PersistentStoreIfc output)
throws SQLException,
DatastoreException
- 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.
(Not intended for general use.)
Supported API: false
- Specified by:
writeExternal
in interface ObjectMappable
- Overrides:
writeExternal
in class WTPart
- Parameters:
output
-
- Throws:
SQLException
DatastoreException
readExternal
public void readExternal(PersistentRetrieveIfc input)
throws SQLException,
DatastoreException
- Used by Persistent Data Service to populate the persistent attributes
of this class from a persistent store.
(Not intended for general
use.)
Supported API: false
- Specified by:
readExternal
in interface ObjectMappable
- Overrides:
readExternal
in class WTPart
- Parameters:
input
-
- Throws:
SQLException
DatastoreException
getConceptualClassname
public String getConceptualClassname()
- Deprecated.
- Returns the conceptual (modeled) name for the class.
Supported API: false
- Specified by:
getConceptualClassname
in interface NetFactor
- Overrides:
getConceptualClassname
in class WTPart
- Returns:
- String
setMaster
public void setMaster(Mastered a_Master)
throws WTPropertyVetoException,
WTException
- Sets the object for the association that plays role: MASTER.
Supported API: true
- Specified by:
setMaster
in interface SerialNumberedComponentVersion
- Overrides:
setMaster
in class WTPart
- Parameters:
a_Master
-
- Throws:
WTPropertyVetoException
WTException
setMasterReference
public void setMasterReference(ObjectReference a_MasterReference)
throws WTPropertyVetoException
- Sets the value of the attribute: MASTER_REFERENCE.
Supported API: true
- Specified by:
setMasterReference
in interface SerialNumberedComponentVersion
- Overrides:
setMasterReference
in class WTPart
- Parameters:
a_MasterReference
-
- Throws:
WTPropertyVetoException
masterReferenceValidate
private void masterReferenceValidate(ObjectReference a_MasterReference)
throws WTPropertyVetoException
- Parameters:
a_MasterReference
-
- Throws:
WTPropertyVetoException
newWTSerialNumberedPart
public static WTSerialNumberedPart newWTSerialNumberedPart()
throws WTException
- Default factory for the class.
Supported API: false
- Returns:
- WTSerialNumberedPart
- Throws:
WTException
equals
public 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.
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
- Overrides:
equals
in class WTPart
- Parameters:
obj
-
- Returns:
- boolean
hashCode
public int hashCode()
- Returns a hash code for this object based upon its
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
- Overrides:
hashCode
in class WTPart
- Returns:
- int
setView
public void setView(ViewReference a_View)
- Description copied from class:
WTPart
- Sets the object for the association that plays role: VIEW.
Supported API: false
- Specified by:
setView
in interface ViewManageable
- Overrides:
setView
in class WTPart
- Parameters:
a_View
-