Class DB2SequenceIdGenerator

java.lang.Object
io.ebean.config.dbplatform.SequenceIdGenerator
io.ebean.config.dbplatform.SequenceBatchIdGenerator
io.ebean.platform.db2.DB2SequenceIdGenerator
All Implemented Interfaces:
io.ebean.config.dbplatform.PlatformIdGenerator

public class DB2SequenceIdGenerator extends io.ebean.config.dbplatform.SequenceBatchIdGenerator
DB2 specific sequence Id Generator.
  • Field Summary

    Fields inherited from class io.ebean.config.dbplatform.SequenceIdGenerator

    allocationSize, backgroundExecutor, currentlyBackgroundLoading, dataSource, idList, log, seqName

    Fields inherited from interface io.ebean.config.dbplatform.PlatformIdGenerator

    AUTO_UUID
  • Constructor Summary

    Constructors
    Constructor
    Description
    DB2SequenceIdGenerator(io.ebean.BackgroundExecutor be, DataSource ds, String seqName, int batchSize)
    Construct given a dataSource and sql to return the next sequence value.
  • Method Summary

    Modifier and Type
    Method
    Description
    getSql(int batchSize)
     

    Methods inherited from class io.ebean.config.dbplatform.SequenceBatchIdGenerator

    preAllocateIds, readIds

    Methods inherited from class io.ebean.config.dbplatform.SequenceIdGenerator

    getMoreIds, getName, isDbSequence, loadInBackground, nextId

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DB2SequenceIdGenerator

      public DB2SequenceIdGenerator(io.ebean.BackgroundExecutor be, DataSource ds, String seqName, int batchSize)
      Construct given a dataSource and sql to return the next sequence value.
  • Method Details

    • getSql

      public String getSql(int batchSize)
      Specified by:
      getSql in class io.ebean.config.dbplatform.SequenceIdGenerator