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