|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.epm.structure.occurrences.EPMUsesOccurrence
Use the newEPMUsesOccurrence
static factory method(s), not
the EPMUsesOccurrence
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
Field Summary | |
private static String |
CLASSNAME
|
static String |
CONTEXT
Label for the attribute. |
private ObjectReference |
contextReference
|
static long |
EXTERNALIZATION_VERSION_UID
|
static String |
LINK
Label for the attribute. |
private ObjectReference |
linkReference
|
private String |
name
|
private static int |
NAME_UPPER_LIMIT
|
private Vector |
occurrenceDataVector
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private PathOccurrence |
pathOccurrence
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
private PersistInfo |
thePersistInfo
|
private long |
usesOccurrenceDataIdentifier
|
private long |
usesOccurrenceIdentifier
|
Fields inherited from interface wt.occurrence.UsesOccurrence |
CONTEXT_REFERENCE, LINK_REFERENCE, PATH_OCCURRENCE, USES_NAME, USES_OCCURRENCE_DATA_IDENTIFIER, USES_OCCURRENCE_IDENTIFIER |
Fields inherited from interface wt.occurrence.Occurrence |
NAME, OCCURRENCE_DATA_VECTOR |
Fields inherited from interface wt.fc.Persistable |
IDENTITY, PERSIST_INFO, TYPE |
Constructor Summary | |
EPMUsesOccurrence()
|
Method Summary | |
void |
checkAttributes()
Validate the values of this Persistable object's attributes. |
private void |
contextReferenceValidate(ObjectReference a_ContextReference)
|
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. |
ClassInfo |
getClassInfo()
Returns the ClassInfo object for this class. |
String |
getConceptualClassname()
Deprecated. |
UsesOccurrenceContext |
getContext()
Gets the object for the association that plays role: CONTEXT. |
ObjectReference |
getContextReference()
Gets the value of the attribute: CONTEXT_REFERENCE. |
String |
getIdentity()
Deprecated. Replaced by IdentityFactory.getDispayIdentifier(object) to return a localizable equivalent of getIdentity(). To return a localizable value which includes the object type, use IdentityFactory.getDisplayIdentity(object). Other alternatives are ((WTObject)obj).getDisplayIdentifier() and ((WTObject)obj).getDisplayIdentity(). |
OccurrenceableLink |
getLink()
Gets the object for the association that plays role: LINK. |
ObjectReference |
getLinkReference()
Gets the value of the attribute: LINK_REFERENCE. |
String |
getName()
Gets the value of the attribute: NAME. |
Vector |
getOccurrenceDataVector()
Gets the value of the attribute: OCCURRENCE_DATA_VECTOR. |
PathOccurrence |
getPathOccurrence()
Gets the value of the attribute: PATH_OCCURRENCE. |
PersistInfo |
getPersistInfo()
Gets the object for the association that plays role: PERSIST_INFO. |
String |
getType()
Deprecated. Replaced by IdentityFactory.getDispayType(object) to return a localizable equivalent of getType(). Another alternative is ((WTObject)obj).getDisplayType(). |
String |
getUsesName()
Gets the value of the attribute: USES_NAME. |
long |
getUsesOccurrenceDataIdentifier()
Gets the value of the attribute: USES_OCCURRENCE_DATA_IDENTIFIER. |
long |
getUsesOccurrenceIdentifier()
Gets the value of the attribute: USES_OCCURRENCE_IDENTIFIER. |
int |
hashCode()
Returns a hash code for this object based upon its ObjectIdentifier . |
protected void |
initialize(EPMUsesOccurrence original)
Supports initialization, following construction of an instance. |
protected void |
initialize(OccurrenceableLink occurrenceableLink)
Supports initialization, following construction of an instance. |
boolean |
isPlaceholder()
Returns true if the UsesOccurrence is only used to complete
a PathOccurrence and has no other useful information associated
with it. |
private void |
linkReferenceValidate(ObjectReference a_LinkReference)
|
private void |
nameValidate(String a_Name)
|
static EPMUsesOccurrence |
newEPMUsesOccurrence(EPMUsesOccurrence original)
This constructor returns a copy of the EPMUsesOccurrence passed to it. |
static EPMUsesOccurrence |
newEPMUsesOccurrence(OccurrenceableLink occurrenceableLink)
This constructor returns a EPMUsesOccurrence associated
to the given OccurrenceableLink . |
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(EPMUsesOccurrence thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
setContext(UsesOccurrenceContext a_Context)
Sets the object for the association that plays role: CONTEXT. |
void |
setContextReference(ObjectReference a_ContextReference)
Sets the value of the attribute: CONTEXT_REFERENCE. |
void |
setLink(OccurrenceableLink a_Link)
Sets the object for the association that plays role: LINK. |
void |
setLinkReference(ObjectReference a_LinkReference)
Sets the value of the attribute: LINK_REFERENCE. |
void |
setName(String a_Name)
Sets the value of the attribute: NAME. |
void |
setOccurrenceDataVector(Vector a_OccurrenceDataVector)
Sets the value of the attribute: OCCURRENCE_DATA_VECTOR. |
void |
setPathOccurrence(PathOccurrence a_PathOccurrence)
Sets the value of the attribute: PATH_OCCURRENCE. |
void |
setPersistInfo(PersistInfo a_PersistInfo)
Sets the object for the association that plays role: PERSIST_INFO. |
void |
setUsesName(String a_UsesName)
Sets the value of the attribute: USES_NAME. |
void |
setUsesOccurrenceDataIdentifier(long a_UsesOccurrenceDataIdentifier)
Sets the value of the attribute: USES_OCCURRENCE_DATA_IDENTIFIER. |
void |
setUsesOccurrenceIdentifier(long a_UsesOccurrenceIdentifier)
Sets the value of the attribute: USES_OCCURRENCE_IDENTIFIER. |
String |
toString()
Returns the conceptual (modeled) name for the class. |
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 java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private long usesOccurrenceDataIdentifier
private long usesOccurrenceIdentifier
private PathOccurrence pathOccurrence
public static final String LINK
private ObjectReference linkReference
public static final String CONTEXT
private ObjectReference contextReference
private static int NAME_UPPER_LIMIT
private String name
private Vector occurrenceDataVector
private PersistInfo thePersistInfo
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
Constructor Detail |
public EPMUsesOccurrence()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(EPMUsesOccurrence 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
output
-
SQLException
DatastoreException
public void readExternal(PersistentRetrieveIfc input) throws SQLException, DatastoreException
(Not intended for general
use.)
Supported API: false
readExternal
in interface ObjectMappable
input
-
SQLException
DatastoreException
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
public String toString()
public ClassInfo getClassInfo() throws WTIntrospectionException
getClassInfo
in interface NetFactor
WTIntrospectionException
public static EPMUsesOccurrence newEPMUsesOccurrence(EPMUsesOccurrence original) throws WTException
EPMUsesOccurrence
passed to it.
original
-
WTException
protected void initialize(EPMUsesOccurrence original) throws WTException
original
-
WTException
public static EPMUsesOccurrence newEPMUsesOccurrence(OccurrenceableLink occurrenceableLink) throws WTException
EPMUsesOccurrence
associated
to the given OccurrenceableLink
.
occurrenceableLink
-
WTException
protected void initialize(OccurrenceableLink occurrenceableLink) throws WTException
occurrenceableLink
-
WTException
public long getUsesOccurrenceDataIdentifier()
UsesOccurrenceData
objects can have the same foreign key link to
this UsesOccurrence
and several UsesOccurrence
objects can also share this same identifier, but only if all of
their associated UsesOccurrenceData objects are the same. If
several UsesOccurrence
s share the same UsesOccurrenceData
objects and one wants to change it (without affecting the others),
then it must get a new identifier for itself and make copies of all
of its OccurrenceData
objects and link to those new copies
by putting its new identifier into them as a foreign key. Finally
it can change this new set of data as desired without affecting other
UsesOccurrence
s. Because of the complex management of
this attribute it is necessary to call one of the OccurrenceService#saveUsesOccurrenceAndData
methods when saving a UsesOccurrence
(and optionally its associated
UsesOccurenceData
.
getUsesOccurrenceDataIdentifier
in interface UsesOccurrence
public void setUsesOccurrenceDataIdentifier(long a_UsesOccurrenceDataIdentifier) throws WTPropertyVetoException
UsesOccurrenceData
objects can have the same foreign key link to
this UsesOccurrence
and several UsesOccurrence
objects can also share this same identifier, but only if all of
their associated UsesOccurrenceData objects are the same. If
several UsesOccurrence
s share the same UsesOccurrenceData
objects and one wants to change it (without affecting the others),
then it must get a new identifier for itself and make copies of all
of its OccurrenceData
objects and link to those new copies
by putting its new identifier into them as a foreign key. Finally
it can change this new set of data as desired without affecting other
UsesOccurrence
s. Because of the complex management of
this attribute it is necessary to call one of the OccurrenceService#saveUsesOccurrenceAndData
methods when saving a UsesOccurrence
(and optionally its associated
UsesOccurenceData
.
setUsesOccurrenceDataIdentifier
in interface UsesOccurrence
a_UsesOccurrenceDataIdentifier
-
WTPropertyVetoException
public long getUsesOccurrenceIdentifier()
OccurrenceableLink
objects,
all of which represent the same link, except maybe for different iterations
or versions of objects being linked. In other words, when the OccurrenceableLink
is copied forward this identifier is copied without changing
its value.
getUsesOccurrenceIdentifier
in interface UsesOccurrence
public void setUsesOccurrenceIdentifier(long a_UsesOccurrenceIdentifier) throws WTPropertyVetoException
OccurrenceableLink
objects,
all of which represent the same link, except maybe for different iterations
or versions of objects being linked. In other words, when the OccurrenceableLink
is copied forward this identifier is copied without changing
its value.
setUsesOccurrenceIdentifier
in interface UsesOccurrence
a_UsesOccurrenceIdentifier
-
WTPropertyVetoException
public PathOccurrence getPathOccurrence()
PathOccurrence
can be populated to hold
the value that applies in a particular situation.
getPathOccurrence
in interface UsesOccurrence
public void setPathOccurrence(PathOccurrence a_PathOccurrence)
PathOccurrence
can be populated to hold
the value that applies in a particular situation.
setPathOccurrence
in interface UsesOccurrence
a_PathOccurrence
- public String getUsesName()
name
attribute is useful in some cases
by introspection so that the name of a UsesOccurrence
is distinct from the name of other Occurrences
.
getUsesName
in interface UsesOccurrence
public void setUsesName(String a_UsesName) throws WTPropertyVetoException
name
attribute is useful in some cases
by introspection so that the name of a UsesOccurrence
is distinct from the name of other Occurrences
.
setUsesName
in interface UsesOccurrence
a_UsesName
-
WTPropertyVetoException
public boolean isPlaceholder()
UsesOccurrence
is only used to complete
a PathOccurrence
and has no other useful information associated
with it.
isPlaceholder
in interface UsesOccurrence
public OccurrenceableLink getLink()
getLink
in interface UsesOccurrence
public void setLink(OccurrenceableLink a_Link) throws WTPropertyVetoException, WTException
setLink
in interface UsesOccurrence
a_Link
-
WTPropertyVetoException
WTException
public ObjectReference getLinkReference()
getLinkReference
in interface UsesOccurrence
public void setLinkReference(ObjectReference a_LinkReference) throws WTPropertyVetoException
setLinkReference
in interface UsesOccurrence
a_LinkReference
-
WTPropertyVetoException
private void linkReferenceValidate(ObjectReference a_LinkReference) throws WTPropertyVetoException
a_LinkReference
-
WTPropertyVetoException
public UsesOccurrenceContext getContext()
getContext
in interface UsesOccurrence
public void setContext(UsesOccurrenceContext a_Context) throws WTPropertyVetoException, WTException
setContext
in interface UsesOccurrence
a_Context
-
WTPropertyVetoException
WTException
public ObjectReference getContextReference()
getContextReference
in interface UsesOccurrence
public void setContextReference(ObjectReference a_ContextReference) throws WTPropertyVetoException
setContextReference
in interface UsesOccurrence
a_ContextReference
-
WTPropertyVetoException
private void contextReferenceValidate(ObjectReference a_ContextReference) throws WTPropertyVetoException
a_ContextReference
-
WTPropertyVetoException
public String getName()
Occurrence
is often referred to as a Reference
Designator.
getName
in interface Occurrence
public void setName(String a_Name) throws WTPropertyVetoException
Occurrence
is often referred to as a Reference
Designator.
setName
in interface Occurrence
a_Name
-
WTPropertyVetoException
private void nameValidate(String a_Name) throws WTPropertyVetoException
a_Name
-
WTPropertyVetoException
public Vector getOccurrenceDataVector()
Vector
can be populated with OccurrenceData
that is associated to an Occurrence
.
getOccurrenceDataVector
in interface Occurrence
public void setOccurrenceDataVector(Vector a_OccurrenceDataVector) throws WTPropertyVetoException
Vector
can be populated with OccurrenceData
that is associated to an Occurrence
.
setOccurrenceDataVector
in interface Occurrence
a_OccurrenceDataVector
-
WTPropertyVetoException
public String getIdentity()
getIdentity
in interface Persistable
public String getType()
getType
in interface Persistable
public void checkAttributes() throws InvalidAttributeException
checkAttributes
in interface Persistable
InvalidAttributeException
public PersistInfo getPersistInfo()
getPersistInfo
in interface Persistable
public void setPersistInfo(PersistInfo a_PersistInfo)
setPersistInfo
in interface Persistable
a_PersistInfo
- 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
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
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |