wt.recent
Class RecentUpdate

java.lang.Object
  extended bywt.fc.WTObject
      extended bywt.recent.RecentUpdate
All Implemented Interfaces:
DisplayIdentification, Externalizable, NetFactor, ObjectMappable, Persistable, Serializable

public class RecentUpdate
extends WTObject
implements Externalizable

Use the newRecentUpdate static factory method(s), not the RecentUpdate 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: false

Extendable: false

See Also:
Serialized Form

Field Summary
static String BUSINESS_OBJECT_REF
          Label for the attribute.
private static int BUSINESS_OBJECT_REF_UPPER_LIMIT
           
private  String businessObjectRef
           
private static String CLASSNAME
           
static long EXTERNALIZATION_VERSION_UID
           
static String LIST_KEY_NAME
          Label for the attribute.
private static int LIST_KEY_NAME_UPPER_LIMIT
           
private  String listKeyName
           
private  String name
           
static String NAME
          Label for the attribute.
private static int NAME_UPPER_LIMIT
           
protected static long OLD_FORMAT_VERSION_UID
           
static String OWNER_REF
          Label for the attribute.
private  WTPrincipalReference ownerRef
           
static String RECENT_OBJECT_MASTER_REF
          Label for the attribute.
private  ObjectReference recentObjectMasterRef
           
private static String RESOURCE
           
private static ReferenceFactory rf
           
(package private) static long serialVersionUID
           
 
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.identity.DisplayIdentification
DISPLAY_IDENTIFIER, DISPLAY_IDENTITY, DISPLAY_TYPE
 
Constructor Summary
RecentUpdate()
           
 
Method Summary
private  void businessObjectRefValidate(String a_BusinessObjectRef)
           
 boolean equals(Object obj)
          Indicates whether the given object is equal to this object from a persistence perspective, by comparing the two objects ObjectIdentifiers.
 boolean equals(RecentUpdate otherObj, boolean isDifferent)
          

Supported API: false
 String getBusinessObjectRef()
          Gets the value of the attribute: BUSINESS_OBJECT_REF.
 String getConceptualClassname()
          Deprecated.  
 String getListKeyName()
          Gets the value of the attribute: LIST_KEY_NAME.
 String getName()
          Gets the value of the attribute: NAME.
protected static String getName(Persistable a)
          Gets the identityString for the given object.
 WTPrincipalReference getOwnerRef()
          Gets the value of the attribute: OWNER_REF.
 ObjectReference getRecentObjectMasterRef()
          Gets the value of the attribute: RECENT_OBJECT_MASTER_REF.
 int hashCode()
          Returns a hash code for this object based upon its ObjectIdentifier.
protected  void initialize(WTContainer a, String key)
          

Supported API: false
protected  void initialize(WTObject a, String key)
          

Supported API: false
private  void listKeyNameValidate(String a_ListKeyName)
           
private  void nameValidate(String a_Name)
           
static RecentUpdate newRecentUpdate()
          Default factory for the class.
static RecentUpdate newRecentUpdate(WTContainer a, String key)
          

Supported API: false
static RecentUpdate newRecentUpdate(WTObject a, String key)
          

Supported API: false
private  void ownerRefValidate(WTPrincipalReference a_OwnerRef)
           
 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(RecentUpdate thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source.
private  void recentObjectMasterRefValidate(ObjectReference a_RecentObjectMasterRef)
           
 void setBusinessObjectRef(String a_BusinessObjectRef)
          Sets the value of the attribute: BUSINESS_OBJECT_REF.
 void setListKeyName(String a_ListKeyName)
          Sets the value of the attribute: LIST_KEY_NAME.
private  void setMaster(WTObject a)
           
 void setName(String a_Name)
          Sets the value of the attribute: NAME.
 void setOwnerRef(WTPrincipalReference a_OwnerRef)
          Sets the value of the attribute: OWNER_REF.
 void setRecentObjectMasterRef(ObjectReference a_RecentObjectMasterRef)
          Sets the value of the attribute: RECENT_OBJECT_MASTER_REF.
protected static String toRefString(Persistable a)
          Gets the object key for the given object.
 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.fc.WTObject
checkAttributes, duplicate, finalize, getClassInfo, getCreateTimestamp, getDisplayIdentifier, getDisplayIdentity, getDisplayType, getIdentity, getModifyTimestamp, getPersistInfo, getType, initialize, readVersion, setPersistInfo, toString
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

BUSINESS_OBJECT_REF

public static final String BUSINESS_OBJECT_REF
Label for the attribute.

Supported API: false

See Also:
Constant Field Values

BUSINESS_OBJECT_REF_UPPER_LIMIT

private static int BUSINESS_OBJECT_REF_UPPER_LIMIT

businessObjectRef

private String businessObjectRef

OWNER_REF

public static final String OWNER_REF
Label for the attribute.

Supported API: false

See Also:
Constant Field Values

ownerRef

private WTPrincipalReference ownerRef

RECENT_OBJECT_MASTER_REF

public static final String RECENT_OBJECT_MASTER_REF
Label for the attribute.

Supported API: false

See Also:
Constant Field Values

recentObjectMasterRef

private ObjectReference recentObjectMasterRef

LIST_KEY_NAME

public static final String LIST_KEY_NAME
Label for the attribute.

Supported API: false

See Also:
Constant Field Values

LIST_KEY_NAME_UPPER_LIMIT

private static int LIST_KEY_NAME_UPPER_LIMIT

listKeyName

private String listKeyName

NAME

public static final String NAME
Label for the attribute.

Supported API: false

See Also:
Constant Field Values

NAME_UPPER_LIMIT

private static int NAME_UPPER_LIMIT

name

private String name

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

EXTERNALIZATION_VERSION_UID

public static final long EXTERNALIZATION_VERSION_UID
See Also:
Constant Field Values

OLD_FORMAT_VERSION_UID

protected static final long OLD_FORMAT_VERSION_UID
See Also:
Constant Field Values

rf

private static ReferenceFactory rf
Constructor Detail

RecentUpdate

public RecentUpdate()
Method Detail

writeExternal

public void writeExternal(ObjectOutput output)
                   throws IOException
Writes the non-transient fields of this class to an external source.

Supported API: false

Specified by:
writeExternal in interface Externalizable
Overrides:
writeExternal in class WTObject
Parameters:
output -
Throws:
IOException

readExternal

public void readExternal(ObjectInput input)
                  throws IOException,
                         ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Specified by:
readExternal in interface Externalizable
Overrides:
readExternal in class WTObject
Parameters:
input -
Throws:
IOException
ClassNotFoundException

readVersion

protected boolean readVersion(RecentUpdate thisObject,
                              ObjectInput input,
                              long readSerialVersionUID,
                              boolean passThrough,
                              boolean superDone)
                       throws IOException,
                              ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Parameters:
thisObject -
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

readOldVersion

private boolean readOldVersion(ObjectInput input,
                               long readSerialVersionUID,
                               boolean passThrough,
                               boolean superDone)
                        throws IOException,
                               ClassNotFoundException
Reads the non-transient fields of this class from an external source, which is not the current version.

Parameters:
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(PersistentStoreIfc output)
                   throws SQLException,
                          DatastoreException
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.

(Not intended for general use.)

Supported API: false

Specified by:
writeExternal in interface ObjectMappable
Overrides:
writeExternal in class WTObject
Parameters:
output -
Throws:
SQLException
DatastoreException

readExternal

public void readExternal(PersistentRetrieveIfc input)
                  throws SQLException,
                         DatastoreException
Used by Persistent Data Service to populate the persistent attributes of this class from a persistent store.

(Not intended for general use.)

Supported API: false

Specified by:
readExternal in interface ObjectMappable
Overrides:
readExternal in class WTObject
Parameters:
input -
Throws:
SQLException
DatastoreException

getConceptualClassname

public String getConceptualClassname()
Deprecated.  

Returns the conceptual (modeled) name for the class.

Supported API: false

Specified by:
getConceptualClassname in interface NetFactor
Returns:
String

getBusinessObjectRef

public String getBusinessObjectRef()
Gets the value of the attribute: BUSINESS_OBJECT_REF.

Supported API: false

Returns:
String

setBusinessObjectRef

public void setBusinessObjectRef(String a_BusinessObjectRef)
                          throws WTPropertyVetoException
Sets the value of the attribute: BUSINESS_OBJECT_REF.

Supported API: false

Parameters:
a_BusinessObjectRef -
Throws:
WTPropertyVetoException

businessObjectRefValidate

private void businessObjectRefValidate(String a_BusinessObjectRef)
                                throws WTPropertyVetoException
Parameters:
a_BusinessObjectRef -
Throws:
WTPropertyVetoException

getOwnerRef

public WTPrincipalReference getOwnerRef()
Gets the value of the attribute: OWNER_REF.

Supported API: false

Returns:
WTPrincipalReference

setOwnerRef

public void setOwnerRef(WTPrincipalReference a_OwnerRef)
                 throws WTPropertyVetoException
Sets the value of the attribute: OWNER_REF.

Supported API: false

Parameters:
a_OwnerRef -
Throws:
WTPropertyVetoException

ownerRefValidate

private void ownerRefValidate(WTPrincipalReference a_OwnerRef)
                       throws WTPropertyVetoException
Parameters:
a_OwnerRef -
Throws:
WTPropertyVetoException

getRecentObjectMasterRef

public ObjectReference getRecentObjectMasterRef()
Gets the value of the attribute: RECENT_OBJECT_MASTER_REF.

Supported API: false

Returns:
ObjectReference

setRecentObjectMasterRef

public void setRecentObjectMasterRef(ObjectReference a_RecentObjectMasterRef)
                              throws WTPropertyVetoException
Sets the value of the attribute: RECENT_OBJECT_MASTER_REF.

Supported API: false

Parameters:
a_RecentObjectMasterRef -
Throws:
WTPropertyVetoException

recentObjectMasterRefValidate

private void recentObjectMasterRefValidate(ObjectReference a_RecentObjectMasterRef)
                                    throws WTPropertyVetoException
Parameters:
a_RecentObjectMasterRef -
Throws:
WTPropertyVetoException

getListKeyName

public String getListKeyName()
Gets the value of the attribute: LIST_KEY_NAME.

Supported API: false

Returns:
String

setListKeyName

public void setListKeyName(String a_ListKeyName)
                    throws WTPropertyVetoException
Sets the value of the attribute: LIST_KEY_NAME.

Supported API: false

Parameters:
a_ListKeyName -
Throws:
WTPropertyVetoException

listKeyNameValidate

private void listKeyNameValidate(String a_ListKeyName)
                          throws WTPropertyVetoException
Parameters:
a_ListKeyName -
Throws:
WTPropertyVetoException

getName

public String getName()
Gets the value of the attribute: NAME.

Supported API: false

Returns:
String

setName

public void setName(String a_Name)
             throws WTPropertyVetoException
Sets the value of the attribute: NAME.

Supported API: false

Parameters:
a_Name -
Throws:
WTPropertyVetoException

nameValidate

private void nameValidate(String a_Name)
                   throws WTPropertyVetoException
Parameters:
a_Name -
Throws:
WTPropertyVetoException

equals

public boolean equals(RecentUpdate otherObj,
                      boolean isDifferent)


Supported API: false

Parameters:
otherObj -
isDifferent -
Returns:
boolean

newRecentUpdate

public static RecentUpdate newRecentUpdate(WTObject a,
                                           String key)
                                    throws WTException


Supported API: false

Parameters:
a -
key -
Returns:
RecentUpdate
Throws:
WTException

initialize

protected void initialize(WTObject a,
                          String key)
                   throws WTException


Supported API: false

Parameters:
a -
key -
Throws:
WTException

newRecentUpdate

public static RecentUpdate newRecentUpdate(WTContainer a,
                                           String key)
                                    throws WTException


Supported API: false

Parameters:
a -
key -
Returns:
RecentUpdate
Throws:
WTException

initialize

protected void initialize(WTContainer a,
                          String key)
                   throws WTException


Supported API: false

Parameters:
a -
key -
Throws:
WTException

newRecentUpdate

public static RecentUpdate newRecentUpdate()
                                    throws WTException
Default factory for the class.

Supported API: false

Returns:
RecentUpdate
Throws:
WTException

equals

public boolean equals(Object obj)
Indicates whether the given object is equal to this object from a persistence perspective, by comparing the two objects ObjectIdentifiers. 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

Overrides:
equals in class WTObject
Parameters:
obj -
Returns:
boolean

hashCode

public int hashCode()
Returns a hash code for this object based upon its 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

Overrides:
hashCode in class WTObject
Returns:
int

getName

protected static String getName(Persistable a)
                         throws WTException
Gets the identityString for the given object.

Throws:
WTException

setMaster

private void setMaster(WTObject a)
                throws WTException,
                       WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

toRefString

protected static String toRefString(Persistable a)
                             throws WTException
Gets the object key for the given object. This method will return the referenceString in all the cases except when used with WTPrincipal wherein the reference String is made up of object.toString which would not call any delegates

Throws:
WTException