|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.epm.supportingdata.EPMSupportingData
Applications may save data that is specific to their applications inside
an EPMSupportingData object.They save their data in the data member of
the object.
An EPMSupportingData Holder distinquishes between EPMSupportingData objects
that it holds by their names and the application that they belong to.
Applications must assign a unique name to each EPMSupportingData object
that they add.
For all EPMSupportingData objects that belong to the same EPMSupportingData
Holder, the pair, ownerApplication and name must be unique. A uniqueness
constraint on the database table for EPMSupportingData enforces this
requirement. As a result, the EPMSupportingData class must be made Final.
We chose this approach over the creation of a seperate identification
class in order to prevent the creation of an additional database table
for the identification class.
In order to facilitate future migration, it is recommended that the data object implements Evolvable.
Use the newEPMSupportingData
static factory method(s), not
the EPMSupportingData
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 | |
static String |
AUTHORING_APP_VERSION
Label for the attribute. |
static String |
AUTHORING_APP_VERSION_REFERENCE
Label for the attribute. |
static String |
AUTHORING_APPLICATION
Label for the attribute; Indicates that the named application authored the object. |
private static int |
AUTHORING_APPLICATION_UPPER_LIMIT
|
private EPMAuthoringAppType |
authoringApplication
|
private EPMAuthAppVersionRef |
authoringAppVersionReference
|
private static String |
CLASSNAME
|
private Object |
data
|
static String |
DATA
Label for the attribute; The data object. |
private String |
description
|
static String |
DESCRIPTION
Label for the attribute; A user-specified description field. |
private static int |
DESCRIPTION_UPPER_LIMIT
|
private static String |
EPMRESOURCE
|
static long |
EXTERNALIZATION_VERSION_UID
|
static String |
HOLDER
Label for the attribute. |
static String |
HOLDER_REFERENCE
Label for the attribute. |
private ObjectReference |
holderReference
|
private String |
name
|
static String |
NAME
Label for the attribute; The name of this EPMSupportingData object. |
private static int |
NAME_UPPER_LIMIT
|
protected static long |
OLD_FORMAT_VERSION_UID
|
static String |
OWNER_APPLICATION
Label for the attribute; Indicate that the named application owns the object. |
private static int |
OWNER_APPLICATION_UPPER_LIMIT
|
private EPMApplicationType |
ownerApplication
|
static long |
R70_EXTERNALIZATION_VERSION_UID
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
private AttributeContainer |
theAttributeContainer
|
private PersistInfo |
thePersistInfo
|
Fields inherited from interface wt.fc.Persistable |
IDENTITY, PERSIST_INFO, TYPE |
Fields inherited from interface wt.epm.EPMObject |
UNSPECIFIED |
Fields inherited from interface wt.iba.value.IBAHolder |
ATTRIBUTE_CONTAINER |
Constructor Summary | |
EPMSupportingData()
|
Method Summary | |
private void |
authoringApplicationValidate(EPMAuthoringAppType a_AuthoringApplication)
|
private void |
authoringAppVersionReferenceValidate(EPMAuthAppVersionRef a_AuthoringAppVersionReference)
|
void |
checkAttributes()
Validate the values of this Persistable object's attributes. |
private void |
checkAuthoringApplication(EPMAuthAppVersionRef a_AuthoringAppVersionReference)
|
private void |
dataValidate(Object a_Data)
|
private void |
descriptionValidate(String a_Description)
|
EPMSupportingData |
duplicate()
|
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. |
AttributeContainer |
getAttributeContainer()
Gets the object for the association that plays role: ATTRIBUTE_CONTAINER. |
EPMAuthoringAppType |
getAuthoringApplication()
Gets the value of the attribute: AUTHORING_APPLICATION. |
EPMAuthoringAppVersion |
getAuthoringAppVersion()
Gets the object for the association that plays role: AUTHORING_APP_VERSION. |
EPMAuthAppVersionRef |
getAuthoringAppVersionReference()
Gets the value of the attribute: AUTHORING_APP_VERSION_REFERENCE. |
ClassInfo |
getClassInfo()
Returns the ClassInfo object for this class. |
String |
getConceptualClassname()
Deprecated. |
Object |
getData()
Gets the value of the attribute: DATA. |
String |
getDescription()
Gets the value of the attribute: DESCRIPTION. |
EPMSupportingDataHolder |
getHolder()
Gets the object for the association that plays role: HOLDER. |
ObjectReference |
getHolderReference()
Gets the value of the attribute: HOLDER_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(). |
String |
getName()
Gets the value of the attribute: NAME. |
EPMApplicationType |
getOwnerApplication()
Gets the value of the attribute: OWNER_APPLICATION. |
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(). |
int |
hashCode()
Returns a hash code for this object based upon its ObjectIdentifier . |
private void |
holderReferenceValidate(ObjectReference a_HolderReference)
|
protected void |
initialize(String name,
EPMAuthoringAppType authoringApp,
Object data,
EPMSupportingDataHolder holder)
Supports initialization, following construction of an instance. |
private void |
nameValidate(String a_Name)
|
static EPMSupportingData |
newEPMSupportingData(String name,
EPMAuthoringAppType authoringApp,
Object data,
EPMSupportingDataHolder holder)
Supported API: true |
private void |
ownerApplicationValidate(EPMApplicationType a_OwnerApplication)
|
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(EPMSupportingData 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 |
setAuthoringApplication(EPMAuthoringAppType a_AuthoringApplication)
Sets the value of the attribute: AUTHORING_APPLICATION. |
void |
setAuthoringAppVersion(EPMAuthoringAppVersion a_AuthoringAppVersion)
Sets the object for the association that plays role: AUTHORING_APP_VERSION. |
void |
setAuthoringAppVersionReference(EPMAuthAppVersionRef a_AuthoringAppVersionReference)
Sets the value of the attribute: AUTHORING_APP_VERSION_REFERENCE. |
void |
setData(Object a_Data)
Sets the value of the attribute: DATA. |
void |
setDescription(String a_Description)
Sets the value of the attribute: DESCRIPTION. |
void |
setHolder(EPMSupportingDataHolder a_Holder)
Sets the object for the association that plays role: HOLDER. |
void |
setHolderReference(ObjectReference a_HolderReference)
Sets the value of the attribute: HOLDER_REFERENCE. |
void |
setName(String a_Name)
Sets the value of the attribute: NAME. |
void |
setOwnerApplication(EPMApplicationType a_OwnerApplication)
Sets the value of the attribute: OWNER_APPLICATION. |
void |
setPersistInfo(PersistInfo a_PersistInfo)
Sets the object for the association that plays role: PERSIST_INFO. |
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
public static final String NAME
private static int NAME_UPPER_LIMIT
private String name
public static final String DATA
private Object data
public static final String DESCRIPTION
private static int DESCRIPTION_UPPER_LIMIT
private String description
public static final String OWNER_APPLICATION
The parameter is an EPMApplicationType, so that any sort of checking
can be done at run-time.
Supported API: true
private static int OWNER_APPLICATION_UPPER_LIMIT
private EPMApplicationType ownerApplication
public static final String AUTHORING_APPLICATION
The parameter is an EPMAuthoringAppType, so that any sort of checking
can be done at run-time.
Supported API: true
private static int AUTHORING_APPLICATION_UPPER_LIMIT
private EPMAuthoringAppType authoringApplication
public static final String HOLDER
public static final String HOLDER_REFERENCE
private ObjectReference holderReference
public static final String AUTHORING_APP_VERSION
public static final String AUTHORING_APP_VERSION_REFERENCE
private EPMAuthAppVersionRef authoringAppVersionReference
private PersistInfo thePersistInfo
private AttributeContainer theAttributeContainer
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private static final String EPMRESOURCE
public static final long R70_EXTERNALIZATION_VERSION_UID
Constructor Detail |
public EPMSupportingData()
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(EPMSupportingData 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 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 Object getData()
public void setData(Object a_Data) throws WTPropertyVetoException
a_Data
-
WTPropertyVetoException
private void dataValidate(Object a_Data) throws WTPropertyVetoException
a_Data
-
WTPropertyVetoException
public String getDescription()
public void setDescription(String a_Description) throws WTPropertyVetoException
a_Description
-
WTPropertyVetoException
private void descriptionValidate(String a_Description) throws WTPropertyVetoException
a_Description
-
WTPropertyVetoException
public EPMApplicationType getOwnerApplication()
The parameter is an EPMApplicationType, so that any sort of checking
can be done at run-time.
Supported API: true
getOwnerApplication
in interface EPMObject
public void setOwnerApplication(EPMApplicationType a_OwnerApplication) throws WTPropertyVetoException
The parameter is an EPMApplicationType, so that any sort of checking
can be done at run-time.
Supported API: true
a_OwnerApplication
-
WTPropertyVetoException
private void ownerApplicationValidate(EPMApplicationType a_OwnerApplication) throws WTPropertyVetoException
a_OwnerApplication
-
WTPropertyVetoException
public EPMAuthoringAppType getAuthoringApplication()
The parameter is an EPMAuthoringAppType, so that any sort of checking
can be done at run-time.
Supported API: true
getAuthoringApplication
in interface EPMObject
public void setAuthoringApplication(EPMAuthoringAppType a_AuthoringApplication) throws WTPropertyVetoException
The parameter is an EPMAuthoringAppType, so that any sort of checking
can be done at run-time.
Supported API: true
a_AuthoringApplication
-
WTPropertyVetoException
private void authoringApplicationValidate(EPMAuthoringAppType a_AuthoringApplication) throws WTPropertyVetoException
a_AuthoringApplication
-
WTPropertyVetoException
public EPMSupportingDataHolder getHolder()
public void setHolder(EPMSupportingDataHolder a_Holder) throws WTPropertyVetoException, WTException
a_Holder
-
WTPropertyVetoException
WTException
public ObjectReference getHolderReference()
public void setHolderReference(ObjectReference a_HolderReference) throws WTPropertyVetoException
a_HolderReference
-
WTPropertyVetoException
private void holderReferenceValidate(ObjectReference a_HolderReference) throws WTPropertyVetoException
a_HolderReference
-
WTPropertyVetoException
public EPMAuthoringAppVersion getAuthoringAppVersion()
public void setAuthoringAppVersion(EPMAuthoringAppVersion a_AuthoringAppVersion) throws WTPropertyVetoException, WTException
a_AuthoringAppVersion
-
WTPropertyVetoException
WTException
public EPMAuthAppVersionRef getAuthoringAppVersionReference()
public void setAuthoringAppVersionReference(EPMAuthAppVersionRef a_AuthoringAppVersionReference) throws WTPropertyVetoException
a_AuthoringAppVersionReference
-
WTPropertyVetoException
private void authoringAppVersionReferenceValidate(EPMAuthAppVersionRef a_AuthoringAppVersionReference) throws WTPropertyVetoException
a_AuthoringAppVersionReference
-
WTPropertyVetoException
public static EPMSupportingData newEPMSupportingData(String name, EPMAuthoringAppType authoringApp, Object data, EPMSupportingDataHolder holder) throws WTException
name
- authoringApp
- data
- holder
-
WTException
protected void initialize(String name, EPMAuthoringAppType authoringApp, Object data, EPMSupportingDataHolder holder) throws WTException
name
- authoringApp
- data
- holder
-
WTException
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 AttributeContainer getAttributeContainer()
getAttributeContainer
in interface IBAHolder
public void setAttributeContainer(AttributeContainer a_AttributeContainer)
setAttributeContainer
in interface IBAHolder
a_AttributeContainer
- 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
public EPMSupportingData duplicate() throws EPMException
EPMException
private void checkAuthoringApplication(EPMAuthAppVersionRef a_AuthoringAppVersionReference) throws WTPropertyVetoException
WTPropertyVetoException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |