com.softwareag.centrasite.appl.framework.beans
Class Identity

java.lang.Object
  extended by com.softwareag.centrasite.appl.framework.beans.Identity

public class Identity
extends java.lang.Object

Identity class to identify registry beans. Contains key and checkpoint name. Revision beans have the same keys but different checkpoint names (labels).


Constructor Summary
Identity()
          Default constructor.
Identity(Key key, java.lang.String checkpoint)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getCheckpoint()
           
 Key getKey()
           
 int hashCode()
           
 boolean isRevision()
          Checks if there is checkpoint information.
 void setCheckpoint(java.lang.String checkpoint)
           
 void setKey(Key key)
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Identity

public Identity()
Default constructor.


Identity

public Identity(Key key,
                java.lang.String checkpoint)
Parameters:
key -
checkpoint -
Method Detail

getKey

public Key getKey()
Returns:
the key

setKey

public void setKey(Key key)
Parameters:
key - the key to set

getCheckpoint

public java.lang.String getCheckpoint()
Returns:
the checkpoint

setCheckpoint

public void setCheckpoint(java.lang.String checkpoint)
Parameters:
checkpoint - the checkpoint to set

isRevision

public boolean isRevision()
Checks if there is checkpoint information.

Returns:
boolean

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object