com.tc.object
Class ObjectID

java.lang.Object
  extended by com.tc.util.AbstractIdentifier
      extended by com.tc.object.ObjectID
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable

public class ObjectID
extends AbstractIdentifier
implements java.io.Serializable

Object representing the ID of any managed object

See Also:
Serialized Form

Field Summary
static long MAX_ID
           
static ObjectID NULL_ID
          The NULL ObjectID
 
Constructor Summary
ObjectID(long id)
          Create an ObjectID with the specified ID
ObjectID(long oid, int gid)
           
 
Method Summary
 int getGroupID()
           
 java.lang.String getIdentifierType()
          Subclasses of AbstractIdentifier specify their "type" by implementing this method and returning a string.
 long getMaskedObjectID()
           
 java.lang.String toString()
           
 
Methods inherited from class com.tc.util.AbstractIdentifier
compareTo, equals, hashCode, isNull, toLong
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NULL_ID

public static final ObjectID NULL_ID
The NULL ObjectID


MAX_ID

public static final long MAX_ID
See Also:
Constant Field Values
Constructor Detail

ObjectID

public ObjectID(long id)
Create an ObjectID with the specified ID

Parameters:
id - The id value, >= 0

ObjectID

public ObjectID(long oid,
                int gid)
Method Detail

getIdentifierType

public java.lang.String getIdentifierType()
Description copied from class: AbstractIdentifier
Subclasses of AbstractIdentifier specify their "type" by implementing this method and returning a string. The type is used in printing toString().

Specified by:
getIdentifierType in class AbstractIdentifier

getGroupID

public int getGroupID()

getMaskedObjectID

public long getMaskedObjectID()

toString

public java.lang.String toString()
Overrides:
toString in class AbstractIdentifier


Copyright © 2010 Terracotta, Inc.. All Rights Reserved.