SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool

com.solarmetric.rd.kodo.util
Class ObjectIds.Id

java.lang.Object
  |
  +--com.solarmetric.rd.kodo.util.ObjectIds.Id
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
ObjectIds

public static class ObjectIds.Id
extends java.lang.Object
implements java.io.Serializable

Type for generated data store identity classes.

See Also:
Serialized Form

Field Summary
 long id
          The primary key value.
 java.lang.Class type
          For persistent instances, this type should correspond to the least-derived persistence capable ancestor of the type being described.
 
Constructor Summary
ObjectIds.Id()
          Default constructor.
ObjectIds.Id(long id, java.lang.Class cls)
          Construct with the given unique identifier and type.
ObjectIds.Id(long id, com.solarmetric.rd.kodo.meta.ClassMetaData meta)
          Construct with the given unique identifier and type.
ObjectIds.Id(java.lang.String str)
          Construct from the result of a toString() call on another instance.
ObjectIds.Id(java.lang.String str, java.lang.ClassLoader loader)
          Construct from the result of a toString() call on another instance.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

id

public long id
The primary key value.


type

public java.lang.Class type
For persistent instances, this type should correspond to the least-derived persistence capable ancestor of the type being described. Thus, all persistence capable types in an inheritance tree should have the same type value.

Constructor Detail

ObjectIds.Id

public ObjectIds.Id()
Default constructor.


ObjectIds.Id

public ObjectIds.Id(java.lang.String str)
Construct from the result of a toString() call on another instance.


ObjectIds.Id

public ObjectIds.Id(java.lang.String str,
                    java.lang.ClassLoader loader)
Construct from the result of a toString() call on another instance.


ObjectIds.Id

public ObjectIds.Id(long id,
                    com.solarmetric.rd.kodo.meta.ClassMetaData meta)
Construct with the given unique identifier and type. The type will be traversed to find the least-derived persistence capable superclass.


ObjectIds.Id

public ObjectIds.Id(long id,
                    java.lang.Class cls)
Construct with the given unique identifier and type. The type must be the least-derived persistent type for this inheritance heirarchy.

Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

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

SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool

Copyright 2001,2002,2003 SolarMetric, Inc. All Rights Reserved.