Package org.apache.openjpa.persistence
Class GeneratorImpl
- java.lang.Object
 - 
- org.apache.openjpa.persistence.GeneratorImpl
 
 
- 
- 
Field Summary
- 
Fields inherited from interface org.apache.openjpa.persistence.Generator
UUID_HEX, UUID_STRING, UUID_TYPE4_HEX, UUID_TYPE4_STRING 
 - 
 
- 
Constructor Summary
Constructors Constructor Description GeneratorImpl(Seq seq, String name, StoreContext ctx, ClassMetaData meta)Constructor; supply delegate. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidallocate(int additional)Hint to the sequence to allocate additional values up-front for efficiency.Objectcurrent()The current sequence value, or null if the sequence does not support current values.booleanequals(Object other)SeqgetDelegate()Delegate.StringgetName()The sequence name.inthashCode()Objectnext()The next sequence value. 
 - 
 
- 
- 
Constructor Detail
- 
GeneratorImpl
public GeneratorImpl(Seq seq, String name, StoreContext ctx, ClassMetaData meta)
Constructor; supply delegate. 
 - 
 
- 
Method Detail
- 
getDelegate
public Seq getDelegate()
Delegate.- Specified by:
 getDelegatein interfaceGenerator
 
- 
current
public Object 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. 
 - 
 
 -