public class TableIdGenerator extends Object implements IdGenerator
| Constructor and Description |
|---|
TableIdGenerator() |
TableIdGenerator(String name,
String table,
String pkColumnName,
String valueColumnName,
String pkColumnValue,
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 Table Generator ID
|
String |
getPkColumnName() |
String |
getPkColumnValue() |
String |
getTable() |
String |
getValueColumnName() |
IdGenerator |
newCopy()
Return a newCopy (Deep Clone) instance
|
void |
setAllocationSize(Integer allocationSize) |
void |
setInitialValue(Integer initialValue) |
void |
setName(String name) |
void |
setPkColumnName(String pkColumnName) |
void |
setPkColumnValue(String pkColumnValue) |
void |
setTable(String table) |
void |
setValueColumnName(String valueColumnName) |
public IdGenerator newCopy()
IdGeneratornewCopy in interface IdGeneratorpublic 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)
getNextID in interface IdGeneratorjdbc - A NormalJdbcTool implementation to access databasedialect - The DialectdataType - The Type of a columnpublic String getName()
public void setName(String name)
public String getTable()
public void setTable(String table)
public String getPkColumnName()
public void setPkColumnName(String pkColumnName)
public String getValueColumnName()
public void setValueColumnName(String valueColumnName)
public String getPkColumnValue()
public void setPkColumnValue(String pkColumnValue)
public Integer getInitialValue()
public void setInitialValue(Integer initialValue)
public Integer getAllocationSize()
public void setAllocationSize(Integer allocationSize)
Copyright © 2021. All rights reserved.