Cumulus4j API
(1.2.0-SNAPSHOT)

org.cumulus4j.store
Class Cumulus4jIncrementGenerator

java.lang.Object
  extended by org.datanucleus.store.valuegenerator.AbstractGenerator
      extended by org.datanucleus.store.valuegenerator.AbstractDatastoreGenerator
          extended by org.cumulus4j.store.Cumulus4jIncrementGenerator
All Implemented Interfaces:
ValueGenerator

public class Cumulus4jIncrementGenerator
extends AbstractDatastoreGenerator

ValueGenerator implementation generating values by incrementing a counter.

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

Field Summary
 
Fields inherited from class org.datanucleus.store.valuegenerator.AbstractDatastoreGenerator
connectionProvider, storeMgr
 
Fields inherited from class org.datanucleus.store.valuegenerator.AbstractGenerator
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 org.datanucleus.store.valuegenerator.AbstractDatastoreGenerator
setConnectionProvider, setStoreManager
 
Methods inherited from class org.datanucleus.store.valuegenerator.AbstractGenerator
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

Cumulus4jIncrementGenerator

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

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

reserveBlock

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

Cumulus4j API
(1.2.0-SNAPSHOT)

Copyright © 2013 NightLabs Consulting GmbH. All Rights Reserved.