|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.fc.WTObject
wt.enterprise.Master
wt.part.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 WTPart
s 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:
WTPartUsageLink
links this WTPartMaster
to a
WTPart
that uses this WTPartMaster
(actually
uses one of this WTPartMaster
's WTPart
s based
on a config spec)
WTPartSubstituteLink
links this WTPartMaster
to a WTPartUsageLink
making it a replacement part for that
particular usage
WTPartAlternateLink
links this WTPartMaster
to another WTPartMaster
that 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
WTPartMasterIdentity
,
WTPartMasterKey
,
"Part Abstractions" in "Application Developer's Guide",
Serialized FormField Summary | |
private static String |
CLASSNAME
|
static String |
CONTAINER
Label for the attribute. |
private WTContainerRef |
containerReference
|
static String |
DEFAULT_UNIT
Label for the attribute; The default unit of measurement assigned to the part when it is used in a structure. |
private static int |
DEFAULT_UNIT_UPPER_LIMIT
|
private QuantityUnit |
defaultUnit
|
static long |
EXTERNALIZATION_VERSION_UID
|
private FederatableInfo |
federatableInfo
|
private String |
name
|
static String |
NAME
Label for the attribute; The name of the part -- the name a part is commonly refered to by, such as "piston". |
private static int |
NAME_UPPER_LIMIT
|
private String |
number
|
static String |
NUMBER
Label for the attribute; The number attribute represents the number for this part and all of its versions. |
private static int |
NUMBER_UPPER_LIMIT
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private WTPrincipalReference |
organizationReference
|
static long |
R51_EXTERNALIZATION_VERSION_UID
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
private AttributeContainer |
theAttributeContainer
|
Fields inherited from class wt.enterprise.Master |
|
Fields inherited from class wt.fc.WTObject |
CREATE_TIMESTAMP, MODIFY_TIMESTAMP |
Fields inherited from interface wt.fc.Persistable |
IDENTITY, PERSIST_INFO, TYPE |
Fields inherited from interface wt.iba.value.IBAHolder |
ATTRIBUTE_CONTAINER |
Fields inherited from interface wt.ufid.Federatable |
FEDERATABLE_INFO |
Fields inherited from interface wt.inf.container.WTContained |
CONTAINER_ID, CONTAINER_NAME, CONTAINER_REFERENCE |
Fields inherited from interface wt.vc.Mastered |
SERIES |
Fields inherited from interface wt.org.OrganizationOwnedImpl |
ORGANIZATION_REFERENCE |
Fields inherited from interface wt.org.OrganizationOwned |
ORGANIZATION, ORGANIZATION_CODING_SYSTEM, ORGANIZATION_NAME, ORGANIZATION_UNIQUE_IDENTIFIER |
Fields inherited from interface wt.inf.container.WTContainedIdentified |
CONTAINER_REFERENCE |
Fields inherited from interface wt.fc.BusinessInformation |
BUSINESS_TYPE, IDENTITY |
Fields inherited from interface wt.identity.DisplayIdentification |
DISPLAY_IDENTIFIER, DISPLAY_IDENTITY, DISPLAY_TYPE |
Constructor Summary | |
WTPartMaster()
|
Method Summary | |
void |
checkAttributes()
Validate the values of this Persistable object's attributes. |
private void |
containerReferenceValidate(WTContainerRef a_ContainerReference)
|
private void |
defaultUnitValidate(QuantityUnit a_DefaultUnit)
|
boolean |
equals(Object obj)
Indicates whether the given object is equal to this object from a persistence perspective, by comparing the two objects ObjectIdentifier s. |
private void |
federatableInfoValidate(FederatableInfo a_FederatableInfo)
|
AttributeContainer |
getAttributeContainer()
Gets the object for the association that plays role: ATTRIBUTE_CONTAINER. |
String |
getConceptualClassname()
Deprecated. |
WTContainer |
getContainer()
Gets the object for the association that plays role: CONTAINER. |
String |
getContainerName()
Gets the value of the attribute: CONTAINER_NAME. |
WTContainerRef |
getContainerReference()
Gets the value of the attribute: CONTAINER_REFERENCE. |
QuantityUnit |
getDefaultUnit()
Gets the object for the association that plays role: DEFAULT_UNIT. |
FederatableInfo |
getFederatableInfo()
Gets the object for the association that plays role: FEDERATABLE_INFO. |
IdentificationObject |
getIdentificationObject()
Constructs and returns an identification object. |
String |
getIdentity()
Returns the number and name of the part master in the form " |
String |
getName()
Gets the value of the attribute: NAME. |
String |
getNumber()
Gets the value of the attribute: NUMBER. |
WTOrganization |
getOrganization()
Gets the value of the attribute: ORGANIZATION. |
String |
getOrganizationCodingSystem()
Gets the value of the attribute: ORGANIZATION_CODING_SYSTEM. |
String |
getOrganizationName()
Gets the value of the attribute: ORGANIZATION_NAME. |
WTPrincipalReference |
getOrganizationReference()
Gets the value of the attribute: ORGANIZATION_REFERENCE. |
String |
getOrganizationUniqueIdentifier()
Gets the value of the attribute: ORGANIZATION_UNIQUE_IDENTIFIER. |
int |
hashCode()
Returns a hash code for this object based upon its ObjectIdentifier . |
private void |
nameValidate(String a_Name)
|
static WTPartMaster |
newWTPartMaster()
Default factory for the class. |
private void |
numberValidate(String a_Number)
|
private void |
organizationReferenceValidate(WTPrincipalReference a_OrganizationReference)
|
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
void |
readExternal(PersistentRetrieveIfc input)
Used by Persistent Data Service to populate the persistent attributes of this class from a persistent store. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(WTPartMaster thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
setAttributeContainer(AttributeContainer a_AttributeContainer)
Sets the object for the association that plays role: ATTRIBUTE_CONTAINER. |
void |
setContainer(WTContainer a_Container)
Sets the object for the association that plays role: CONTAINER. |
void |
setContainerReference(WTContainerRef a_ContainerReference)
Sets the value of the attribute: CONTAINER_REFERENCE. |
void |
setDefaultUnit(QuantityUnit a_DefaultUnit)
Sets the object for the association that plays role: DEFAULT_UNIT. |
void |
setFederatableInfo(FederatableInfo a_FederatableInfo)
Sets the object for the association that plays role: FEDERATABLE_INFO. |
void |
setName(String a_Name)
Sets the value of the attribute: NAME. |
void |
setNumber(String a_Number)
Sets the value of the attribute: NUMBER. |
void |
setOrganization(WTOrganization a_Organization)
Sets the value of the attribute: ORGANIZATION. |
void |
setOrganizationReference(WTPrincipalReference a_OrganizationReference)
Sets the value of the attribute: ORGANIZATION_REFERENCE. |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
void |
writeExternal(PersistentStoreIfc output)
Used by Persistent Data Service to obtain the values of the persistent attributes of this class, so they can be written to a persistent store. |
Methods inherited from class wt.enterprise.Master |
getBusinessType, getSeries, readVersion, setSeries |
Methods inherited from class wt.fc.WTObject |
duplicate, finalize, getClassInfo, getCreateTimestamp, getDisplayIdentifier, getDisplayIdentity, getDisplayType, getModifyTimestamp, getPersistInfo, getType, initialize, readVersion, setPersistInfo, toString |
Methods inherited from class java.lang.Object |
clone, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface wt.fc.Persistable |
getPersistInfo, getType, setPersistInfo |
Methods inherited from interface wt.fc.NetFactor |
getClassInfo |
Methods inherited from interface wt.vc.Mastered |
getSeries, setSeries |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
public static final String NUMBER
private static int NUMBER_UPPER_LIMIT
private String number
public static final String NAME
private static int NAME_UPPER_LIMIT
private String name
public static final String DEFAULT_UNIT
private static int DEFAULT_UNIT_UPPER_LIMIT
private QuantityUnit defaultUnit
private AttributeContainer theAttributeContainer
private FederatableInfo federatableInfo
public static final String CONTAINER
private WTContainerRef containerReference
private WTPrincipalReference organizationReference
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
public static final long R51_EXTERNALIZATION_VERSION_UID
Constructor Detail |
public WTPartMaster()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class Master
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class Master
input
-
IOException
ClassNotFoundException
protected boolean readVersion(WTPartMaster thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public void writeExternal(PersistentStoreIfc output) throws SQLException, DatastoreException
(Not intended for general use.)
Supported API: false
writeExternal
in interface ObjectMappable
writeExternal
in class Master
output
-
SQLException
DatastoreException
public void readExternal(PersistentRetrieveIfc input) throws SQLException, DatastoreException
(Not intended for general
use.)
Supported API: false
readExternal
in interface ObjectMappable
readExternal
in class Master
input
-
SQLException
DatastoreException
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
public String getNumber()
public void setNumber(String a_Number) throws WTPropertyVetoException
a_Number
-
WTPropertyVetoException
private void numberValidate(String a_Number) throws WTPropertyVetoException
a_Number
-
WTPropertyVetoException
public String getName()
public void setName(String a_Name) throws WTPropertyVetoException
a_Name
-
WTPropertyVetoException
private void nameValidate(String a_Name) throws WTPropertyVetoException
a_Name
-
WTPropertyVetoException
public QuantityUnit getDefaultUnit()
public void setDefaultUnit(QuantityUnit a_DefaultUnit) throws WTPropertyVetoException
a_DefaultUnit
-
WTPropertyVetoException
private void defaultUnitValidate(QuantityUnit a_DefaultUnit) throws WTPropertyVetoException
a_DefaultUnit
-
WTPropertyVetoException
public String getIdentity()
getIdentity
in interface Persistable
getIdentity
in class Master
public IdentificationObject getIdentificationObject() throws WTException
getIdentificationObject
in interface Identified
WTException
public static WTPartMaster newWTPartMaster() throws WTException
WTException
public AttributeContainer getAttributeContainer()
getAttributeContainer
in interface IBAHolder
public void setAttributeContainer(AttributeContainer a_AttributeContainer)
setAttributeContainer
in interface IBAHolder
a_AttributeContainer
- public FederatableInfo getFederatableInfo()
getFederatableInfo
in interface Federatable
public void setFederatableInfo(FederatableInfo a_FederatableInfo) throws WTPropertyVetoException
setFederatableInfo
in interface Federatable
a_FederatableInfo
-
WTPropertyVetoException
private void federatableInfoValidate(FederatableInfo a_FederatableInfo) throws WTPropertyVetoException
a_FederatableInfo
-
WTPropertyVetoException
public String getContainerName()
WTContainer
this object is assigned to.
getContainerName
in interface WTContained
public WTContainer getContainer()
getContainer
in interface WTContained
public void setContainer(WTContainer a_Container) throws WTPropertyVetoException, WTException
setContainer
in interface WTContained
a_Container
-
WTPropertyVetoException
WTException
public WTContainerRef getContainerReference()
getContainerReference
in interface WTContained
public void setContainerReference(WTContainerRef a_ContainerReference) throws WTPropertyVetoException
setContainerReference
in interface WTContained
a_ContainerReference
-
WTPropertyVetoException
private void containerReferenceValidate(WTContainerRef a_ContainerReference) throws WTPropertyVetoException
a_ContainerReference
-
WTPropertyVetoException
public WTPrincipalReference getOrganizationReference()
getOrganizationReference
in interface OrganizationOwnedImpl
public void setOrganizationReference(WTPrincipalReference a_OrganizationReference) throws WTPropertyVetoException
setOrganizationReference
in interface OrganizationOwnedImpl
a_OrganizationReference
-
WTPropertyVetoException
private void organizationReferenceValidate(WTPrincipalReference a_OrganizationReference) throws WTPropertyVetoException
a_OrganizationReference
-
WTPropertyVetoException
public String getOrganizationUniqueIdentifier()
getOrganizationUniqueIdentifier
in interface OrganizationOwned
public String getOrganizationCodingSystem()
getOrganizationCodingSystem
in interface OrganizationOwned
public String getOrganizationName()
getOrganizationName
in interface OrganizationOwned
public WTOrganization getOrganization()
getOrganization
in interface OrganizationOwned
public void setOrganization(WTOrganization a_Organization) throws WTPropertyVetoException
setOrganization
in interface OrganizationOwned
a_Organization
-
WTPropertyVetoException
public boolean equals(Object obj)
ObjectIdentifier
s.
Changed or stale copies are still considered equal by this method.
Delegates to PersistenceHelper.equals(Persistable,Object)
.
Warning: Certain core Windchill operations may depend upon
equals
being ObjectIdentifier
-based. Changes
to the default implementation should be done with care, if at all.
Supported API: false
equals
in class Master
obj
-
public int hashCode()
ObjectIdentifier
.
Delegates to PersistenceHelper.hashCode(Persistable)
.
Warning: Certain core Windchill operations may depend upon
hashCode
being ObjectIdentifier-based
. Changes
to the default implementation should be done with care, if at all.
Supported API: false
hashCode
in class Master
public void checkAttributes() throws InvalidAttributeException
Persistable
checkAttributes
in interface Persistable
checkAttributes
in class WTObject
InvalidAttributeException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |