|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Number
net.sf.jso.util.JSOOID
Inteface for storable object identification. Object identification is
represented by a long
.
Constructor Summary | |
JSOOID()
Constucts the OID. |
|
JSOOID(long anOID)
Constucts the OID. |
|
JSOOID(java.lang.Object id)
Constucts the OID. |
Method Summary | |
byte |
byteValue()
|
java.lang.Object |
clone()
Creates and returns a copy of this OID. |
int |
compareTo(java.lang.Object o)
Compares the OID wiht anoter one. |
double |
doubleValue()
|
boolean |
equals(java.lang.Object o)
Indicates whether some other OID is "equal to" this one. |
float |
floatValue()
|
long |
getOID()
Returns the OID long identification. |
int |
hashCode()
Returns a hash code value for the OID. |
int |
intValue()
|
long |
longValue()
|
static JSOOID |
safellyCast(OID oid)
Makes a cast from OID to JSOOID. |
short |
shortValue()
|
java.lang.String |
toString()
Returns a string representation of the OID. |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public JSOOID()
public JSOOID(long anOID)
anOID
- A long identification.public JSOOID(java.lang.Object id) throws java.lang.IllegalArgumentException
id
- A string or a Number
with a representation of an object
identification.Method Detail |
public long getOID()
public int compareTo(java.lang.Object o) throws java.lang.ClassCastException
compareTo
in interface java.lang.Comparable
o
- The object to be compared
java.lang.ClassCastException
- If o is not instance of JSOOOID
.public boolean equals(java.lang.Object o)
o
- The object with which to compare.
true
if the OID is the same as the OID argument;
false
otherwise.public int hashCode()
public java.lang.String toString()
public java.lang.Object clone()
public byte byteValue()
public double doubleValue()
public float floatValue()
public int intValue()
public long longValue()
public short shortValue()
public static JSOOID safellyCast(OID oid) throws StorageException
oid
- A reference to a potential JSOOID.
StorageException
- If oid is not a JSOOID.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |