Package wt.part
Class WTProductInstance2
java.lang.Object
wt.fc._WTObject
wt.fc.WTObject
wt.part._WTProductInstance2
wt.part.WTProductInstance2
- All Implemented Interfaces:
Externalizable,Serializable,wt.access._AccessControlled,wt.access._AccessControlList,wt.access._AdHocControlled,wt.access._PolicyAccessControlled,wt.access._SecurityLabeled,AccessControlled,wt.access.AccessControlList,AdHocControlled,wt.access.PolicyAccessControlled,SecurityLabeled,wt.admin._DomainAdministered,DomainAdministered,wt.change2._Changeable2,wt.change2._ChangeableIfc,Changeable2,ChangeableIfc,wt.configuration._SerialNumberedConfiguredInstanceVersion,_SerialNumberedInstanceImpl,_SerialNumberedInstanceVersion,SerialNumberedConfiguredInstanceVersion,SerialNumberedInstanceImpl,SerialNumberedInstanceVersion,wt.facade.persistedcollection._PersistedCollectable,PersistedCollectable,wt.fc._NetFactor,wt.fc._ObjectMappable,wt.fc._Persistable,wt.fc.adminlock._AdministrativelyLockable,AdministrativelyLockable,NetFactor,ObjectMappable,Persistable,wt.iba.value._IBAHolder,wt.iba.value.IBAHolder,DisplayIdentification,wt.index._Indexable,Indexable,wt.inf.container._WTContained,WTContained,wt.lifecycle._IteratedLifeCycleManaged,_LifeCycleManaged,IteratedLifeCycleManaged,LifeCycleManaged,wt.maturity._Promotable,Promotable,wt.notify._Notifiable,Notifiable,wt.occurrence._PathOccurrenceContext,PathOccurrenceContext,_OrganizationOwned,wt.org.electronicIdentity._ElectronicallySignable,wt.org.electronicIdentity.ElectronicallySignable,OrganizationOwned,wt.part._WTProductInstance2TypeInterface,wt.part.WTProductInstance2TypeInterface,wt.recent.RecentlyVisited,_TeamManaged,TeamManaged,wt.type._Typed,wt.type._TypeManaged,wt.type.FlexTyped,wt.type.Typed,wt.type.TypeManaged,_Iterated,wt.vc._Versionable,wt.vc._Versioned,wt.vc.baseline._Baselineable,Baselineable,Iterated,_SessionEditedIteration,SessionEditedIteration,Versionable,Versioned,wt.viewmarkup._Viewable,wt.viewmarkup.Viewable,wt.workflow.forum._IteratedSubjectOfForum,wt.workflow.forum._SubjectOfForum,wt.workflow.forum.IteratedSubjectOfForum,SubjectOfForum,wt.workflow.notebook._IteratedSubjectOfNotebook,wt.workflow.notebook._SubjectOfNotebook,wt.workflow.notebook.IteratedSubjectOfNotebook,wt.workflow.notebook.SubjectOfNotebook
@GenAsPersistable(superClass=WTObject.class,interfaces={SerialNumberedConfiguredInstanceVersion.class,Changeable2.class,Indexable.class,IteratedLifeCycleManaged.class,Notifiable.class,SessionEditedIteration.class,wt.org.electronicIdentity.ElectronicallySignable.class,Versioned.class,wt.type.Typed.class,WTContained.class,wt.viewmarkup.Viewable.class,OrganizationOwned.class,Promotable.class,DomainAdministered.class,wt.workflow.notebook.IteratedSubjectOfNotebook.class,wt.workflow.forum.IteratedSubjectOfForum.class,PersistedCollectable.class,wt.part.WTProductInstance2TypeInterface.class},versions={7504311446815760489L,-6991023990339776343L,80599034271733757L},foreignKeys={@GeneratedForeignKey(name="ProductInstanceMasterProductInstance",foreignKeyRole=@ForeignKeyRole(name="master",type=WTProductInstanceMaster.class,supportedAPI=PUBLIC,cascade=false,constraints=@PropertyConstraints(required=true)),myRole=@MyRole(name="iteration",supportedAPI=PUBLIC,cascade=false)),@GeneratedForeignKey(name="ProductInstanceConfiguration",foreignKeyRole=@ForeignKeyRole(name="configuration",type=WTProductConfiguration.class,supportedAPI=PUBLIC,cascade=false,constraints=@PropertyConstraints(required=false)),myRole=@MyRole(name="instance",cascade=false))},derivedProperties={@DerivedProperty(name="productNumber",derivedFrom="master>instanceOf>number",supportedAPI=PUBLIC,accessors=@PropertyAccessors(setAccess=PRIVATE)),@DerivedProperty(name="productName",derivedFrom="master>instanceOf>name",supportedAPI=PUBLIC,accessors=@PropertyAccessors(setAccess=PRIVATE)),@DerivedProperty(name="productDefaultUnit",derivedFrom="master>instanceOf>defaultUnit",supportedAPI=PUBLIC,accessors=@PropertyAccessors(setAccess=PRIVATE)),@DerivedProperty(name="configurationName",derivedFrom="configuration>adHocStringIdentifier"),@DerivedProperty(name="organizationReference",derivedFrom="master>instanceOf>organizationReference",supportedAPI=PUBLIC,accessors=@PropertyAccessors(setAccess=PRIVATE)),@DerivedProperty(name="organization",derivedFrom="master>instanceOf>organization",type=WTOrganization.class,supportedAPI=PUBLIC,getBody="try { return ((wt.part.WTProductInstanceMaster) getMaster()).getOrganization(); } catch (java.lang.NullPointerException npe) { return null; }",accessors=@PropertyAccessors(setAccess=PRIVATE)),@DerivedProperty(name="mfgCageCode",derivedFrom="master>mfgCageCode",supportedAPI=PUBLIC)},tableProperties=@TableProperties(compositeUnique1="masterReference.key.id+versionInfo.identifier.versionId+iterationInfo.identifier.iterationId+sessionOwner.key.id"),iconProperties=@IconProperties(standardIcon="wtcore/images/prod_inst.gif",openIcon="wtcore/images/prod_inst.gif"))
public class WTProductInstance2
extends _WTProductInstance2
Use the newWTProductInstance2 static factory method(s),
not the WTProductInstance2 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:
-
Field Summary
Fields inherited from class wt.part._WTProductInstance2
CONFIGURATION_NAME, EXTERNALIZATION_VERSION_UID, MFG_CAGE_CODE, ORGANIZATION, ORGANIZATION_REFERENCE, PRODUCT_DEFAULT_UNIT, PRODUCT_NAME, PRODUCT_NUMBERFields inherited from class wt.fc._WTObject
CREATE_TIMESTAMP, MODIFY_TIMESTAMPFields inherited from interface wt.access._AdHocControlled
ENTRY_SETFields inherited from interface wt.fc.adminlock._AdministrativelyLockable
ADMINISTRATIVE_LOCKFields inherited from interface wt.change2._Changeable2
HAS_HANGING_CHANGE, HAS_PENDING_CHANGE, HAS_RESULTING_CHANGE, HAS_SUSPECT, HAS_VARIANCEFields inherited from interface wt.admin._DomainAdministered
DOMAIN_REF, INHERITED_DOMAINFields inherited from interface wt.iba.value._IBAHolder
ATTRIBUTE_CONTAINERFields inherited from interface wt.index._Indexable
INDEXER_SETFields 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, MASTER, MASTER_REFERENCE, MODIFIER, MODIFIER_EMAIL, MODIFIER_FULL_NAME, MODIFIER_NAMEFields inherited from interface wt.lifecycle._LifeCycleManaged
LIFE_CYCLE_AT_GATE, LIFE_CYCLE_BASIC, LIFE_CYCLE_NAME, LIFE_CYCLE_STATE, LIFE_CYCLE_TEMPLATE, STATEFields inherited from interface wt.notify._Notifiable
EVENT_SETFields inherited from interface wt.org._OrganizationOwned
ORGANIZATION_CODING_SYSTEM, ORGANIZATION_NAME, ORGANIZATION_UNIQUE_IDENTIFIERFields inherited from interface wt.fc._Persistable
PERSIST_INFOFields inherited from interface wt.access._SecurityLabeled
SECURITY_LABELSFields inherited from interface wt.configuration._SerialNumberedInstanceImpl
CONFIGURATION, CONFIGURATION_REFERENCEFields inherited from interface wt.configuration._SerialNumberedInstanceVersion
INCORPORATED, LOT_NUMBER, PLANNED_INCORPORATION, SERIAL_NUMBER, UN_INCORPORATEDFields inherited from interface wt.vc.sessioniteration._SessionEditedIteration
SESSION_OWNERFields inherited from interface wt.team._TeamManaged
TEAM_ID, TEAM_IDENTITY, TEAM_NAME, TEAM_TEMPLATE_ID, TEAM_TEMPLATE_IDENTITY, TEAM_TEMPLATE_NAMEFields inherited from interface wt.type._Typed
TYPE_DEFINITION_REFERENCEFields inherited from interface wt.vc._Versioned
VERSION_IDENTIFIER, VERSION_INFOFields inherited from interface wt.inf.container._WTContained
CONTAINER, CONTAINER_NAME, CONTAINER_REFERENCEFields inherited from interface wt.part._WTProductInstance2TypeInterface
TYPE_INFO_WTPRODUCT_INSTANCE2Fields inherited from interface wt.identity.DisplayIdentification
DISPLAY_IDENTIFIER, DISPLAY_IDENTITY, DISPLAY_TYPEFields inherited from interface wt.fc.Persistable
IDENTITY, TYPEFields inherited from interface wt.access.SecurityLabeled
SECURITY_LABELS_INTERNAL_VALUEFields inherited from interface wt.vc.Versioned
MASTER_SERIESFields inherited from interface wt.inf.container.WTContained
CONTAINER_ID -
Method Summary
Modifier and TypeMethodDescriptionGets the value of the attribute: INCORPORATED_AS_STRING.Gets the value of the attribute: LOT_NUMBER.Gets the value of the attribute: MFG_CAGE_CODE.Gets the value of the attribute: ORGANIZATION.Gets the value of the attribute: ORGANIZATION_REFERENCE.Gets the value of the attribute: PRODUCT_DEFAULT_UNIT.Gets the value of the attribute: PRODUCT_NAME.Gets the value of the attribute: PRODUCT_NUMBER.Gets the value of the attribute: SERIAL_NUMBER.static WTProductInstance2newWTProductInstance2(WTPartMaster instanceOf) Static factory method to create and initialize a new WTProductInstance2 for the given WTPartMaster.static WTProductInstance2newWTProductInstance2(WTPartMaster instanceOf, String serialNumber) Static factory method to create and initialize a new WTProductInstance2 for the given WTPartMaster with the given serial number.static WTProductInstance2newWTProductInstance2(WTPartMaster instanceOf, String serialNumber, WTProductConfiguration configuration) Static factory method to create and initialize a new WTProductInstance2 for the given serial number and WTProductConfiguration.static WTProductInstance2newWTProductInstance2(WTProductConfiguration configuration) Static factory method to create and initialize a new WTProductInstance2 for the given WTProductConfiguration.voidsetLotNumber(String a_LotNumber) Sets the value of the attribute: LOT_NUMBER.voidsetMfgCageCode(WTPrincipalReference a_MfgCageCode) Sets the value of the attribute: MFG_CAGE_CODE.voidsetOrganization(WTOrganization a_Organization) Sets the value of the attribute: ORGANIZATION.voidsetOrganizationReference(WTPrincipalReference a_OrganizationReference) Sets the value of the attribute: ORGANIZATION_REFERENCE.voidsetSerialNumber(String a_SerialNumber) Sets the value of the attribute: SERIAL_NUMBER.Methods inherited from class wt.part._WTProductInstance2
getAdministrativeLock, getAttributeContainer, getBranchIdentifier, getClassInfo, getConceptualClassname, getConfiguration, getConfigurationReference, getContainer, getContainerName, getContainerReference, getControlBranch, getCreatorEMail, getCreatorFullName, getCreatorName, getDomainRef, getEntrySet, getEventSet, getIncorporated, getIndexerSet, getIterationIdentifier, getIterationInfo, getIterationNote, getLifeCycleName, getLifeCycleState, getLifeCycleTemplate, getMaster, getMasterReference, getModifier, getModifierEMail, getModifierFullName, getModifierName, getOrganizationCodingSystem, getOrganizationName, getOrganizationUniqueIdentifier, getPlannedIncorporation, getSecurityLabels, getSessionOwner, getState, getTeamId, getTeamIdentity, getTeamName, getTeamTemplateId, getTeamTemplateIdentity, getTeamTemplateName, getType, getTypeDefinitionReference, getTypeInfoWTProductInstance2, getUnIncorporated, getVersionInfo, isHasHangingChange, isHasPendingChange, isHasResultingChange, isHasSuspect, isHasVariance, isInheritedDomain, isLatestIteration, isLifeCycleAtGate, isLifeCycleBasic, readExternal, readExternal, readVersion, setAdministrativeLock, setAttributeContainer, setConfiguration, setConfigurationReference, setContainer, setContainerReference, setControlBranch, setDomainRef, setEntrySet, setEventSet, setHasHangingChange, setHasPendingChange, setHasResultingChange, setHasSuspect, setHasVariance, setIncorporated, setIndexerSet, setInheritedDomain, setIterationInfo, setMaster, setMasterReference, setPlannedIncorporation, setSecurityLabels, setSessionOwner, setState, setTeamId, setTeamTemplateId, setTypeDefinitionReference, setTypeInfoWTProductInstance2, setUnIncorporated, setVersionInfo, super_readExternal_WTProductInstance2, super_readVersion_WTProductInstance2, super_writeExternal_WTProductInstance2, writeExternal, writeExternalMethods inherited from class wt.fc.WTObject
checkAttributes, 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.fc._Persistable
getPersistInfo, setPersistInfoMethods inherited from interface wt.fc.Persistable
checkAttributes
-
Method Details
-
getProductNumber
Gets the value of the attribute: PRODUCT_NUMBER. 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.
Supported API: true- Overrides:
getProductNumberin class_WTProductInstance2- Returns:
- String
- See Also:
-
getProductName
Gets the value of the attribute: PRODUCT_NAME. The name of the part -- the name a part is commonly refered to by, such as "piston".
Supported API: true- Overrides:
getProductNamein class_WTProductInstance2- Returns:
- String
- See Also:
-
getProductDefaultUnit
Gets the value of the attribute: PRODUCT_DEFAULT_UNIT. The name of the part -- the name a part is commonly refered to by, such as "piston".
Supported API: true- Overrides:
getProductDefaultUnitin class_WTProductInstance2- Returns:
- QuantityUnit
- See Also:
-
getOrganizationReference
Gets the value of the attribute: ORGANIZATION_REFERENCE. The organizationReference attribute represents the reference to organization for the part. Conceptually on the WTPart, it is actually implemented on the master.
Supported API: true- Specified by:
getOrganizationReferencein interfaceOrganizationOwned- Overrides:
getOrganizationReferencein class_WTProductInstance2- Returns:
- WTPrincipalReference
- See Also:
-
getOrganization
Gets the value of the attribute: ORGANIZATION. The organization attribute represents the organization for the part. Conceptually on the WTPart, it is actually implemented on the master.
Supported API: true- Specified by:
getOrganizationin interfaceOrganizationOwned- Overrides:
getOrganizationin class_WTProductInstance2- Returns:
- WTOrganization
- See Also:
-
getMfgCageCode
Gets the value of the attribute: MFG_CAGE_CODE. The mfgCageCode attribute represents the reference to the manufacturing organization for the part instance. Used to indicate the Manufacturing ID for the company that manufactured the part instance. Conceptually on the part instance, it is actually implemented on the master. Needs to be called mfgCageCode(because it has migration implications for the Windchill Ainvalid input: '&D' module)
Supported API: true- Overrides:
getMfgCageCodein class_WTProductInstance2- Returns:
- WTPrincipalReference
- See Also:
-
setMfgCageCode
Sets the value of the attribute: MFG_CAGE_CODE. The mfgCageCode attribute represents the reference to the manufacturing organization for the part instance. Used to indicate the Manufacturing ID for the company that manufactured the part instance. Conceptually on the part instance, it is actually implemented on the master. Needs to be called mfgCageCode(because it has migration implications for the Windchill Ainvalid input: '&D' module)
Supported API: true- Overrides:
setMfgCageCodein class_WTProductInstance2- Parameters:
a_MfgCageCode-- Throws:
WTPropertyVetoException- See Also:
-
newWTProductInstance2
public static WTProductInstance2 newWTProductInstance2(WTPartMaster instanceOf, String serialNumber) throws WTException Static factory method to create and initialize a new WTProductInstance2 for the given WTPartMaster with the given serial number.
Supported API: true- Parameters:
instanceOf-serialNumber-- Returns:
- WTProductInstance2
- Throws:
WTException
-
newWTProductInstance2
public static WTProductInstance2 newWTProductInstance2(WTPartMaster instanceOf, String serialNumber, WTProductConfiguration configuration) throws WTException Static factory method to create and initialize a new WTProductInstance2 for the given serial number and WTProductConfiguration.
Supported API: true- Parameters:
instanceOf-serialNumber-configuration-- Returns:
- WTProductInstance2
- Throws:
WTException
-
getSerialNumber
Gets the value of the attribute: SERIAL_NUMBER. The serial number of the master.
Supported API: true- Specified by:
getSerialNumberin interface_SerialNumberedInstanceVersion- Specified by:
getSerialNumberin interfaceSerialNumberedInstanceImpl- Overrides:
getSerialNumberin class_WTProductInstance2- Returns:
- String
- See Also:
-
setSerialNumber
Sets the value of the attribute: SERIAL_NUMBER. The serial number of the master.
Supported API: true- Specified by:
setSerialNumberin interface_SerialNumberedInstanceVersion- Specified by:
setSerialNumberin interfaceSerialNumberedInstanceImpl- Overrides:
setSerialNumberin class_WTProductInstance2- Parameters:
a_SerialNumber-- Throws:
WTPropertyVetoException- See Also:
-
getLotNumber
Gets the value of the attribute: LOT_NUMBER. The serial number of the master.
Supported API: true- Specified by:
getLotNumberin interface_SerialNumberedInstanceVersion- Specified by:
getLotNumberin interfaceSerialNumberedInstanceImpl- Overrides:
getLotNumberin class_WTProductInstance2- Returns:
- String
- See Also:
-
setLotNumber
Sets the value of the attribute: LOT_NUMBER. The serial number of the master.
Supported API: true- Specified by:
setLotNumberin interface_SerialNumberedInstanceVersion- Specified by:
setLotNumberin interfaceSerialNumberedInstanceImpl- Overrides:
setLotNumberin class_WTProductInstance2- Parameters:
a_LotNumber-- Throws:
WTPropertyVetoException- See Also:
-
getIncorporatedAsString
Gets the value of the attribute: INCORPORATED_AS_STRING. When a successor version is incorporated, its predecessor's incorporation is effectively ended. This attribute displays the incorporation as this range, so it's easier for a user to determine the actual date range this version was incorporated. If Rev A were incorporated at time X and Rev B at time Y, this attribute would return X-Y for Rev A and Y- for Rev B.
Supported API: true- Returns:
- String
-
setOrganizationReference
public void setOrganizationReference(WTPrincipalReference a_OrganizationReference) throws WTPropertyVetoException Sets the value of the attribute: ORGANIZATION_REFERENCE.
Supported API: true- Parameters:
a_OrganizationReference-- Throws:
WTPropertyVetoException
-
setOrganization
Sets the value of the attribute: ORGANIZATION.
Supported API: true- Parameters:
a_Organization-- Throws:
WTPropertyVetoException
-
newWTProductInstance2
Static factory method to create and initialize a new WTProductInstance2 for the given WTPartMaster.
Supported API: true- Returns:
- WTProductInstance2
- Throws:
WTException
-
newWTProductInstance2
public static WTProductInstance2 newWTProductInstance2(WTProductConfiguration configuration) throws WTException Static factory method to create and initialize a new WTProductInstance2 for the given WTProductConfiguration.
Supported API: true- Returns:
- WTProductInstance2
- Throws:
WTException
-