com.avaje.ebean.config.dbplatform
Class OracleSequenceIdGenerator

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

public class OracleSequenceIdGenerator
extends SequenceIdGenerator

    

Oracle specific sequence Id Generator.


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

OracleSequenceIdGenerator

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