Class GeneratorImpl

java.lang.Object
org.apache.openjpa.persistence.GeneratorImpl
All Implemented Interfaces:
Generator

public class GeneratorImpl extends Object implements Generator
Represents a store sequence.
Since:
0.4.1
Author:
Abe White
  • Constructor Details

  • Method Details

    • getDelegate

      public Seq getDelegate()
      Delegate.
      Specified by:
      getDelegate in interface Generator
    • getName

      public String getName()
      Description copied from interface: Generator
      The sequence name.
      Specified by:
      getName in interface Generator
    • next

      public Object next()
      Description copied from interface: Generator
      The next sequence value.
      Specified by:
      next in interface Generator
    • current

      public Object current()
      Description copied from interface: Generator
      The current sequence value, or null if the sequence does not support current values.
      Specified by:
      current in interface Generator
    • allocate

      public void allocate(int additional)
      Description copied from interface: Generator
      Hint to the sequence to allocate additional values up-front for efficiency.
      Specified by:
      allocate in interface Generator
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object