Package wt.part
Class WTProductInstanceMaster
java.lang.Object
wt.fc._WTObject
wt.fc.WTObject
wt.part._WTProductInstanceMaster
wt.part.WTProductInstanceMaster
- All Implemented Interfaces:
Externalizable,Serializable,wt.configuration._SerialNumberedConfiguredInstanceMaster,_SerialNumberedInstanceIfc,wt.configuration._SerialNumberedInstanceMaster,SerialNumberedConfiguredInstanceMaster,SerialNumberedInstanceIfc,SerialNumberedInstanceMaster,wt.fc._NetFactor,wt.fc._ObjectMappable,wt.fc._Persistable,NetFactor,ObjectMappable,Persistable,DisplayIdentification,wt.inf.container._WTContained,WTContained,wt.occurrence._PathOccurrenceMasterContext,PathOccurrenceMasterContext,_OrganizationOwned,OrganizationOwned,wt.recent.RecentlyVisited,wt.vc._Mastered,Mastered
@GenAsPersistable(superClass=WTObject.class,interfaces={SerialNumberedConfiguredInstanceMaster.class,WTContained.class,OrganizationOwned.class},versions=-5233559674472269582L,properties=@GeneratedProperty(name="mfgCageCode",type=WTPrincipalReference.class,supportedAPI=PUBLIC,javaDoc="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)."),foreignKeys=@GeneratedForeignKey(name="ProductProductInstance",foreignKeyRole=@ForeignKeyRole(name="instanceOf",type=WTPartMaster.class,supportedAPI=PUBLIC,cascade=false,autoNavigate=false,constraints=@PropertyConstraints(required=true)),myRole=@MyRole(name="instance",cascade=false)),derivedProperties={@DerivedProperty(name="productNumber",derivedFrom="instanceOf>number",supportedAPI=PUBLIC,accessors=@PropertyAccessors(setAccess=PRIVATE)),@DerivedProperty(name="productName",derivedFrom="instanceOf>name",supportedAPI=PUBLIC,accessors=@PropertyAccessors(setAccess=PRIVATE)),@DerivedProperty(name="productDefaultUnit",derivedFrom="instanceOf>defaultUnit",supportedAPI=PUBLIC,accessors=@PropertyAccessors(setAccess=PRIVATE)),@DerivedProperty(name="organizationReference",derivedFrom="instanceOf>organizationReference",supportedAPI=PUBLIC,accessors=@PropertyAccessors(setAccess=PRIVATE)),@DerivedProperty(name="organization",derivedFrom="instanceOf>organization",type=WTOrganization.class,supportedAPI=PUBLIC,getBody="try { return ((wt.part.WTPartMaster) getInstanceOf()).getOrganization(); } catch (java.lang.NullPointerException npe) { return null; }",accessors=@PropertyAccessors(setAccess=PRIVATE))},iconProperties=@IconProperties(standardIcon="wtcore/images/prod_inst_master.gif",openIcon="wtcore/images/prod_inst_master.gif"))
public class WTProductInstanceMaster
extends _WTProductInstanceMaster
Use the newWTProductInstanceMaster static factory method(s),
not the WTProductInstanceMaster 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._WTProductInstanceMaster
MFG_CAGE_CODE, ORGANIZATION, ORGANIZATION_REFERENCE, PRODUCT_DEFAULT_UNIT, PRODUCT_NAME, PRODUCT_NUMBERFields inherited from interface wt.org._OrganizationOwned
ORGANIZATION_CODING_SYSTEM, ORGANIZATION_NAME, ORGANIZATION_UNIQUE_IDENTIFIERFields inherited from interface wt.configuration._SerialNumberedInstanceIfc
INSTANCE_OF, INSTANCE_OF_REFERENCE, LOT_NUMBER, SERIAL_NUMBER -
Method Summary
Modifier and TypeMethodDescriptionGets 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.voidsetOrganization(WTOrganization a_Organization) Sets the value of the attribute: ORGANIZATION.voidsetOrganizationReference(WTPrincipalReference a_OrganizationReference) Sets the value of the attribute: ORGANIZATION_REFERENCE.Methods inherited from class wt.part._WTProductInstanceMaster
getInstanceOf, getInstanceOfReference, getLotNumber, getMfgCageCode, getOrganizationCodingSystem, getOrganizationName, getOrganizationUniqueIdentifier, getSerialNumber, setInstanceOf, setInstanceOfReference, setLotNumber, setMfgCageCode, setSerialNumberMethods 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_WTProductInstanceMaster- 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_WTProductInstanceMaster- 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_WTProductInstanceMaster- 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_WTProductInstanceMaster- 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_WTProductInstanceMaster- Returns:
- WTOrganization
- See Also:
-
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
-