Class IncrementGenerator
- java.lang.Object
-
- org.datanucleus.store.valuegenerator.AbstractGenerator<T>
-
- org.datanucleus.store.valuegenerator.AbstractConnectedGenerator<Long>
-
- org.datanucleus.store.odf.valuegenerator.IncrementGenerator
-
-
Field Summary
-
Fields inherited from class org.datanucleus.store.valuegenerator.AbstractConnectedGenerator
connectionProvider, properties
-
Fields inherited from class org.datanucleus.store.valuegenerator.AbstractGenerator
allocationSize, block, initialValue, name, storeMgr
-
Fields inherited from interface org.datanucleus.store.valuegenerator.ValueGenerator
PROPERTY_CATALOG_NAME, PROPERTY_CLASS_NAME, PROPERTY_COLUMN_NAME, PROPERTY_FIELD_NAME, PROPERTY_KEY_CACHE_SIZE, PROPERTY_KEY_DATABASE_CACHE_SIZE, PROPERTY_KEY_INITIAL_VALUE, PROPERTY_KEY_MAX_VALUE, PROPERTY_KEY_MIN_VALUE, PROPERTY_ROOT_CLASS_NAME, PROPERTY_SCHEMA_NAME, PROPERTY_SEQUENCE_NAME, PROPERTY_SEQUENCETABLE_CATALOG, PROPERTY_SEQUENCETABLE_NAME_COLUMN, PROPERTY_SEQUENCETABLE_NEXTVAL_COLUMN, PROPERTY_SEQUENCETABLE_SCHEMA, PROPERTY_SEQUENCETABLE_TABLE, PROPERTY_TABLE_NAME
-
-
Constructor Summary
Constructors Constructor Description IncrementGenerator(org.datanucleus.store.StoreManager storeMgr, String name, Properties props)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
protected org.datanucleus.store.valuegenerator.ValueGenerationBlock<Long>
reserveBlock(long size)
-
Methods inherited from class org.datanucleus.store.valuegenerator.AbstractConnectedGenerator
getConnectionPreference, setConnectionProvider
-
-
-
-
Constructor Detail
-
IncrementGenerator
public IncrementGenerator(org.datanucleus.store.StoreManager storeMgr, String name, Properties props)
Constructor. Will receive the following properties (as a minimum) through this constructor.- class-name : Name of the class whose object is being inserted.
- root-class-name : Name of the root class in this inheritance tree
- field-name : Name of the field with the strategy (unless datastore identity field)
- catalog-name : Catalog of the table (if specified)
- schema-name : Schema of the table (if specified)
- table-name : Name of the root table for this inheritance tree (containing the field).
- column-name : Name of the column in the table (for the field)
- sequence-name : Name of the sequence (if specified in MetaData as "sequence)
- Parameters:
storeMgr
- StoreManagername
- Symbolic name for this generatorprops
- Properties controlling the behaviour of the generator (or null if not required).
-
-