|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.isam.exehda.HierarchicalId | +--org.isam.exehda.ObjectId
Uniquely identifies an EXEHDA Object (formelly an OX) in the system. Unicity is guaranteed by using the ID of the host were the object was first instantiated, what it supposed to be unique in the system, as the parent id and localy generated unique 32 bits long interger generated at that host as local id.
Constructor Summary | |
ObjectId()
Creates a new ObjectId instance.
|
Method Summary | |
boolean |
equals(java.lang.Object o)
Implements HierarchicalId equality semantics. |
HostId |
getHost()
Returns the base host of this OX (i.e. the host were the OX was first instantiated). |
protected java.lang.Object |
getLocalId()
Subclasses must overwrite this method and return an Object representation of the local id. |
protected java.lang.String |
getType()
Subclasses must overwrite this method and return a String
representation of the ID's type. |
int |
hashCode()
Implements the hash code semantics for HierarchicalId objects so
that those object would be used as keys in a java.util Hashtable .
|
Methods inherited from class org.isam.exehda.HierarchicalId |
getParentId, isRoot, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ObjectId()
ObjectId
instance.
Assumes HostId.getLocalHost() as the parent ID.
Method Detail |
public HostId getHost()
public boolean equals(java.lang.Object o)
HierarchicalId
equals
in class HierarchicalId
o
- an Object
value
public int hashCode()
HierarchicalId
HierarchicalId
objects so
that those object would be used as keys in a java.util Hashtable
.
This is a reference implementation. Subclasses are highly encouraged to
overwrite this method with faster (optimized) implementations.
hashCode
in class HierarchicalId
protected final java.lang.String getType()
HierarchicalId
String
representation of the ID's type.
getType
in class HierarchicalId
String
valueprotected final java.lang.Object getLocalId()
HierarchicalId
getLocalId()
is invoked.
getLocalId
in class HierarchicalId
Object
value
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |