Class IncrementGenerator

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

    public class IncrementGenerator
    extends org.datanucleus.store.valuegenerator.AbstractConnectedGenerator<Long>
    Value generator using a table in the datastore and incrementing a column, keyed by the field name that has the strategy.
    • Nested Class Summary

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

        org.datanucleus.store.valuegenerator.AbstractConnectedGenerator.ConnectionPreference
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected boolean repositoryExists
      Flag for whether we know that the repository exists.
      • 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
    • Field Detail

      • repositoryExists

        protected boolean repositoryExists
        Flag for whether we know that the repository exists.
    • Constructor Detail

      • IncrementGenerator

        public IncrementGenerator​(org.datanucleus.store.StoreManager storeMgr,
                                  String name,
                                  Properties props)
    • Method Detail

      • reserveBlock

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

        protected String getSchemaName()
      • createRepository

        protected boolean createRepository()