org.datanucleus.store
Interface NucleusSequence

All Known Implementing Classes:
JDOSequenceImpl

public interface NucleusSequence

Sequence of identifiers.

Version:
$Revision: 1.2 $

Method Summary
 void allocate(int amount)
          Method to allocate an amount of values.
 java.lang.Object current()
          Accessor for the current value object.
 long currentValue()
          Accessor for the current value.
 java.lang.String getName()
          Accessor for the name of the sequence.
 java.lang.Object next()
          Accessor for the next value object.
 long nextValue()
          Accessor for the next value.
 

Method Detail

allocate

void allocate(int amount)
Method to allocate an amount of values.

Parameters:
amount - The amount

current

java.lang.Object current()
Accessor for the current value object.

Returns:
Current value object

currentValue

long currentValue()
Accessor for the current value.

Returns:
Current value

getName

java.lang.String getName()
Accessor for the name of the sequence.

Returns:
Name of the sequence

next

java.lang.Object next()
Accessor for the next value object.

Returns:
Next value object

nextValue

long nextValue()
Accessor for the next value.

Returns:
next value


Copyright © 2009. All Rights Reserved.