01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.object;
05:
06: import com.tc.util.AbstractIdentifier;
07:
08: import java.io.Serializable;
09:
10: /**
11: * Object representing the ID of any managed object
12: *
13: * @author steve
14: */
15: public class ObjectID extends AbstractIdentifier implements
16: Serializable {
17:
18: /**
19: * The NULL ObjectID
20: */
21: public final static ObjectID NULL_ID = new ObjectID();
22:
23: /**
24: * Create an ObjectID with the specified ID
25: * @param id The id value, >= 0
26: */
27: public ObjectID(long id) {
28: super (id);
29: }
30:
31: /**
32: * Create a "null" ObjectID.
33: */
34: private ObjectID() {
35: super ();
36: }
37:
38: public String getIdentifierType() {
39: return "ObjectID";
40: }
41: }
|