Class UIDSequenceBean

java.lang.Object
org.nuxeo.ecm.platform.uidgen.UIDSequenceBean

@Entity public class UIDSequenceBean extends Object
UID entity - keeps last indexes of all generated UIDs.
  • Field Details

    • id

      protected int id
  • Constructor Details

    • UIDSequenceBean

      public UIDSequenceBean()
      Default constructor needed for EJB container instantiation.
    • UIDSequenceBean

      public UIDSequenceBean(String key)
      Constructor taking as argument the key for which this sequence is created. The index is defaulted to 1.
  • Method Details

    • getId

      public int getId()
    • setId

      public void setId(int id)
    • getKey

      public String getKey()
    • setKey

      public void setKey(String key)
    • getIndex

      public int getIndex()
    • stringify

      public static String stringify(UIDSequenceBean bean)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • nextIndex

      public int nextIndex()