Package com.github.drinkjava2.jdialects.id

Interface Summary
IdGenerator Interface for all ID generators
 

Class Summary
AutoIdGenerator AutoGenerator will depends database's id generator mechanism like MySql's Identity, Oracle's Sequence...
IdentityIdGenerator Define an Identity type generator, supported by MySQL, SQL Server, DB2, Derby, Sybase, PostgreSQL
SequenceIdGenerator The platform-independent SequenceGen model, similar like JPA
SnowflakeCreator java edition of Twitter Snowflake, a network service for generating unique ID numbers at high scale with some simple guarantees.
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
SortedUUIDGenerator Generate a Sorted UUID, total length = sortedLength + uuidLength,
for example, SortedUUIDGenerator(5,20):
10001NmpQHeGLy8eozSSq2p1B
10002DLIGkILFISKJF23KLSDF
10003LVBIFI35LDFJIA31KDSF
TableIdGenerator The platform-independent table model
TimeStampIdGenerator This TimeStampGenerator return a long type value based on computer's current time
UUID25Generator Compress JDK UUID to 25 letters based on radix 36, use 0-9 a-z characters, example: pbicz3grgu0zk3ipe1yur03h7
UUID32Generator Generate a JDK 32 letters random UUID based on Base16 encoding, example: bca5414e9b1b4bdfa257125e05428b92
UUID36Generator Generate a JDK 36 letters random UUID generated by UUID.randomUUID().toString(), for example:
d3ad36c0-c6c2-495c-a414-b9cc4a0a7a93
UUIDAnyGenerator Generate any length UUID String based on radix 36, use 0-9 a-z characters
Default length is 20;
 



Copyright © 2018. All rights reserved.