|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--arlut.csd.ganymede.Invid
An Invid is an immutable object id (an INVariant ID) in the Ganymede system. All objects created in the database have a unique and permanent Invid that identify the object's type and identity. Because of these properties, the Invid can be used as a persistent object pointer type.
Invid's are used extensively in the server to track pointer relationships between objects. Invid's are also used by the client to identify objects to be viewed, edited, deleted, etc. Basically whenever any code in Ganymede deals with a reference to an object, it is done through the use of Invid's.
InvidDBField,
Session,
Serialized Form| Field Summary | |
private int |
num
|
(package private) static long |
serialVersionUID
|
private short |
type
|
| Constructor Summary | |
Invid(java.io.DataInput in)
Receive constructor |
|
Invid(short type,
int num)
|
|
Invid(java.lang.String string)
This is the string constructor.. |
|
| Method Summary | |
static arlut.csd.ganymede.Invid |
createInvid(java.io.DataInput in)
Factory method for Invid's. |
static arlut.csd.ganymede.Invid |
createInvid(short type,
int num)
Receive Factory method for Invid's. |
static arlut.csd.ganymede.Invid |
createInvid(java.lang.String string)
Factory method for Invid's. |
void |
emit(java.io.DataOutput out)
Method to write this Invid out to a stream. |
boolean |
equals(arlut.csd.ganymede.Invid invid)
|
boolean |
equals(java.lang.Object obj)
|
int |
getNum()
|
short |
getType()
|
int |
hashCode()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
static final long serialVersionUID
private short type
private int num
| Constructor Detail |
public Invid(short type,
int num)
public Invid(java.io.DataInput in)
throws java.io.IOException
public Invid(java.lang.String string)
This is the string constructor.. string should be a pair of colon separated numbers, in the form 5:134 where the first number is the short type and the second is the int object number.
| Method Detail |
public static final arlut.csd.ganymede.Invid createInvid(short type,
int num)
Receive Factory method for Invid's. Does nothing fancy now, could be used to do Invid caching/pooling sometime if we so desire.
public static final arlut.csd.ganymede.Invid createInvid(java.io.DataInput in)
throws java.io.IOException
Factory method for Invid's. Does nothing fancy now, could be used to do Invid caching/pooling sometime if we so desire.
java.io.IOExceptionpublic static final arlut.csd.ganymede.Invid createInvid(java.lang.String string)
Factory method for Invid's. String should be a pair of colon separated numbers, in the form 5:134 where the first number is the short type and the second is the int object number.
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic boolean equals(arlut.csd.ganymede.Invid invid)
public int hashCode()
hashCode in class java.lang.Objectpublic short getType()
public int getNum()
public void emit(java.io.DataOutput out)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||