com.avaje.ebean.config.dbplatform
Class DB2SequenceIdGenerator

java.lang.Object
  extended by com.avaje.ebean.config.dbplatform.SequenceIdGenerator
      extended by com.avaje.ebean.config.dbplatform.DB2SequenceIdGenerator
All Implemented Interfaces:
IdGenerator

public class DB2SequenceIdGenerator
extends SequenceIdGenerator

DB2 specific sequence Id Generator.


Field Summary
 
Fields inherited from interface com.avaje.ebean.config.dbplatform.IdGenerator
AUTO_UUID
 
Constructor Summary
DB2SequenceIdGenerator(BackgroundExecutor be, DataSource ds, String seqName, int batchSize)
          Construct given a dataSource and sql to return the next sequence value.
 
Method Summary
 String getSql(int batchSize)
           
 
Methods inherited from class com.avaje.ebean.config.dbplatform.SequenceIdGenerator
getName, isDbSequence, nextId, preAllocateIds
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DB2SequenceIdGenerator

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

Method Detail

getSql

public String getSql(int batchSize)
Specified by:
getSql in class SequenceIdGenerator


Copyright © 2010. All Rights Reserved.