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, java.lang.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.java.lang.Objectcurrent()The current sequence value, or null if the sequence does not support current values.booleanequals(java.lang.Object other)SeqgetDelegate()Delegate.java.lang.StringgetName()The sequence name.inthashCode()java.lang.Objectnext()The next sequence value.
-
-
-
Constructor Detail
-
GeneratorImpl
public GeneratorImpl(Seq seq, java.lang.String name, StoreContext ctx, ClassMetaData meta)
Constructor; supply delegate.
-
-
Method Detail
-
getDelegate
public Seq getDelegate()
Delegate.- Specified by:
getDelegatein interfaceGenerator
-
getName
public java.lang.String getName()
Description copied from interface:GeneratorThe sequence name.
-
next
public java.lang.Object next()
Description copied from interface:GeneratorThe next sequence value.
-
current
public java.lang.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.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
-