public class SnowflakeGenerator extends Object implements IdGenerator
| Modifier and Type | Field and Description |
|---|---|
static SnowflakeGenerator |
INSTANCE |
| Constructor and Description |
|---|
SnowflakeGenerator() |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
dependOnAutoIdGenerator()
If depends on AutoIdGenerator, for example SortedUUIDGenerator depends on
AutoIdGenerator to create start numbers
|
GenerationType |
getGenerationType()
Return GenerationType
|
String |
getIdGenName()
Return a unique Id Generator name in this TableModel
|
Object |
getNextID(Connection con,
Dialect dialect,
Type dataType)
Get the next ID generated by implementation of IdGenerator
|
IdGenerator |
newCopy()
Return a newCopy (Deep Clone) instance
|
public static final SnowflakeGenerator INSTANCE
public Object getNextID(Connection con, Dialect dialect, Type dataType)
IdGeneratorgetNextID in interface IdGeneratordialect - The DialectdataType - The Type of a columnpublic GenerationType getGenerationType()
IdGeneratorgetGenerationType in interface IdGeneratorpublic String getIdGenName()
IdGeneratorgetIdGenName in interface IdGeneratorpublic IdGenerator newCopy()
IdGeneratornewCopy in interface IdGeneratorpublic Boolean dependOnAutoIdGenerator()
IdGeneratordependOnAutoIdGenerator in interface IdGeneratorCopyright © 2022. All rights reserved.