org.cumulus4j.store
Class Cumulus4jIncrementGenerator
java.lang.Object
org.datanucleus.store.valuegenerator.AbstractGenerator
org.datanucleus.store.valuegenerator.AbstractDatastoreGenerator
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
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 |
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.
reserveBlock
protected ValueGenerationBlock reserveBlock(long size)
- Specified by:
reserveBlock
in class AbstractGenerator
Copyright © 2013 NightLabs Consulting GmbH. All Rights Reserved.