Package wt.part
Class WTPartUsageLink
java.lang.Object
wt.fc._WTObject
wt.fc.WTObject
wt.fc._ObjectToObjectLink
- All Implemented Interfaces:
com.ptc.core.meta.type.mgmt.server.impl.association._AssociationConstrainable,com.ptc.core.meta.type.mgmt.server.impl.association.AssociationConstrainable,Externalizable,Serializable,AssociativeUsageLink,UsageLink,wt.build._BuildableLink,wt.build._BuildableObject,wt.build.BuildableLink,wt.build.BuildableObject,_TraceableLink,TraceableLink,wt.eff._CalculatedEffRecordable,wt.eff._EffRecordable,CalculatedEffRecordable,EffRecordable,wt.esi._Releasable,Releasable,wt.fc._BinaryLink,wt.fc._Link,wt.fc._NetFactor,wt.fc._ObjectMappable,wt.fc._Persistable,wt.fc.archive._Archiveable,wt.fc.archive.Archiveable,BinaryLink,Link,NetFactor,ObjectMappable,Persistable,wt.federation._FederatedLinkHolder,wt.federation._RemotelyLinkable,wt.federation.FederatedLinkHolder,wt.federation.RemotelyLinkable,_Filterable,Filterable,wt.generic._GenericizableLink,wt.generic._GenericizableUsageLink,wt.generic.GenericizableLink,wt.generic.GenericizableUsageLink,wt.iba.value._IBAHolder,wt.iba.value.IBAHolder,DisplayIdentification,_OccurrenceableLink,OccurrenceableLink,wt.option._ChoiceMappable,wt.option._Expressionable,wt.option._ExpressionAssignable,wt.option._IndependentExpressionAssignable,ChoiceMappable,Expressionable,ExpressionAssignable,wt.option.IndependentExpressionAssignable,wt.part._WTPartUsageLinkTypeInterface,wt.part.WTPartUsageLinkTypeInterface,wt.type._Typed,wt.type._TypeManaged,wt.type.FlexTyped,wt.type.Typed,wt.type.TypeManaged,wt.ufid._Federatable,wt.ufid.Federatable
@GenAsBinaryLink(superClass=IteratedUsageLink.class,interfaces={wt.build.BuildableLink.class,OccurrenceableLink.class,wt.fc.archive.Archiveable.class,wt.type.Typed.class,TraceableLink.class,wt.generic.GenericizableUsageLink.class,com.ptc.core.meta.type.mgmt.server.impl.association.AssociationConstrainable.class,CalculatedEffRecordable.class,wt.part.WTPartUsageLinkTypeInterface.class,AssociativeUsageLink.class,wt.option.IndependentExpressionAssignable.class,Releasable.class},versions={-5258375536568013444L,-3904633429282997199L,-3904633429282997199L},properties={@GeneratedProperty(name="findNumber",type=java.lang.String.class),@GeneratedProperty(name="cadSynchronized",type=SyncedWithCADStatus.class,initialValue="SyncedWithCADStatus.getSyncedWithCADStatusDefault()",supportedAPI=PUBLIC,columnProperties=@ColumnProperties(defaultValue="no")),@GeneratedProperty(name="quantity",type=Quantity.class,supportedAPI=PUBLIC,accessors=@PropertyAccessors(setExceptions={}),constraints=@PropertyConstraints(required=true)),@GeneratedProperty(name="lineNumber",type=LineNumber.class,supportedAPI=PUBLIC),@GeneratedProperty(name="allocationType",type=OperationAllocationType.class,supportedAPI=PUBLIC)},roleA=@GeneratedRole(name="usedBy",type=WTPart.class,supportedAPI=PUBLIC,cardinality=ONE_TO_MANY),roleB=@GeneratedRole(name="uses",type=WTPartMaster.class,supportedAPI=PUBLIC,cardinality=ONE_TO_MANY,owner=false),tableProperties=@TableProperties(compositeUnique1="+ roleAObjectRef.key.id+NVL(lineNumber.value,idA2A2)",compositeUnique2="+ roleAObjectRef.key.id+NVL(componentId,idA2A2)",compositeUnique3="+ roleAObjectRef.key.id + NVL(reference, idA2A2)",tableName="WTPartUsageLink",oracleTableSize=HUGE))
public class WTPartUsageLink
extends _WTPartUsageLink
This is an
IteratedUsageLink where a specific WTPart uses a WTPartMaster (actually it will use one of the
WTParts associated with the WTPartMaster based
on a config spec) and the part uses a specific Quantity (with
unit of measure) of the part master as a component of its structure.
For example to build a car there are 4 tires for each car built. For a hammock there might be 2 end ropes that are three feet long.
Note that since the link is between a WTPart and a WTPartMaster
it will be necessary to use a config spec (usually WTPartConfigSpec)
to select the correct version of the WTPartMaster, which
is a WTPart.
Use the newWTPartUsageLink static factory method(s), not
the WTPartUsageLink 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._WTPartUsageLink
ALLOCATION_TYPE, BUILD_TARGET_ROLE, CAD_SYNCHRONIZED, EXTERNALIZATION_VERSION_UID, FIND_NUMBER, LINE_NUMBER, PERSISTABLE_ROLE, QUANTITYFields inherited from class wt.vc.struct._IteratedUsageLink
USED_BY_ROLE, USES_ROLEFields inherited from class wt.fc._ObjectToObjectLink
ROLE_AOBJECT_REF, ROLE_BOBJECT_REFFields inherited from class wt.fc._WTObject
CREATE_TIMESTAMP, MODIFY_TIMESTAMPFields inherited from interface wt.fc._BinaryLink
ROLE_AOBJECT_ROLE, ROLE_BOBJECT_ROLEFields inherited from interface wt.build._BuildableObject
SOURCE_IDENTIFICATIONFields inherited from interface wt.eff._EffRecordable
EFF_VECTORFields inherited from interface wt.option._Expressionable
EXPRESSION_DATAFields inherited from interface wt.ufid._Federatable
FEDERATABLE_INFOFields inherited from interface wt.filter._Filterable
FILTERED_STATUSFields inherited from interface wt.generic._GenericizableLink
GENERICIZABLE_MASTER_ROLE, GENERICIZABLE_ROLEFields inherited from interface wt.generic._GenericizableUsageLink
APP_DATA, COMPONENT_ID, INCLUSION_OPTION, QUANTITY_OPTION, REFERENCEFields inherited from interface wt.iba.value._IBAHolder
ATTRIBUTE_CONTAINERFields inherited from interface wt.occurrence._OccurrenceableLink
USES_OCCURRENCE_VECTORFields inherited from interface wt.fc._Persistable
PERSIST_INFOFields inherited from interface wt.configuration._TraceableLink
TRACE_CODEFields inherited from interface wt.type._Typed
TYPE_DEFINITION_REFERENCEFields inherited from interface wt.part._WTPartUsageLinkTypeInterface
TYPE_INFO_WTPART_USAGE_LINKFields inherited from interface wt.fc.BinaryLink
ALL_ROLES, BOTH_ROLES, ROLE_AOBJECT_REF, ROLE_BOBJECT_REFFields inherited from interface wt.option.ChoiceMappable
LOADER_CACHE_KEYFields inherited from interface wt.identity.DisplayIdentification
DISPLAY_IDENTIFIER, DISPLAY_IDENTITY, DISPLAY_TYPEFields inherited from interface wt.option.Expressionable
LOADER_CACHE_KEYFields inherited from interface wt.fc.Persistable
IDENTITY, TYPE -
Method Summary
Modifier and TypeMethodDescriptionstatic WTPartUsageLinknewWTPartUsageLink(WTPart usedBy, WTPartMaster uses) Default factory for the class.Methods inherited from class wt.part._WTPartUsageLink
getAllocationType, getAppData, getAttributeContainer, getBuildTarget, getCadSynchronized, getClassInfo, getComponentId, getConceptualClassname, getEffVector, getExpressionData, getFederatableInfo, getFilteredStatus, getFindNumber, getGenericizable, getGenericizableMaster, getInclusionOption, getLineNumber, getPersistable, getQuantity, getQuantityOption, getReference, getSourceIdentification, getTraceCode, getType, getTypeDefinitionReference, getTypeInfoWTPartUsageLink, getUsedBy, getUses, getUsesOccurrenceVector, readExternal, readExternal, readVersion, setAllocationType, setAppData, setAttributeContainer, setBuildTarget, setCadSynchronized, setExpressionData, setFederatableInfo, setFilteredStatus, setGenericizable, setGenericizableMaster, setInclusionOption, setLineNumber, setPersistable, setQuantity, setQuantityOption, setReference, setSourceIdentification, setTraceCode, setTypeDefinitionReference, setTypeInfoWTPartUsageLink, setUsedBy, setUses, setUsesOccurrenceVector, super_readExternal_WTPartUsageLink, super_readVersion_WTPartUsageLink, super_writeExternal_WTPartUsageLink, writeExternal, writeExternalMethods inherited from class wt.vc.struct._IteratedUsageLink
readVersion, setUsedBy, setUses, super_readExternal_IteratedUsageLink, super_readVersion_IteratedUsageLink, super_writeExternal_IteratedUsageLinkMethods inherited from class wt.fc.ObjectToObjectLink
appendJoinCriteria, appendRoleCriteria, duplicate, getAllObjects, getJoinValues, getLinkInfo, getObject, getOtherObject, getRemoteRoleAObjectId, getRemoteRoleBObjectId, getRole, getRoleAObject, getRoleAObjectId, getRoleBObject, getRoleBObjectId, getRoleIdName, getRoleObject, isRoleANonpersistentProxy, isRoleBNonpersistentProxy, setRoleAObject, setRoleAObjectRef, setRoleBObject, setRoleObjectMethods inherited from class wt.fc._ObjectToObjectLink
getRoleAObjectRef, getRoleBObjectRef, readVersion, super_readExternal_ObjectToObjectLink, super_readVersion_ObjectToObjectLink, super_writeExternal_ObjectToObjectLinkMethods inherited from class wt.fc.WTObject
checkAttributes, getDisplayIdentifier, getDisplayIdentity, getDisplayType, getIdentity, 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._BinaryLink
getRoleAObjectRef, getRoleBObjectRef, setRoleAObjectRefMethods inherited from interface wt.occurrence._OccurrenceableLink
getRoleAObject, getRoleBObject, setRoleAObject, setRoleBObjectMethods inherited from interface wt.fc._Persistable
getPersistInfo, setPersistInfoMethods inherited from interface wt.fc.BinaryLink
getLinkInfo, getObject, getOtherObject, getRole, getRoleAObjectId, getRoleBObjectIdMethods inherited from interface wt.fc.Link
appendJoinCriteria, appendRoleCriteria, getAllObjects, getJoinValues, getRoleIdName, getRoleObject, setRoleObjectMethods inherited from interface wt.fc.Persistable
checkAttributes, getIdentityMethods inherited from interface wt.associativity.UsageLink
getRoleAObject, getRoleAObjectRef, getRoleBObject, getRoleBObjectRef
-
Method Details
-
newWTPartUsageLink
public static WTPartUsageLink newWTPartUsageLink(WTPart usedBy, WTPartMaster uses) throws WTException Default factory for the class.
Supported API: true- Parameters:
usedBy-uses-- Returns:
- WTPartUsageLink
- Throws:
WTException
-