|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.core.foundation.ObjectId
public class ObjectId
This class defines a unique identifier for the object in a particular datastore. It uses a long to represnet the identity of persistent objects
PersistentObject
,
Serialized FormConstructor Summary | |
---|---|
ObjectId()
The default constructore is used to instantiate an instance of this class without initializing the id attribute |
|
ObjectId(long id)
Construct an object with the specified id |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object object)
Determine whether the specified object is oequal to this object. |
long |
getId()
Return the object identifier |
int |
hashCode()
The hashcode is used to identify elements in the hastable. |
void |
setId(long id)
Set the object identifier |
java.lang.String |
toString()
Return a string representation of this object. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ObjectId()
public ObjectId(long id)
id
- identity of the objectMethod Detail |
---|
public void setId(long id)
id
- public long getId()
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
object
- the object to test against
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |