|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use IdGenerator | |
|---|---|
| com.github.drinkjava2.jdialects | |
| com.github.drinkjava2.jdialects.id | |
| com.github.drinkjava2.jdialects.model | |
| Uses of IdGenerator in com.github.drinkjava2.jdialects |
|---|
| Methods in com.github.drinkjava2.jdialects with parameters of type IdGenerator | |
|---|---|
Object |
Dialect.getNexID(IdGenerator idGenerator,
NormalJdbcTool jdbc,
Type dataType)
Return next ID by given IdGenerator and NormalJdbcStyle instance |
| Uses of IdGenerator in com.github.drinkjava2.jdialects.id |
|---|
| Classes in com.github.drinkjava2.jdialects.id that implement IdGenerator | |
|---|---|
class |
AutoIdGenerator
AutoGenerator will depends database's id generator mechanism like MySql's Identity, Oracle's Sequence... |
class |
IdentityIdGenerator
Define an Identity type generator, supported by MySQL, SQL Server, DB2, Derby, Sybase, PostgreSQL |
class |
SequenceIdGenerator
The platform-independent SequenceGen model, similar like JPA |
class |
SnowflakeGenerator
SnowflakeGenerator is a special generator, only mark this column is a snowflake type column, but getNextID() method does not work, because snowflake value should generated by outside program, it depends on real machine setting, in jDialects there is a SnowflakeCreator tool for these outside program to use |
class |
SortedUUIDGenerator
Generate a Sorted UUID, total length = sortedLength + uuidLength, for example, SortedUUIDGenerator(5,20): 10001NmpQHeGLy8eozSSq2p1B 10002DLIGkILFISKJF23KLSDF 10003LVBIFI35LDFJIA31KDSF |
class |
TableIdGenerator
The platform-independent table model |
class |
TimeStampIdGenerator
This TimeStampGenerator return a long type value based on computer's current time |
class |
UUID25Generator
Compress JDK UUID to 25 letters based on radix 36, use 0-9 a-z characters, example: pbicz3grgu0zk3ipe1yur03h7 |
class |
UUID32Generator
Generate a JDK 32 letters random UUID based on Base16 encoding, example: bca5414e9b1b4bdfa257125e05428b92 |
class |
UUID36Generator
Generate a JDK 36 letters random UUID generated by UUID.randomUUID().toString(), for example: d3ad36c0-c6c2-495c-a414-b9cc4a0a7a93 |
class |
UUIDAnyGenerator
Generate any length UUID String based on radix 36, use 0-9 a-z characters Default length is 20; |
| Methods in com.github.drinkjava2.jdialects.id that return IdGenerator | |
|---|---|
IdGenerator |
AutoIdGenerator.getSequenceOrTableIdGenerator(Dialect dialect)
If dialect support sequence, return a SequenceIdGenerator, otherwise return a TableIdGenerator |
IdGenerator |
UUIDAnyGenerator.newCopy()
|
IdGenerator |
UUID36Generator.newCopy()
|
IdGenerator |
UUID32Generator.newCopy()
|
IdGenerator |
UUID25Generator.newCopy()
|
IdGenerator |
TimeStampIdGenerator.newCopy()
|
IdGenerator |
TableIdGenerator.newCopy()
|
IdGenerator |
SortedUUIDGenerator.newCopy()
|
IdGenerator |
SnowflakeGenerator.newCopy()
|
IdGenerator |
SequenceIdGenerator.newCopy()
|
IdGenerator |
IdGenerator.newCopy()
Return a newCopy (Deep Clone) instance |
IdGenerator |
IdentityIdGenerator.newCopy()
|
IdGenerator |
AutoIdGenerator.newCopy()
|
| Uses of IdGenerator in com.github.drinkjava2.jdialects.model |
|---|
| Methods in com.github.drinkjava2.jdialects.model that return IdGenerator | |
|---|---|
IdGenerator |
ColumnModel.getIdGenerator()
|
IdGenerator |
TableModel.getIdGenerator(GenerationType generationType)
Get one of these IdGenerator instance by generationType: IDENTITY,AUTO,UUID25,UUID32,UUID36,TIMESTAMP |
IdGenerator |
TableModel.getIdGenerator(GenerationType generationType,
String name)
Search and return the IdGenerator in this TableModel by its generationType and name |
static IdGenerator |
TableModel.getIdGenerator(GenerationType generationType,
String name,
List<IdGenerator> idGeneratorList)
Get a IdGenerator by type, if not found, search by name |
IdGenerator |
TableModel.getIdGenerator(String name)
Search and return the IdGenerator in this TableModel by its name |
static IdGenerator |
TableModel.getIdGeneratorByType(GenerationType generationType)
Get one of these IdGenerator instance by generationType: IDENTITY,AUTO,UUID25,UUID32,UUID36,TIMESTAMP, if not found , return null; |
| Methods in com.github.drinkjava2.jdialects.model that return types with arguments of type IdGenerator | |
|---|---|
List<IdGenerator> |
TableModel.getIdGenerators()
|
| Methods in com.github.drinkjava2.jdialects.model with parameters of type IdGenerator | |
|---|---|
void |
TableModel.addGenerator(IdGenerator generator)
Add a "create table..." DDL to generate ID, similar like JPA's TableGen |
| Method parameters in com.github.drinkjava2.jdialects.model with type arguments of type IdGenerator | |
|---|---|
static IdGenerator |
TableModel.getIdGenerator(GenerationType generationType,
String name,
List<IdGenerator> idGeneratorList)
Get a IdGenerator by type, if not found, search by name |
void |
TableModel.setIdGenerators(List<IdGenerator> idGenerators)
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||