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.runtime
Interface SequenceGenerator

All Known Implementing Classes:
  TimeSeededSequenceGenerator

public interface SequenceGenerator

A generator for datastore sequences. This can be used for assigning sequences to application identity primary key fields.

Method Summary
`boolean` | `ensureCapacity(int count)` Ensures that this sequence generator has sufficient capacity readily available to provide `count` new sequence values.
`Number` | `getNext()` Deprecated. Use `next()` instead. Implementations should ensure that the value returned is within the range of a `long`, and does not have a decimal part.
`long` | `next()` Returns the next `long` in the sequence.

Method Detail

### getNext

    public Number getNext()

  Deprecated. Use `next()` instead. Implementations should ensure that the value returned is within the range of a `long`, and does not have a decimal part.

  Returns the next `Number` in the sequence.

### next

    public long next()

  Returns the next `long` in the sequence.

### ensureCapacity

    public boolean ensureCapacity(int count)

  Ensures that this sequence generator has sufficient capacity readily available to provide `count` new sequence values.
  Returns:
    `true` if the generator can service `count` requests without returning to the datastore; else `false`
  Since:
    3.1.0

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.