Class NumberIdWorker

java.lang.Object
io.jmix.data.impl.NumberIdWorker

@Component("data_NumberIdWorker") public class NumberIdWorker extends Object
Generates ids for entities with long/integer PK using database sequences.
  • Field Details

    • metadata

      @Autowired protected Metadata metadata
    • metadataTools

      @Autowired protected MetadataTools metadataTools
    • sequences

      @Autowired protected Sequences sequences
    • dataProperties

      @Autowired protected DataProperties dataProperties
  • Constructor Details

    • NumberIdWorker

      public NumberIdWorker()
  • Method Details

    • createLongId

      public Long createLongId(String entityName, String sequenceName)
    • createCachedLongId

      public Long createCachedLongId(String entityName, String sequenceName)
    • reset

      public void reset()
      INTERNAL. Used by tests.
    • getDataStore

      protected String getDataStore(String entityName)
    • getSequenceName

      protected String getSequenceName(String entityName, String sequenceName)