| Package | Description |
|---|---|
| com.github.drinkjava2.jdialects | |
| com.github.drinkjava2.jdialects.id | |
| com.github.drinkjava2.jdialects.model |
| Modifier and Type | Method and Description |
|---|---|
Object |
Dialect.getNexID(IdGenerator idGenerator,
NormalJdbcTool jdbc,
Type dataType)
Return next ID by given IdGenerator and NormalJdbcStyle instance
|
| Modifier and Type | Class and Description |
|---|---|
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 |
UUID26Generator
Compress JDK UUID to 26 letters based on radix 36, use 0-9 a-z characters,
example: pbicz3grgu0zk3ipe1yur03h7a
|
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; |
| Modifier and Type | Method and Description |
|---|---|
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 |
UUID26Generator.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() |
| Modifier and Type | Method and Description |
|---|---|
IdGenerator |
ColumnModel.getIdGenerator() |
IdGenerator |
TableModel.getIdGenerator(GenerationType generationType)
Get one of these IdGenerator instance by generationType:
IDENTITY,AUTO,UUID25,UUID26,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;
|
| Modifier and Type | Method and Description |
|---|---|
List<IdGenerator> |
TableModel.getIdGenerators() |
| Modifier and Type | Method and Description |
|---|---|
void |
TableModel.addGenerator(IdGenerator generator)
Add a "create table..." DDL to generate ID, similar like JPA's TableGen
|
| Modifier and Type | Method and Description |
|---|---|
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) |
Copyright © 2021. All rights reserved.