Package org.nuxeo.ecm.platform.uidgen
Class UIDSequenceBean
- java.lang.Object
-
- org.nuxeo.ecm.platform.uidgen.UIDSequenceBean
-
public class UIDSequenceBean extends Object
UID entity - keeps last indexes of all generated UIDs.
-
-
Constructor Summary
Constructors Constructor Description UIDSequenceBean()
Default constructor needed for EJB container instantiation.UIDSequenceBean(String key)
Constructor taking as argument the key for which this sequence is created.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getId()
int
getIndex()
String
getKey()
int
nextIndex()
void
setId(int id)
void
setKey(String key)
static String
stringify(UIDSequenceBean bean)
String
toString()
-
-
-
Field Detail
-
log
public static final Log log
-
id
protected int id
-
-
Constructor Detail
-
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 Detail
-
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)
-
nextIndex
public int nextIndex()
-
-