01: /*
02: * Copyright 2002 (C) TJDO.
03: * All rights reserved.
04: *
05: * This software is distributed under the terms of the TJDO License version 1.0.
06: * See the terms of the TJDO License in the documentation provided with this software.
07: *
08: * $Id: SCOID.java,v 1.3 2002/11/08 05:06:26 jackknifebarber Exp $
09: */
10:
11: package com.triactive.jdo.store;
12:
13: /**
14: * A "second-class" object identifier. SCOIDs are used as object identifiers
15: * for classes that have no database extent, such as TJDOSQL result objects.
16: *
17: * <p>The only thing a SCOID tracks is the class of the instance being
18: * identified. Every SCOID is unique within the JVM, which effectively means
19: * universally unique since Serializable is not implemented.
20: *
21: * @author <a href="mailto:mmartin5@austin.rr.com">Mike Martin</a>
22: * @version $Revision: 1.3 $
23: *
24: * @see OID
25: */
26:
27: public final class SCOID {
28: private Class objClass;
29:
30: /**
31: * Constructs a new SCOID to identify an object of the given class.
32: *
33: * @param objClass The class of the instance being identified.
34: */
35:
36: SCOID(Class objClass) {
37: this .objClass = objClass;
38: }
39:
40: /**
41: * Returns the class of the object identified by this SCOID.
42: *
43: * @return The class of the object identified by this SCOID.
44: */
45:
46: public Class getSCOClass() {
47: return objClass;
48: }
49: }
|