Used before creating large batches where you know the count and want to pre pool and id range larger than the default to avoid the DB round trips to keep incrementing the sequence in the table. YOU DO NOT WANT to use this repeatedly. In this implementation this forces a call to the injected primary idGenerator (jdbcBatchIdGen?) with the specified batchSize and erases/looses forever the ids that are currently in memory. This is fine if you don't care about a possible gap in the ids.
Constructor and description |
---|
PooledIdGenerator.IdTuple
(long currentId, long batchSize) |