Interface Seq

All Superinterfaces:
Closeable
All Known Subinterfaces:
JDBCSeq
All Known Implementing Classes:
AbstractJDBCSeq, ClassTableJDBCSeq, DelegatingSeq, NativeJDBCSeq, TableJDBCSeq, TimeSeededSeq, UUIDHexSeq, UUIDStringSeq, UUIDType4HexSeq, UUIDType4StringSeq, ValueTableJDBCSeq

public interface Seq extends Closeable
Internal OpenJPA sequence interface.
Author:
Abe White
  • Field Details

  • Method Details

    • setType

      void setType(int type)
      Set the type of sequence.
    • next

      Return the next value in the sequence.
      Parameters:
      ctx - the current context
      cls - if this is a datastore identity sequence, the persistent class the identity value is for; else null
    • current

      Object current(StoreContext ctx, ClassMetaData cls)
      Return the current value of the sequence, or null if not available.
      Parameters:
      ctx - the current context
      cls - if this is a datastore identity sequence, the persistent class the identity value is for; else null
    • allocate

      void allocate(int additional, StoreContext ctx, ClassMetaData cls)
      Allocate additional values efficiently.
      Parameters:
      ctx - the current context
      cls - if this is a datastore identity sequence, the persistent class the identity value is for; else null
    • close

      void close()
      Free resources used by this sequence.
      Specified by:
      close in interface Closeable