public abstract static class NoHelper.NoPoolLoadAdapter extends Object
| 构造器和说明 |
|---|
NoPoolLoadAdapter() |
| 限定符和类型 | 方法和说明 |
|---|---|
abstract int |
insertNewNoRecord(String id,
int limit)
插入新编号生成器 记录条
|
long |
loadCurrentIndex(String type)
查询当前编号
|
long |
loadCurrentIndex(String type,
String prefix)
查询当前编号
|
abstract Long |
loadFromSource(String id)
仅加载当前编号
|
long |
loadNextIndex(String type,
int limit)
加载下一批编号
|
long |
loadNextIndex(String type,
String prefix,
int limit)
加载下一批编号
|
abstract Map<String,Long> |
queryCurrentIndexAndVersionForUpdate(String id)
查询当前的currentIndex和数据版本,并锁住当前type_prefix记录条
|
abstract int |
updateNoRecord(String id,
int limit,
Long version)
更新当前编号生成器 记录条
|
public long loadCurrentIndex(String type)
type - 类型public long loadCurrentIndex(String type, String prefix)
prefix - 前缀type - 类型public abstract Long loadFromSource(String id)
id - 记录id(type_prefix)public long loadNextIndex(String type, int limit)
type - 类型limit - 编号池大小public long loadNextIndex(String type, String prefix, int limit)
prefix - 编号前缀type - 类型limit - 编号池大小public abstract int insertNewNoRecord(String id, int limit)
public abstract int updateNoRecord(String id, int limit, Long version)
public abstract Map<String,Long> queryCurrentIndexAndVersionForUpdate(String id)
id - 记录id:type_prefixCopyright © 2020. All rights reserved.