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
MFG_CAGE_CODE, ORGANIZATION, ORGANIZATION_REFERENCE, PRODUCT_DEFAULT_UNIT, PRODUCT_NAME, PRODUCT_NUMBERFields inherited from interface wt.vc._Iterated
CONTROL_BRANCH, CREATOR_EMAIL, CREATOR_FULL_NAME, CREATOR_NAME, ITERATION_IDENTIFIER, ITERATION_NOTE, LATEST_ITERATION, MASTER, MASTER_REFERENCE, MODIFIER, MODIFIER_EMAIL, MODIFIER_FULL_NAME, MODIFIER_NAMEFields inherited from interface wt.lifecycle._LifeCycleManaged
LIFE_CYCLE_STATE, STATEFields inherited from interface wt.org._OrganizationOwned
ORGANIZATION_CODING_SYSTEM, ORGANIZATION_NAME, ORGANIZATION_UNIQUE_IDENTIFIERFields inherited from interface wt.configuration._SerialNumberedInstanceImpl
CONFIGURATION, CONFIGURATION_REFERENCEFields inherited from interface wt.configuration._SerialNumberedInstanceVersion
INCORPORATED, LOT_NUMBER, PLANNED_INCORPORATION, SERIAL_NUMBERFields inherited from interface wt.vc.sessioniteration._SessionEditedIteration
SESSION_OWNERFields inherited from interface wt.team._TeamManaged
TEAM_ID, TEAM_TEMPLATE_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
getConfiguration, getConfigurationReference, getControlBranch, getCreatorEMail, getCreatorFullName, getCreatorName, getIncorporated, getIterationIdentifier, getIterationNote, getLifeCycleState, getMaster, getMasterReference, getModifier, getModifierEMail, getModifierFullName, getModifierName, getOrganizationCodingSystem, getOrganizationName, getOrganizationUniqueIdentifier, getPlannedIncorporation, getSessionOwner, getState, getTeamId, getTeamTemplateId, isLatestIteration, setConfiguration, setConfigurationReference, setIncorporated, setMaster, setMasterReference, setPlannedIncorporation, setSessionOwnerMethods inherited from class wt.fc.WTObject
getDisplayIdentifier, getDisplayIdentity, getDisplayTypeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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 A&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 A&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
-