| Modifier and Type | Field and Description |
|---|---|
private static KenGen |
instance
内置id算法
|
private static KenGen |
instanceNative
orm框架配置了原生id算法
|
| Constructor and Description |
|---|
IdUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Long |
nextId() |
static Long |
nextId(long workerId,
long datacenterId) |
static String |
nextIdStr() |
static void |
setInstanceNative(KenGen instanceNative) |
private static KenGen instanceNative
public IdUtils()
Copyright © 2024. All rights reserved.