|
||||||||||
PREV CLASS (src) NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.varia.autonumber.AutoNumberFactory
AutoNumberFactory can persistently auto number items.
Constructor Summary | |
AutoNumberFactory()
|
Method Summary | |
static java.lang.Integer |
getNextInteger(java.lang.String collectionName)
Gets the next key for the given collection. |
static void |
resetAutoNumber(java.lang.String collectionName)
Resets the given autonumber to zero. |
static void |
setAutoNumber(java.lang.String collectionName,
java.lang.Integer value)
Sets the given autonumber to the given value so that it starts counting at the given value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AutoNumberFactory()
Method Detail |
public static java.lang.Integer getNextInteger(java.lang.String collectionName) throws java.lang.ArrayIndexOutOfBoundsException
collectionName
- the name of the collection for which you want an autonumber
java.lang.ArrayIndexOutOfBoundsException
- if no more numbers are availablepublic static void resetAutoNumber(java.lang.String collectionName)
public static void setAutoNumber(java.lang.String collectionName, java.lang.Integer value)
|
||||||||||
PREV CLASS (src) NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |