Class NumberIdCache.Generator

java.lang.Object
io.jmix.data.impl.NumberIdCache.Generator
Enclosing class:
NumberIdCache

protected class NumberIdCache.Generator extends Object
  • Field Details

    • counter

      protected long counter
    • sequenceValue

      protected long sequenceValue
    • entityName

      protected String entityName
    • sequenceName

      protected String sequenceName
    • cached

      protected boolean cached
  • Constructor Details

    • Generator

      public Generator(String entityName, @Nullable String sequenceName, boolean cached)
  • Method Details

    • useIdCache

      protected boolean useIdCache()
    • createCachedCounter

      protected void createCachedCounter()
    • getNext

      public long getNext()