public class SequenceIdGenerator extends Object implements IdGenerator
| Constructor and Description |
|---|
SequenceIdGenerator() |
SequenceIdGenerator(String name,
String sequenceName,
Integer initialValue,
Integer allocationSize) |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
dependOnAutoIdGenerator()
If depends on AutoIdGenerator, for example SortedUUIDGenerator depends on
AutoIdGenerator to create start numbers
|
Integer |
getAllocationSize() |
GenerationType |
getGenerationType()
Return GenerationType
|
String |
getIdGenName()
Return a unique Id Generator name in this TableModel
|
Integer |
getInitialValue() |
String |
getName() |
Object |
getNextID(NormalJdbcTool jdbc,
Dialect dialect,
Type dataType)
Get the next ID generated by implementation of IdGenerator
|
String |
getSequenceName() |
IdGenerator |
newCopy()
Return a newCopy (Deep Clone) instance
|
void |
setAllocationSize(Integer allocationSize) |
void |
setInitialValue(Integer initialValue) |
void |
setName(String name) |
void |
setSequenceName(String sequenceName) |
public 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 GenerationType getGenerationType()
IdGeneratorgetGenerationType in interface IdGeneratorpublic String getIdGenName()
IdGeneratorgetIdGenName in interface IdGeneratorpublic IdGenerator newCopy()
IdGeneratornewCopy in interface IdGeneratorpublic Boolean dependOnAutoIdGenerator()
IdGeneratordependOnAutoIdGenerator in interface IdGeneratorpublic String getName()
public void setName(String name)
public String getSequenceName()
public void setSequenceName(String sequenceName)
public Integer getInitialValue()
public void setInitialValue(Integer initialValue)
public Integer getAllocationSize()
public void setAllocationSize(Integer allocationSize)
Copyright © 2021. All rights reserved.