KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > triactive > jdo > store > SCOID


1 /*
2  * Copyright 2002 (C) TJDO.
3  * All rights reserved.
4  *
5  * This software is distributed under the terms of the TJDO License version 1.0.
6  * See the terms of the TJDO License in the documentation provided with this software.
7  *
8  * $Id: SCOID.java,v 1.3 2002/11/08 05:06:26 jackknifebarber Exp $
9  */

10
11 package com.triactive.jdo.store;
12
13
14 /**
15  * A "second-class" object identifier. SCOIDs are used as object identifiers
16  * for classes that have no database extent, such as TJDOSQL result objects.
17  *
18  * <p>The only thing a SCOID tracks is the class of the instance being
19  * identified. Every SCOID is unique within the JVM, which effectively means
20  * universally unique since Serializable is not implemented.
21  *
22  * @author <a HREF="mailto:mmartin5@austin.rr.com">Mike Martin</a>
23  * @version $Revision: 1.3 $
24  *
25  * @see OID
26  */

27
28 public final class SCOID
29 {
30     private Class JavaDoc objClass;
31
32
33     /**
34      * Constructs a new SCOID to identify an object of the given class.
35      *
36      * @param objClass The class of the instance being identified.
37      */

38
39     SCOID(Class JavaDoc objClass)
40     {
41         this.objClass = objClass;
42     }
43
44
45     /**
46      * Returns the class of the object identified by this SCOID.
47      *
48      * @return The class of the object identified by this SCOID.
49      */

50
51     public Class JavaDoc getSCOClass()
52     {
53         return objClass;
54     }
55 }
56
Popular Tags