Interface IEntryNumberingDAO
- All Known Implementing Classes:
EntryNumberingDAO
public interface IEntryNumberingDAO
Counter of the numbering entries (one value per entry), shared by every instance of the application through the database
-
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nIdEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin) Removes the counter of an entryintnextValue(int nIdEntry, IntSupplier currentValue, fr.paris.lutece.portal.service.plugin.Plugin plugin) Increments the counter of an entry and returns the new value.
-
Method Details
-
nextValue
int nextValue(int nIdEntry, IntSupplier currentValue, fr.paris.lutece.portal.service.plugin.Plugin plugin) Increments the counter of an entry and returns the new value. The counter is created when missing, from the given current value.- Parameters:
nIdEntry- The entry idcurrentValue- Supplies the current value of the counter when it does not exist yet (the highest value already used)plugin- The plugin- Returns:
- the next value
-
delete
void delete(int nIdEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin) Removes the counter of an entry- Parameters:
nIdEntry- The entry idplugin- The plugin
-