|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.metamatrix.common.namedobject.BaseID com.metamatrix.common.config.api.ComponentObjectID com.metamatrix.common.config.api.ConfigurationID com.metamatrix.common.config.api.LockedConfigurationID
public class LockedConfigurationID
This class acts as a wrapper around a single ConfigurationID, denoting that ID as being locked. However, this lock wrapper, since it extends ConfigurationID, can be treated like a ConfigurationID. In other words, this class uses the Decorator pattern to add a locked attribute to any ConfigurationID instance.
Field Summary |
---|
Fields inherited from class com.metamatrix.common.namedobject.BaseID |
---|
atomicNames, DELIMITER, fullName, WILDCARD |
Constructor Summary | |
---|---|
LockedConfigurationID(ConfigurationID id,
java.lang.String versionName,
java.lang.String lockHolder,
long lockAcquiredAt)
Create a locked wrapper around the specified MetadataID instance. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Return a deep cloned instance of this object. |
int |
compareTo(java.lang.Object obj)
Compares this object to another. |
boolean |
equals(java.lang.Object obj)
Returns true if the specified object is semantically equal to this instance. |
java.lang.String |
getLockHolder()
|
ConfigurationID |
getOriginalID()
|
java.util.Date |
getTimeOfAcquisition()
|
long |
getTimeOfAcquisitionAsLong()
|
java.lang.String |
getVersion()
|
Methods inherited from class com.metamatrix.common.namedobject.BaseID |
---|
compareToByName, computeHashCode, getFullName, getName, getNameComponent, getNameComponents, getParentFullName, hashCode, hasParent, size, toString, updateHashCode |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LockedConfigurationID(ConfigurationID id, java.lang.String versionName, java.lang.String lockHolder, long lockAcquiredAt)
configrationName
- is the configuration that is to be locked.versionName
- along with configurationName uniquely identifies the configuration
java.lang.IllegalArgumentException
- if the ID is nullMethod Detail |
---|
public ConfigurationID getOriginalID()
public java.lang.String getVersion()
public java.lang.String getLockHolder()
public long getTimeOfAcquisitionAsLong()
public java.util.Date getTimeOfAcquisition()
public int compareTo(java.lang.Object obj)
equals()
.
compareTo
in interface java.lang.Comparable
compareTo
in class BaseID
obj
- the object that this instance is to be compared to.
java.lang.IllegalArgumentException
- if the specified object reference is null
java.lang.ClassCastException
- if the specified object's type prevents it
from being compared to this instance.public boolean equals(java.lang.Object obj)
compareTo()
.
equals
in class BaseID
obj
- the object that this instance is to be compared to.
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class BaseID
java.lang.CloneNotSupportedException
- if this object cannot be cloned (i.e., only objects in
Defaults
cannot be cloned).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |