com.ibm.tws.objects.types
Class ModifyData

java.lang.Object
  extended bycom.ibm.tws.objects.types.ModifyData
All Implemented Interfaces:
java.io.Serializable

public class ModifyData
extends java.lang.Object
implements java.io.Serializable

This utility class wraps the TWS object modify information, including the name of the last user who has modified the object, and the last modification time.

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
          Copyright.
 
Constructor Summary
ModifyData()
          Creates an empty ModifyData object.
ModifyData(java.lang.String user, java.util.Date time)
          Creates a ModifyData object with the specified user name and last modify time.
 
Method Summary
 boolean equals(java.lang.Object object)
          Returns true if all fields of this ModifyData object are equal to those of the given one.
 java.lang.String getModifiedBy()
          Returns the name of the last user who has modified the object.
 java.util.Date getModifiedTime()
          Returns the last time the object was modified.
 int hashCode()
          Returns a hash code for this ModifyData object.
 void set(java.lang.String user, java.util.Date time)
          Sets both the name of the last user who has modified the object and the last time the object was modified.
 void setModifiedBy(java.lang.String user)
          Sets the name of the last user who has modified the object.
 void setModifiedTime(java.util.Date time)
          Sets the last time the object was last modified.
 java.lang.String toString()
          Returns a string representation of this ModifyData object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
Copyright.

Constructor Detail

ModifyData

public ModifyData()
Creates an empty ModifyData object.


ModifyData

public ModifyData(java.lang.String user,
                  java.util.Date time)
Creates a ModifyData object with the specified user name and last modify time.

Parameters:
user - The name of the last user who has modified the object.
time - The last time the object was modified.
Method Detail

getModifiedBy

public java.lang.String getModifiedBy()
Returns the name of the last user who has modified the object.

Returns:
The name of the last user who has modified the object.

getModifiedTime

public java.util.Date getModifiedTime()
Returns the last time the object was modified.

Returns:
The last time the object was modified.

setModifiedBy

public void setModifiedBy(java.lang.String user)
Sets the name of the last user who has modified the object.

Parameters:
user - The name of the last user who has modified the object.

setModifiedTime

public void setModifiedTime(java.util.Date time)
Sets the last time the object was last modified.

Parameters:
time - The last time the object was modified.

set

public void set(java.lang.String user,
                java.util.Date time)
Sets both the name of the last user who has modified the object and the last time the object was modified.

Parameters:
user - The name of the last user who has modified the object.
time - The last time the object was modified.

equals

public boolean equals(java.lang.Object object)
Returns true if all fields of this ModifyData object are equal to those of the given one.

Parameters:
object - The object to be compared with this one.
Returns:
True if this object equals to the given one.

hashCode

public int hashCode()
Returns a hash code for this ModifyData object.

Returns:
The object's hash code.

toString

public java.lang.String toString()
Returns a string representation of this ModifyData object.

Returns:
A text string including all ModifyData fields.


Copyright © 2005 IBM All Rights Reserved.