DEFAULT_DAY_FORMATTER, DEFAULT_DECIMAL_FORMATTER, DEFAULT_SN_PATTERN, SEPARATOR| 构造器和说明 |
|---|
IdServiceImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
Long |
next(String type)
Get the next id for the specific type.
|
String |
nextDailySN(Class<?> type,
DateTimeFormatter dayFormatter,
String snPattern)
Get the next daily SN (serial number).
|
String |
nextDailySN(String type,
DateTimeFormatter dayFormatter,
String snPattern)
Get the next daily SN (serial number).
|
public String nextDailySN(String type, DateTimeFormatter dayFormatter, String snPattern)
IdServiceThe return value format is “yyyyMMdd####”. "####" is control by the snPattern param.
nextDailySN 在接口中 IdServicetype - the typedayFormatter - the day formatter, from DateTimeFormatter.
Default is IdService.DEFAULT_DAY_FORMATTER.snPattern - the SN pattern, from DecimalFormat.
Default is IdService.DEFAULT_SN_PATTERN.public String nextDailySN(Class<?> type, DateTimeFormatter dayFormatter, String snPattern)
IdServiceThe return value format is “yyyyMMdd####”. "####" is control by the snPattern param.
nextDailySN 在接口中 IdServicetype - the typedayFormatter - the day formatter, from DateTimeFormatter.
Default is IdService.DEFAULT_DAY_FORMATTER.snPattern - the SN pattern, from DecimalFormat.
Default is IdService.DEFAULT_SN_PATTERN.Copyright © 2017 simter. All rights reserved.