Class IncrementGenerator

  • All Implemented Interfaces:
    org.datanucleus.store.valuegenerator.ValueGenerator<Long>

    public class IncrementGenerator
    extends org.datanucleus.store.valuegenerator.AbstractConnectedGenerator<Long>
    Generator that uses a collection in ODF to store and allocate identity values.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.datanucleus.store.valuegenerator.AbstractConnectedGenerator

        org.datanucleus.store.valuegenerator.AbstractConnectedGenerator.ConnectionPreference
    • 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 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 - StoreManager
        name - Symbolic name for this generator
        props - Properties controlling the behaviour of the generator (or null if not required).
    • Method Detail

      • getName

        public String getName()
        Overrides:
        getName in class org.datanucleus.store.valuegenerator.AbstractGenerator<Long>
      • reserveBlock

        protected org.datanucleus.store.valuegenerator.ValueGenerationBlock<Long> reserveBlock​(long size)
        Specified by:
        reserveBlock in class org.datanucleus.store.valuegenerator.AbstractGenerator<Long>