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
ConstructorsConstructorDescriptionGeneratorImpl(Seq seq, String name, StoreContext ctx, ClassMetaData meta) Constructor; supply delegate. -
Method Summary
Modifier and TypeMethodDescriptionvoidallocate(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.booleanDelegate.getName()The sequence name.inthashCode()next()The next sequence value.
-
Constructor Details
-
GeneratorImpl
Constructor; supply delegate.
-
-
Method Details
-
getDelegate
Delegate.- Specified by:
getDelegatein interfaceGenerator
-
getName
Description copied from interface:GeneratorThe sequence name. -
next
Description copied from interface:GeneratorThe next sequence value. -
current
Description copied from interface:GeneratorThe current sequence value, or null if the sequence does not support current values. -
allocate
public void allocate(int additional) Description copied from interface:GeneratorHint to the sequence to allocate additional values up-front for efficiency. -
hashCode
public int hashCode() -
equals
-