com.avaje.ebean.config.dbplatform
Class H2SequenceIdGenerator

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

public class H2SequenceIdGenerator
extends SequenceIdGenerator

    

H2 specific sequence Id Generator.


Field Summary
 
Fields inherited from interface com.avaje.ebean.config.dbplatform.IdGenerator
AUTO_UUID
 
Constructor Summary
H2SequenceIdGenerator(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

H2SequenceIdGenerator

public H2SequenceIdGenerator(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.