Class EntryTypeNumberingUtil

java.lang.Object
fr.paris.lutece.plugins.genericattributes.util.EntryTypeNumberingUtil

public final class EntryTypeNumberingUtil extends Object
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 Details

    • getInstance

      public static EntryTypeNumberingUtil 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