|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.github.drinkjava2.jdialects.id.TableIdGenerator
public class TableIdGenerator
The platform-independent table model
| Constructor Summary | |
|---|---|
TableIdGenerator()
|
|
TableIdGenerator(String name,
String table,
String pkColumnName,
String valueColumnName,
String pkColumnValue,
Integer initialValue,
Integer allocationSize)
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TableIdGenerator()
public TableIdGenerator(String name,
String table,
String pkColumnName,
String valueColumnName,
String pkColumnValue,
Integer initialValue,
Integer allocationSize)
| Method Detail |
|---|
public IdGenerator newCopy()
IdGenerator
newCopy in interface IdGeneratorpublic GenerationType getGenerationType()
IdGenerator
getGenerationType in interface IdGeneratorpublic String getIdGenName()
IdGenerator
getIdGenName in interface IdGeneratorpublic Boolean dependOnAutoIdGenerator()
IdGenerator
dependOnAutoIdGenerator in interface IdGenerator
public Object getNextID(NormalJdbcTool jdbc,
Dialect dialect,
Type dataType)
getNextID in interface IdGeneratorjdbc - A NormalJdbcTool implementation to access databasedialect - The DialectdataType - The Type of a column
public 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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||