Package io.jmix.data

Class Sequence

java.lang.Object
io.jmix.data.Sequence

public class Sequence extends Object
Represents sequence with name, store, start value and increment. Default data store for sequence is MAIN data store. Default start value 1, and default increment 1.
  • Field Details

    • name

      protected String name
    • dataStore

      protected String dataStore
    • startValue

      protected long startValue
    • increment

      protected long increment
  • Method Details

    • withName

      public static Sequence withName(String sequenceName)
    • setStore

      public Sequence setStore(String store)
    • setStartValue

      public Sequence setStartValue(long startValue)
    • setIncrement

      public Sequence setIncrement(long increment)
    • getName

      public String getName()
    • getDataStore

      public String getDataStore()
    • getStartValue

      public long getStartValue()
    • getIncrement

      public long getIncrement()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object