Package org.apache.openjpa.persistence
Interface Generator
-
- All Known Implementing Classes:
GeneratorImpl
public interface GeneratorRepresents a store sequence.- Since:
- 0.4.1
- Author:
- Abe White
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringUUID_HEXstatic java.lang.StringUUID_STRINGstatic java.lang.StringUUID_TYPE4_HEXstatic java.lang.StringUUID_TYPE4_STRING
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidallocate(int additional)Hint to the sequence to allocate additional values up-front for efficiency.java.lang.Objectcurrent()The current sequence value, or null if the sequence does not support current values.SeqgetDelegate()Deprecated.cast toGeneratorImplinstead.java.lang.StringgetName()The sequence name.java.lang.Objectnext()The next sequence value.
-
-
-
Field Detail
-
UUID_HEX
static final java.lang.String UUID_HEX
- See Also:
- Constant Field Values
-
UUID_STRING
static final java.lang.String UUID_STRING
- See Also:
- Constant Field Values
-
UUID_TYPE4_STRING
static final java.lang.String UUID_TYPE4_STRING
- See Also:
- Constant Field Values
-
UUID_TYPE4_HEX
static final java.lang.String UUID_TYPE4_HEX
- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
java.lang.String getName()
The sequence name.
-
next
java.lang.Object next()
The next sequence value.
-
current
java.lang.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 Seq getDelegate()
Deprecated.cast toGeneratorImplinstead. This method pierces the published-API boundary, as does the SPI cast.
-
-