public interface SerialNumberGenerator
NumberSeriesManager.| Modifier and Type | Method and Description |
|---|---|
void |
clearAll()
Completely clear all (cached) ranges.
|
void |
createSeries(String key,
int type,
long startValue)
Deprecated.
since 5.0 - please use
createSeries(String, int, long, String) |
void |
createSeries(String key,
int type,
long startValue,
String template)
Creates a new number series with the specified key, type and start value.
|
Collection<NumberSeries> |
getAllInfo()
Returns snapshot of all number series of this tenant.
|
NumberSeries |
getInfo(String key)
Returns a snapshot of a specified number series.
|
NumberSeries |
getUniqueNumber(String key)
Generates a new unique number for the given series.
|
void |
removeSeries(String key)
Removes a existing number series.
|
void |
resetSeries(String key,
int type,
long startValue)
Resets type and start value of a existing series.
|
Collection<NumberSeries> getAllInfo()
NumberSeries getUniqueNumber(String key)
key - the series keyIllegalArgumentException - if no series exists with this keyNumberSeries getInfo(String key)
key - the series key.IllegalArgumentException - if no series exists with this key@Deprecated void createSeries(String key, int type, long startValue)
createSeries(String, int, long, String)key - the series keytype - the type; use one of NumberSeries.TYPE_ALPHANUMERIC and NumberSeries.TYPE_NUMERICstartValue - the start value - must be positive longIllegalArgumentException - if a series already exists with this keyvoid createSeries(String key, int type, long startValue, String template)
key - the series keytype - the type; use one of NumberSeries.TYPE_ALPHANUMERIC and NumberSeries.TYPE_NUMERICstartValue - the start value - must be positive longtemplate - the template to be applied on generated valueIllegalArgumentException - if a series already exists with this keyvoid removeSeries(String key)
key - the series keyIllegalArgumentException - if no series exists with this keyvoid resetSeries(String key, int type, long startValue)
key - the series keytype - the series typestartValue - the start valueIllegalArgumentException - if no series exists with this keyvoid clearAll()
Copyright © 2017 SAP SE. All Rights Reserved.