kodo.util
Class Id
java.lang.Object
|
+--kodo.util.Id
- All Implemented Interfaces:
- Serializable
- public class Id
- extends Object
- implements Serializable
Datastore identity type. Implementations may choose to use this type,
or choose to use their own datastore identity values.
- See Also:
- Serialized Form
Field Summary |
long |
id
The primary key value. |
Class |
type
The class of the persistent type for this id. |
Constructor Summary |
Id()
Default constructor. |
Id(long id,
Class cls)
Construct with the given unique identifier and type. |
Id(String str)
Construct from the result of a toString() call on another
instance. |
Id(String str,
Class cls)
Construct from the result of a toString() call on another
instance of a known type. |
Id(String str,
ClassLoader loader)
Construct from the result of a toString() call on another
instance. |
id
public long id
- The primary key value.
type
public Class type
- The class of the persistent type for this id.
Id
public Id()
- Default constructor.
Id
public Id(String str)
- Construct from the result of a
toString()
call on another
instance.
Id
public Id(String str,
ClassLoader loader)
- Construct from the result of a
toString()
call on another
instance.
Id
public Id(String str,
Class cls)
- Construct from the result of a
toString()
call on another
instance of a known type.
Id
public Id(long id,
Class cls)
- Construct with the given unique identifier and type.
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 SolarMetric, Inc. All Rights Reserved.