com.solarmetric.kodo.util
Class ObjectIds.Id
java.lang.Object
|
+--com.solarmetric.kodo.util.ObjectIds.Id
- All Implemented Interfaces:
- Serializable
- Enclosing class:
- ObjectIds
- public static class ObjectIds.Id
- extends Object
- implements Serializable
Type for generated data store identity classes.
- See Also:
- Serialized Form
|
Field Summary |
long |
id
The primary key value. |
Class |
type
For persistent instances, this type should correspond to the
least-derived persistence capable ancestor of the type being
described. |
id
public long id
- The primary key value.
type
public 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.
ObjectIds.Id
public ObjectIds.Id()
- Default constructor.
ObjectIds.Id
public ObjectIds.Id(String str)
- Construct from the result of a
toString() call on another
instance.
ObjectIds.Id
public ObjectIds.Id(String str,
ClassResolver loader)
- Construct from the result of a
toString() call on another
instance.
ObjectIds.Id
public ObjectIds.Id(long id,
Class type)
- Construct with the given unique identifier and type. The type
will be traversed to find the least-derived persistence capable
superclass.
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
toString
public String toString()
- Overrides:
toString in class Object
Copyright 2001,2002,2003 SolarMetric, Inc. All Rights Reserved.