Class JOP.persist.ObjectIdentifier
All Packages Class Hierarchy This Package Previous Next Index Home
Class JOP.persist.ObjectIdentifier
java.lang.Object
|
+----JOP.persist.ObjectIdentifier
- public class ObjectIdentifier
- extends Object
This class encapsulates the concept of an object
identifier. The class includes both the identifier
and the object to which it refers to.
There are several utility methods that support formatting
of object identifiers.
-
USER_HIGH
- High limit of OID's suitable for use by
user applications.
-
USER_LOW
- Low limit of OID's suitable for use by
user applications.
-
ObjectIdentifier(long)
- INTERNAL METHOD
-
ObjectIdentifier(Object)
- INTERNAL METHOD
-
ObjectIdentifier(Object, long)
- INTERNAL METHOD
-
defineUserOid(Object, long)
- This method allows a user program pre-define
an OID for an object.
-
equals(Object)
-
-
getChecksum()
- INTERNAL METHOD
-
getObject()
- INTERNAL METHOD
-
getOid()
- Get the 'long' representation of the object's identifier
-
hashCode()
-
-
isOnDatabase()
- INTERNAL METHOD
-
oid(long)
- A useful method that takes an object identifier and returns
a string in xxxx-xxxx-xxxx-xxxx format.
-
oid(String)
-
-
setChecksum(long)
- This method remembers the checksum of the object
so that it can be used to optimise updates
if the object has not changed.
-
setObject(Object)
- Set the object's value and then spin through all of
the queued definitions and set them to the appropriate
value.
-
setOnDatabase()
- INTERNAL METHOD
-
toString()
-
USER_LOW
public final static long USER_LOW
- Low limit of OID's suitable for use by
user applications.
USER_HIGH
public final static long USER_HIGH
- High limit of OID's suitable for use by
user applications.
ObjectIdentifier
public ObjectIdentifier(Object o)
- INTERNAL METHOD
ObjectIdentifier
public ObjectIdentifier(Object o,
long i)
- INTERNAL METHOD
ObjectIdentifier
public ObjectIdentifier(long xid)
- INTERNAL METHOD
defineUserOid
public static void defineUserOid(Object o,
long oid) throws PersistException
- This method allows a user program pre-define
an OID for an object. This must be called before the
object has been streamed out, otherwise an
automatically assigned random ID will be generated.
User identifiers must be in the range JOP.persist.OidGenerator.USER_LOW
to JOP.persist.OidGenerator.USER_HIGH
Caution: This method will be moved to PersistManager.
oid
public static String oid(long oid)
- A useful method that takes an object identifier and returns
a string in xxxx-xxxx-xxxx-xxxx format.
oid
public static long oid(String oid)
toString
public String toString()
- Overrides:
- toString in class Object
equals
public boolean equals(Object o)
- Overrides:
- equals in class Object
hashCode
public int hashCode()
- Overrides:
- hashCode in class Object
getOid
public long getOid()
- Get the 'long' representation of the object's identifier
setObject
public void setObject(Object o) throws Exception
- Set the object's value and then spin through all of
the queued definitions and set them to the appropriate
value.
INTERNAL METHOd
getObject
public Object getObject()
- INTERNAL METHOD
getChecksum
public long getChecksum()
- INTERNAL METHOD
setChecksum
public void setChecksum(long c)
- This method remembers the checksum of the object
so that it can be used to optimise updates
if the object has not changed.
INTERNAL METHOD
setOnDatabase
public void setOnDatabase()
- INTERNAL METHOD
isOnDatabase
public boolean isOnDatabase()
- INTERNAL METHOD
All Packages Class Hierarchy This Package Previous Next Index Home