Package wt.part
Class WTPartMaster
java.lang.Object
wt.fc._WTObject
wt.fc.WTObject
wt.enterprise._Master
wt.enterprise.Master
wt.part._WTPartMaster
wt.part.WTPartMaster
- All Implemented Interfaces:
Externalizable,Serializable,wt.analytics._AnalyticsManageableMaster,wt.analytics.AnalyticsManageableMaster,wt.analytics.compliance._ComplianceManageableMaster,wt.analytics.compliance.ComplianceManageableMaster,wt.analytics.cost._CostManageableMaster,wt.analytics.cost.CostManageableMaster,wt.aum._AlternateUnitAssignable,AlternateUnitAssignable,wt.build.BuildTargetMaster,wt.configuration._ConfiguredMaster,_SerialNumbered,wt.configuration._SerialNumberedConfiguredMaster,ConfiguredMaster,SerialNumbered,SerialNumberedConfiguredMaster,wt.eff._EffContext,wt.eff._ProductSolution,EffContext,ProductSolution,wt.esi._EnterpriseDataMastered,wt.esi._Releasable,wt.esi.EnterpriseDataMastered,Releasable,wt.fc._Identified,wt.fc._NetFactor,wt.fc._ObjectMappable,wt.fc._Persistable,wt.fc._UniquelyIdentified,wt.fc.BusinessInformation,Identified,NetFactor,ObjectMappable,Persistable,UniquelyIdentified,wt.federation._FederatedLinkHolder,wt.federation._RemotelyLinkable,wt.federation.FederatedLinkHolder,wt.federation.RemotelyLinkable,wt.generic._GenericizableMaster,wt.generic.GenericizableMaster,wt.iba.value._IBAHolder,wt.iba.value.IBAHolder,DisplayIdentification,wt.inf.container._WTContained,wt.inf.container._WTContainedIdentified,WTContained,WTContainedIdentified,wt.mpm._ConsumableResourceMaster,ConsumableResourceMaster,wt.mpm.resource._WTCompatibleMaster,wt.mpm.resource.WTCompatibleMaster,wt.mpm.routing._WCRoutableMaster,wt.mpm.routing._WCRouteHolderMaster,wt.mpm.routing.WCRoutableMaster,wt.mpm.routing.WCRouteHolderMaster,wt.objecttag._ObjectTagger,wt.objecttag.ObjectTagger,wt.occurrence._PathOccurrenceMasterContext,PathOccurrenceMasterContext,PathOwner,wt.option._IndependentAssignableContext,wt.option._OptionSetAssignable,wt.option.IndependentAssignableContext,OptionSetAssignable,_OrganizationOwned,_OrganizationOwnedImpl,wt.org._OrganizationOwnedMaster,wt.org.electronicIdentity._ElectronicallySignable,wt.org.electronicIdentity.ElectronicallySignable,OrganizationOwned,OrganizationOwnedImpl,OrganizationOwnedMaster,wt.part._Part,wt.part._PartMaster,wt.part.Part,wt.part.PartMaster,wt.projmgmt.deliverable._MasteredSubjectOfDeliverable,wt.projmgmt.deliverable._SubjectOfDeliverable,wt.projmgmt.deliverable.MasteredSubjectOfDeliverable,wt.projmgmt.deliverable.SubjectOfDeliverable,wt.recent.RecentlyVisited,wt.representation._RepresentableMaster,wt.representation._RepresentablesAndMasters,wt.representation.RepresentableMaster,wt.representation.RepresentablesAndMasters,wt.translate._MasterTranslatable,wt.translate._Translatable,wt.translate.MasterTranslatable,wt.translate.Translatable,wt.type._TypeManaged,wt.type.TypeManaged,wt.ufid._Federatable,wt.ufid.Federatable,wt.vc._Mastered,Mastered
- Direct Known Subclasses:
com.ptc.windchill.mpml.resource._MPMResourceMaster,_ProxyPartMaster
@GenAsPersistable(superClass=Master.class,interfaces={wt.translate.MasterTranslatable.class,wt.part.PartMaster.class,UniquelyIdentified.class,wt.iba.value.IBAHolder.class,ProductSolution.class,wt.ufid.Federatable.class,WTContained.class,OrganizationOwnedMaster.class,WTContainedIdentified.class,Releasable.class,wt.build.BuildTargetMaster.class,wt.representation.RepresentableMaster.class,EffContext.class,PathOccurrenceMasterContext.class,PathOwner.class,SerialNumberedConfiguredMaster.class,wt.generic.GenericizableMaster.class,AlternateUnitAssignable.class,wt.analytics.AnalyticsManageableMaster.class,wt.type.TypeManaged.class,OptionSetAssignable.class,wt.objecttag.ObjectTagger.class,wt.esi.EnterpriseDataMastered.class,wt.option.IndependentAssignableContext.class,wt.projmgmt.deliverable.MasteredSubjectOfDeliverable.class,ConsumableResourceMaster.class,wt.mpm.routing.WCRoutableMaster.class,wt.mpm.resource.WTCompatibleMaster.class},extendable=true,versions={6631538301462009371L,3731295112445243478L,6163764165180131279L},properties={@GeneratedProperty(name="number",type=java.lang.String.class,supportedAPI=PUBLIC,javaDoc="The number attribute represents the number for this part and all of its versions. Conceptually on the WTPart, it is actually implemented on the master.",constraints=@PropertyConstraints(stringCase=UPPER_CASE,changeable=VIA_OTHER_MEANS,upperLimit=40,required=true),columnProperties=@ColumnProperties(index=true,columnName="WTPartNumber")),@GeneratedProperty(name="name",type=java.lang.String.class,supportedAPI=PUBLIC,javaDoc="The name of the part -- the name a part is commonly refered to by, such as \"piston\".",constraints=@PropertyConstraints(changeable=VIA_OTHER_MEANS,upperLimit=60,required=true)),@GeneratedProperty(name="endItem",type=boolean.class,initialValue="false",supportedAPI=PUBLIC,javaDoc="Indicates if the part should be treated as an end item.",constraints=@PropertyConstraints(required=true),columnProperties=@ColumnProperties(index=true)),@GeneratedProperty(name="effPropagationStop",type=boolean.class,initialValue="true",supportedAPI=PUBLIC,javaDoc="Indicates if effectivity propagation should stop or continue through this part."),@GeneratedProperty(name="phantom",type=boolean.class,initialValue="false",supportedAPI=PUBLIC,javaDoc="A part is said to be a \'phantom\' part (for the purposes of MPMLink) when it is an assembly that is never actually assembled--in other words the parts used by a \'phantom\' part are placed directly into the assembly that uses the \'phantom\' part.",constraints=@PropertyConstraints(required=true),columnProperties=@ColumnProperties(defaultValue="0")),@GeneratedProperty(name="hidePartInStructure",type=java.lang.Boolean.class,initialValue="false",supportedAPI=PUBLIC,javaDoc="Flag to determine whether the part should be hidden in structure. Default value is false.",constraints=@PropertyConstraints(required=true),columnProperties=@ColumnProperties(defaultValue="0")),@GeneratedProperty(name="defaultUnit",type=QuantityUnit.class,initialValue="QuantityUnit.getQuantityUnitDefault()",supportedAPI=PUBLIC,javaDoc="The default unit of measurement assigned to the part when it is used in a structure.",constraints=@PropertyConstraints(upperLimit=30,required=true)),@GeneratedProperty(name="effCalculationStatus",type=EffectivityCalculationStatus.class,javaDoc="The status of the effectivity calculation process."),@GeneratedProperty(name="servicekit",type=java.lang.Boolean.class,initialValue="false",supportedAPI=PUBLIC,javaDoc="Flag to determine whether the part should be Service Kit. Default value is false.",columnProperties=@ColumnProperties(defaultValue="0")),@GeneratedProperty(name="serviceable",type=java.lang.Boolean.class,initialValue="true",supportedAPI=PUBLIC,javaDoc="Flag to determine whether the part should be Serviceable. Default value is true.",columnProperties=@ColumnProperties(defaultValue="1"))},tableProperties=@TableProperties(compositeIndex1="+UPPER(name)",compositeIndex2="+REVERSE(UPPER(name))",compositeIndex3="+REVERSE(WTPartNumber)",compositeIndex4="name+translationInfo.authoringLanguage+thePersistInfo.theObjectIdentifier.id",compositeIndex5="name",oracleTableSize=HUGE),iconProperties=@IconProperties(standardIcon="wtcore/images/part_master.gif",openIcon="wtcore/images/part_master.gif"))
public class WTPartMaster
extends _WTPartMaster
This reference implementation of a PartMaster represents the unchanging
aspects of a part, is managed by WTPartService and also has one or more
associated
WTParts which represent the various stages (versions
or iterations) of change for the changeable aspects of this part.
It has a name and number, the latter of which must be unique and it also
has a default unit of measure. Some of its version/iteration functionality
comes from being a Master.
Associations:
WTPartUsageLinklinks thisWTPartMasterto aWTPartthat uses thisWTPartMaster(actually uses one of thisWTPartMaster'sWTParts based on a config spec)WTPartSubstituteLinklinks thisWTPartMasterto aWTPartUsageLinkmaking it a replacement part for that particular usageWTPartAlternateLinklinks thisWTPartMasterto anotherWTPartMasterthat is a replacement part for any usage
Use the newWTPartMaster static factory method(s), not the
WTPartMaster 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: true
- See Also:
-
Field Summary
Fields inherited from class wt.part._WTPartMaster
DEFAULT_UNIT, EFF_CALCULATION_STATUS, EFF_PROPAGATION_STOP, END_ITEM, EXTERNALIZATION_VERSION_UID, HIDE_PART_IN_STRUCTURE, NAME, NUMBER, PHANTOM, SERVICEABLE, SERVICEKITFields inherited from class wt.enterprise.Master
OLD_FORMAT_VERSION_UIDFields inherited from class wt.fc._WTObject
CREATE_TIMESTAMP, MODIFY_TIMESTAMPFields inherited from interface wt.ufid._Federatable
FEDERATABLE_INFOFields inherited from interface wt.generic._GenericizableMaster
COLLAPSIBLE, GENERIC_TYPEFields inherited from interface wt.iba.value._IBAHolder
ATTRIBUTE_CONTAINERFields inherited from interface wt.vc._Mastered
SERIESFields inherited from interface wt.org._OrganizationOwned
ORGANIZATION_CODING_SYSTEM, ORGANIZATION_NAME, ORGANIZATION_UNIQUE_IDENTIFIERFields inherited from interface wt.org._OrganizationOwnedImpl
ORGANIZATION_REFERENCEFields inherited from interface wt.fc._Persistable
PERSIST_INFOFields inherited from interface wt.configuration._SerialNumbered
DEFAULT_TRACE_CODEFields inherited from interface wt.translate._Translatable
TRANSLATION_INFOFields inherited from interface wt.inf.container._WTContained
CONTAINER, CONTAINER_NAME, CONTAINER_REFERENCEFields inherited from interface wt.fc.BusinessInformation
BUSINESS_TYPE, IDENTITYFields inherited from interface wt.identity.DisplayIdentification
DISPLAY_IDENTIFIER, DISPLAY_IDENTITY, DISPLAY_TYPEFields inherited from interface wt.org.OrganizationOwned
ORGANIZATIONFields inherited from interface wt.fc.Persistable
IDENTITY, TYPEFields inherited from interface wt.projmgmt.deliverable.SubjectOfDeliverable
loggerFields inherited from interface wt.inf.container.WTContained
CONTAINER_ID -
Method Summary
Modifier and TypeMethodDescriptionConstructs and returns an identification object.Returns the number and name of the part master in the form "- ". Gets the value of the attribute: ORGANIZATION.Gets the value of the attribute: ORGANIZATION_UNIQUE_IDENTIFIER.voidsetOrganization(WTOrganization a_Organization) Sets the value of the attribute: ORGANIZATION.Methods inherited from class wt.part._WTPartMaster
getAttributeContainer, getClassInfo, getConceptualClassname, getContainer, getContainerName, getContainerReference, getDefaultTraceCode, getDefaultUnit, getEffCalculationStatus, getFederatableInfo, getGenericType, getHidePartInStructure, getName, getNumber, getOrganizationCodingSystem, getOrganizationName, getOrganizationReference, getServiceable, getServicekit, getType, isCollapsible, isEffPropagationStop, isEndItem, isPhantom, readExternal, readExternal, readVersion, setAttributeContainer, setCollapsible, setContainer, setContainerReference, setDefaultTraceCode, setDefaultUnit, setEffCalculationStatus, setEffPropagationStop, setEndItem, setFederatableInfo, setGenericType, setHidePartInStructure, setName, setNumber, setOrganizationReference, setPhantom, setServiceable, setServicekit, super_readExternal_WTPartMaster, super_readVersion_WTPartMaster, super_writeExternal_WTPartMaster, writeExternal, writeExternalMethods inherited from class wt.enterprise.Master
getBusinessType, setSeriesMethods inherited from class wt.enterprise._Master
getSeries, readVersion, super_readExternal_Master, super_readVersion_Master, super_writeExternal_MasterMethods inherited from class wt.fc.WTObject
duplicate, getDisplayIdentifier, getDisplayIdentity, getDisplayType, initialize, toStringMethods inherited from class wt.fc._WTObject
equals, getCreateTimestamp, getModifyTimestamp, getPersistInfo, hashCode, readVersion, setPersistInfoMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface wt.vc._Mastered
getSeries, setSeriesMethods inherited from interface wt.fc._Persistable
getPersistInfo, setPersistInfo
-
Method Details
-
getIdentity
Returns the number and name of the part master in the form "- ".
Supported API: true- Specified by:
getIdentityin interfacewt.fc.BusinessInformation- Specified by:
getIdentityin interfacePersistable- Overrides:
getIdentityin classMaster- Returns:
- String
-
getIdentificationObject
Constructs and returns an identification object. This method is the only way to obtain an identification object.
Supported API: true- Returns:
- IdentificationObject
- Throws:
WTException- See Also:
-
getOrganizationUniqueIdentifier
Gets the value of the attribute: ORGANIZATION_UNIQUE_IDENTIFIER. The getter for this attribute delivers organization unique identifier.
Supported API: true- Specified by:
getOrganizationUniqueIdentifierin interface_OrganizationOwned- Overrides:
getOrganizationUniqueIdentifierin class_WTPartMaster- Returns:
- String
- See Also:
-
getOrganization
Gets the value of the attribute: ORGANIZATION.
Supported API: true- Returns:
- WTOrganization
-
setOrganization
Sets the value of the attribute: ORGANIZATION.
Supported API: true- Parameters:
a_Organization-- Throws:
WTPropertyVetoException
-