SolarMetric Kodo JDO 3.1.6 generated on August 25 2004

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

SolarMetric Kodo JDO 3.1.6 generated on August 25 2004

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