public class IdentityIdGenerator extends Object implements IdGenerator
| Modifier and Type | Field and Description |
|---|---|
static IdentityIdGenerator |
INSTANCE |
| Constructor and Description |
|---|
IdentityIdGenerator() |
| 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(NormalJdbcTool jdbc,
Dialect dialect,
Type dataType)
Get the next ID generated by implementation of IdGenerator
|
IdGenerator |
newCopy()
Return a newCopy (Deep Clone) instance
|
public static final IdentityIdGenerator INSTANCE
public GenerationType getGenerationType()
IdGeneratorgetGenerationType in interface IdGeneratorpublic String getIdGenName()
IdGeneratorgetIdGenName in interface IdGeneratorpublic Boolean dependOnAutoIdGenerator()
IdGeneratordependOnAutoIdGenerator in interface IdGeneratorpublic Object getNextID(NormalJdbcTool jdbc, Dialect dialect, Type dataType)
IdGeneratorgetNextID in interface IdGeneratorjdbc - A NormalJdbcTool implementation to access databasedialect - The DialectdataType - The Type of a columnpublic IdGenerator newCopy()
IdGeneratornewCopy in interface IdGeneratorCopyright © 2021. All rights reserved.