Cumulus4j API
Class Cumulus4jIncrementGenerator

  extended by
      extended by
          extended by
All Implemented Interfaces:

public class Cumulus4jIncrementGenerator
extends AbstractDatastoreGenerator

ValueGenerator implementation generating values by incrementing a counter.

Marco หงุ่ยตระกูล-Schulze - marco at nightlabs dot de

Field Summary
Fields inherited from class
connectionProvider, storeMgr
Fields inherited from class
allocationSize, block, initialValue, LOCALISER, name, properties, repositoryExists
Constructor Summary
Cumulus4jIncrementGenerator(String name, Properties props)
          Create an instance.
Method Summary
protected  ValueGenerationBlock reserveBlock(long size)
Methods inherited from class
setConnectionProvider, setStoreManager
Methods inherited from class
allocate, createRepository, current, currentValue, getName, getStorageClass, next, nextValue, obtainGenerationBlock, obtainGenerationBlock, repositoryExists, requiresRepository, reserveBlock
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public Cumulus4jIncrementGenerator(String name,
                                   Properties props)
Create an instance. This is called by DataNucleus.

name - symbolic name for the generator.
props - Properties controlling the behaviour of the generator.
Method Detail


protected ValueGenerationBlock reserveBlock(long size)
Specified by:
reserveBlock in class AbstractGenerator

Cumulus4j API

Copyright © 2013 NightLabs Consulting GmbH. All Rights Reserved.