Class EntryTypeNumberingUtil
java.lang.Object
fr.paris.lutece.plugins.genericattributes.util.EntryTypeNumberingUtil
Values of the numbering entries.
The counter is kept in the database (genatt_entry_numbering): it was held in a map of each JVM, so two instances of the application gave the same numbers.
-
Method Summary
Modifier and TypeMethodDescriptionstatic EntryTypeNumberingUtilGets the instanceintgetNextValue(int entryId) Gets the next value of a numbering entry
-
Method Details
-
getInstance
Gets the instance- Returns:
- the instance
-
getNextValue
public int getNextValue(int entryId) Gets the next value of a numbering entry- Parameters:
entryId- The entry id- Returns:
- the next value, unique across the instances
-