Package 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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
allocate
(int additional) Hint to the sequence to allocate additional values up-front for efficiency.current()
The current sequence value, or null if the sequence does not support current values.Deprecated.getName()
The sequence name.next()
The next sequence value.
-
Field Details
-
UUID_HEX
- See Also:
-
UUID_STRING
- See Also:
-
UUID_TYPE4_STRING
- See Also:
-
UUID_TYPE4_HEX
- See Also:
-
-
Method Details
-
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. -
getDelegate
Deprecated.cast toGeneratorImpl
instead. This method pierces the published-API boundary, as does the SPI cast.
-
GeneratorImpl
instead.