public interface SerialNumberGenerator
NumberSeriesManager.| Modifier and Type | Method and Description |
|---|---|
void |
clearAll()
Completely clear all (cached) ranges.
|
void |
createSeries(java.lang.String key,
int type,
long startValue)
Deprecated.
since 5.0 - please use
createSeries(String, int, long, String) |
void |
createSeries(java.lang.String key,
int type,
long startValue,
java.lang.String template)
Creates a new number series with the specified key, type and start value.
|
java.util.Collection<NumberSeries> |
getAllInfo()
Returns snapshot of all number series of this tenant.
|
NumberSeries |
getInfo(java.lang.String key)
Returns a snapshot of a specified number series.
|
NumberSeries |
getUniqueNumber(java.lang.String key)
Generates a new unique number for the given series.
|
void |
removeSeries(java.lang.String key)
Removes a existing number series.
|
void |
resetSeries(java.lang.String key,
int type,
long startValue)
Resets type and start value of a existing series.
|
java.util.Collection<NumberSeries> getAllInfo()
NumberSeries getUniqueNumber(java.lang.String key)
key - the series keyjava.lang.IllegalArgumentException - if no series exists with this keyNumberSeries getInfo(java.lang.String key)
key - the series key.java.lang.IllegalArgumentException - if no series exists with this key@Deprecated
void createSeries(java.lang.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 longjava.lang.IllegalArgumentException - if a series already exists with this keyvoid createSeries(java.lang.String key,
int type,
long startValue,
java.lang.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 valuejava.lang.IllegalArgumentException - if a series already exists with this keyvoid removeSeries(java.lang.String key)
key - the series keyjava.lang.IllegalArgumentException - if no series exists with this keyvoid resetSeries(java.lang.String key,
int type,
long startValue)
key - the series keytype - the series typestartValue - the start valuejava.lang.IllegalArgumentException - if no series exists with this keyvoid clearAll()
Copyright © 2018 SAP SE. All Rights Reserved.