|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.github.drinkjava2.jdialects.id.UUIDAnyGenerator
public class UUIDAnyGenerator
Generate any length UUID String based on radix 36, use 0-9 a-z characters
Default length is 20;
| Constructor Summary | |
|---|---|
UUIDAnyGenerator()
|
|
UUIDAnyGenerator(String name,
Integer length)
Build a give length UUID Generator |
|
| Method Summary | |
|---|---|
Boolean |
dependOnAutoIdGenerator()
If depends on AutoIdGenerator, for example SortedUUIDGenerator depends on AutoIdGenerator to create start numbers |
protected static String |
getAnyLengthRadix36UUID(Integer length)
|
GenerationType |
getGenerationType()
Return GenerationType |
String |
getIdGenName()
Return a unique Id Generator name in this TableModel |
Integer |
getLength()
|
Object |
getNextID(NormalJdbcTool jdbc,
Dialect dialect,
Type dataType)
Get the next ID generated by implementation of IdGenerator |
IdGenerator |
newCopy()
Return a newCopy (Deep Clone) instance |
void |
setLength(Integer length)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UUIDAnyGenerator()
public UUIDAnyGenerator(String name,
Integer length)
| Method Detail |
|---|
public GenerationType getGenerationType()
IdGenerator
getGenerationType in interface IdGeneratorpublic String getIdGenName()
IdGenerator
getIdGenName in interface IdGenerator
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 Boolean dependOnAutoIdGenerator()
IdGenerator
dependOnAutoIdGenerator in interface IdGeneratorpublic IdGenerator newCopy()
IdGenerator
newCopy in interface IdGeneratorprotected static String getAnyLengthRadix36UUID(Integer length)
public Integer getLength()
public void setLength(Integer length)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||