Package org.apache.openjpa.persistence
Class GeneratorImpl
java.lang.Object
org.apache.openjpa.persistence.GeneratorImpl
- All Implemented Interfaces:
Generator
Represents a store sequence.
- Since:
- 0.4.1
- Author:
- Abe White
-
Field Summary
Fields inherited from interface org.apache.openjpa.persistence.Generator
UUID_HEX, UUID_STRING, UUID_TYPE4_HEX, UUID_TYPE4_STRING
-
Constructor Summary
ConstructorDescriptionGeneratorImpl
(Seq seq, String name, StoreContext ctx, ClassMetaData meta) Constructor; supply delegate. -
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.boolean
Delegate.getName()
The sequence name.int
hashCode()
next()
The next sequence value.
-
Constructor Details
-
GeneratorImpl
Constructor; supply delegate.
-
-
Method Details
-
getDelegate
Delegate.- Specified by:
getDelegate
in interfaceGenerator
-
getName
Description copied from interface:Generator
The sequence name. -
next
Description copied from interface:Generator
The next sequence value. -
current
Description copied from interface:Generator
The current sequence value, or null if the sequence does not support current values. -
allocate
public void allocate(int additional) Description copied from interface:Generator
Hint to the sequence to allocate additional values up-front for efficiency. -
hashCode
public int hashCode() -
equals
-