com.avaje.ebean.config.dbplatform
Class PostgresSequenceIdGenerator

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

public class PostgresSequenceIdGenerator
extends SequenceIdGenerator

Postgres specific sequence Id Generator.


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

PostgresSequenceIdGenerator

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