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 void
allocate(int additional)
Hint to the sequence to allocate additional values up-front for efficiency.java.lang.Object
current()
The current sequence value, or null if the sequence does not support current values.boolean
equals(java.lang.Object other)
Seq
getDelegate()
Delegate.java.lang.String
getName()
The sequence name.int
hashCode()
java.lang.Object
next()
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:
getDelegate
in interfaceGenerator
-
getName
public java.lang.String getName()
Description copied from interface:Generator
The sequence name.
-
next
public java.lang.Object next()
Description copied from interface:Generator
The next sequence value.
-
current
public java.lang.Object 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()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
-