com.intersys.objects
Class Oid

java.lang.Object
  extended bycom.intersys.objects.Oid
All Implemented Interfaces:
Comparable, Serializable

public class Oid
extends Object
implements Serializable, Comparable

See Also:
Id, Serialized Form

Constructor Summary
Oid(byte[] binarydata)
           
Oid(Id id, String classname)
           
Oid(int id)
           
Oid(int id, String classname)
           
Oid(Object list)
           
Oid(String id)
           
Oid(String id, String classname)
           
 
Method Summary
 int compareTo(Object obj)
           
 boolean equals(Object obj)
           
 String getClassName()
           
 byte[] getData()
           
 Id getId()
          Returns object identity for this object without it's class name.
 int hashCode()
           
 String toIdString()
          Deprecated. Please use getId().toString() instead.
 String toString()
           
 boolean undefined()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Oid

public Oid(String id,
           String classname)

Oid

public Oid(String id)

Oid

public Oid(Id id,
           String classname)

Oid

public Oid(int id,
           String classname)

Oid

public Oid(int id)

Oid

public Oid(Object list)

Oid

public Oid(byte[] binarydata)
Method Detail

getData

public byte[] getData()

getClassName

public String getClassName()
                    throws CacheException
Throws:
CacheException

getId

public Id getId()
         throws CacheException
Returns object identity for this object without it's class name.

Returns:
com.intersys.objects.Id object, corresponding to this object Oid.
Throws:
CacheException

toIdString

public String toIdString()
Deprecated. Please use getId().toString() instead.


undefined

public boolean undefined()
                  throws SystemError
Throws:
SystemError

toString

public String toString()

equals

public boolean equals(Object obj)

compareTo

public int compareTo(Object obj)
Specified by:
compareTo in interface Comparable

hashCode

public int hashCode()