Class PostgresSequenceIdGenerator
- java.lang.Object
-
- io.ebean.config.dbplatform.SequenceIdGenerator
-
- io.ebean.config.dbplatform.SequenceBatchIdGenerator
-
- io.ebean.config.dbplatform.postgres.PostgresSequenceIdGenerator
-
- All Implemented Interfaces:
PlatformIdGenerator
public class PostgresSequenceIdGenerator extends SequenceBatchIdGenerator
Postgres specific sequence Id Generator.
-
-
Field Summary
-
Fields inherited from interface io.ebean.config.dbplatform.PlatformIdGenerator
AUTO_UUID
-
-
Constructor Summary
Constructors Constructor Description PostgresSequenceIdGenerator(BackgroundExecutor be, DataSource ds, String seqName, int batchSize)
Construct given a dataSource and sql to return the next sequence value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getSql(int batchSize)
-
Methods inherited from class io.ebean.config.dbplatform.SequenceBatchIdGenerator
preAllocateIds
-
Methods inherited from class io.ebean.config.dbplatform.SequenceIdGenerator
getName, isDbSequence, nextId
-
-
-
-
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 classSequenceIdGenerator
-
-