Overview | Package | Class | Tree | Deprecated | Index | Help
| SolarMetric Kodo JDO 3.1.6 generated on August 25 2004
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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.

Method Summary
`boolean` | `equals(Object obj)`
`int` | `hashCode()`
`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 Class type

  The class of the persistent type for this id.

Constructor Detail

### 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.

Method Detail

### 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`

Overview | Package | Class | Tree | Deprecated | Index | Help
| SolarMetric Kodo JDO 3.1.6 generated on August 25 2004
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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