public class AutoIdGenerator extends Object implements IdGenerator
| Modifier and Type | Field and Description |
|---|---|
static AutoIdGenerator |
INSTANCE |
static SequenceIdGenerator |
SEQ_AUTOID_INSTANCE |
static TableIdGenerator |
TABLE_AUTOID_INSTANCE |
| Constructor and Description |
|---|
AutoIdGenerator() |
| 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 |
getSequenceOrTableIdGenerator(Dialect dialect)
If dialect support sequence, return a SequenceIdGenerator, otherwise return a
TableIdGenerator
|
IdGenerator |
newCopy()
Return a newCopy (Deep Clone) instance
|
public static final AutoIdGenerator INSTANCE
public static final TableIdGenerator TABLE_AUTOID_INSTANCE
public static final SequenceIdGenerator SEQ_AUTOID_INSTANCE
public GenerationType getGenerationType()
IdGeneratorgetGenerationType in interface IdGeneratorpublic String getIdGenName()
IdGeneratorgetIdGenName in interface IdGeneratorpublic IdGenerator newCopy()
IdGeneratornewCopy 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 getSequenceOrTableIdGenerator(Dialect dialect)
Copyright © 2021. All rights reserved.