org.apache.openjpa.persistence
Interface Generator

All Known Implementing Classes:
GeneratorImpl

public interface Generator

Represents a store sequence.

Since:
0.4.1
Author:
Abe White

Field Summary
static String UUID_HEX
           
static String UUID_STRING
           
 
Method Summary
 void allocate(int additional)
          Hint to the sequence to allocate additional values up-front for efficiency.
 Object current()
          The current sequence value, or null if the sequence does not support current values.
 Seq getDelegate()
          Delegate.
 String getName()
          The sequence name.
 Object next()
          The next sequence value.
 

Field Detail

UUID_HEX

static final String UUID_HEX
See Also:
Constant Field Values

UUID_STRING

static final String UUID_STRING
See Also:
Constant Field Values
Method Detail

getDelegate

Seq getDelegate()
Delegate.


getName

String getName()
The sequence name.


next

Object next()
The next sequence value.


current

Object current()
The current sequence value, or null if the sequence does not support current values.


allocate

void allocate(int additional)
Hint to the sequence to allocate additional values up-front for efficiency.



Copyright © 2006 Apache Software Foundation. All Rights Reserved.