| Package | Description |
|---|---|
| com.github.drinkjava2.jdialects | |
| com.github.drinkjava2.jdialects.id |
| Modifier and Type | Method and Description |
|---|---|
static Dialect |
GuessDialectUtils.guessDialect(Connection jdbcConnection)
Guess dialect based on given JDBC connection instance, Note: this method does
not close connection
|
static Dialect |
Dialect.guessDialect(Connection connection)
Guess Dialect by given connection, note:this method does not close connection
|
static Dialect |
GuessDialectUtils.guessDialect(DataSource dataSource)
Guess dialect based on given dataSource
|
static Dialect |
Dialect.guessDialect(DataSource datasource)
Guess Dialect by given data source
|
static Dialect |
GuessDialectUtils.guessDialect(String driverName,
String databaseName,
Object... majorVersionMinorVersion) |
static Dialect[] |
Dialect.values()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
TableModelUtils.db2Excel(Connection con,
Dialect dialect,
String fileName)
Export entity to excel csv files
|
static void |
TableModelUtils.db2JavaSrcFiles(DataSource ds,
Dialect dialect,
String outputfolder,
Map<String,Object> setting)
Read database structure and write them to Java entity class source code
|
static TableModel[] |
TableModelUtilsOfDb.db2Models(Connection con,
Dialect dialect)
Convert JDBC connected database structure to TableModels, note:
1)This method does not close connection 2)This method does not support sequence, foreign keys, primary keys..., but will improve later. |
static TableModel[] |
TableModelUtils.db2Models(Connection con,
Dialect dialect)
Convert database metaData to TableModels, note:
1)This method does not close connection, do not forgot close it later 2)This method does not read sequence, index, unique constraints |
static void |
TableModelUtils.db2QClassSrcFiles(DataSource ds,
Dialect dialect,
String outputFolder,
String packageName,
String prefix)
Read database structure and write them to Java entity class source code
|
String |
DialectFunctionTranslator.doTranslate(Dialect d,
String sql)
Translate universal SQL to native SQL, all #xxx() format universal SQL
functions will be translate to xxx() native SQL functions
|
static String |
DebugUtils.getDialectFullInfo(Dialect d) |
protected static void |
DDLFeatures.initDDLFeatures(Dialect dia) |
protected static String |
DialectPaginationTemplate.initializePaginSQLTemplate(Dialect d)
Return pagination template of this Dialect
|
protected static String |
DialectPaginationTemplate.initializeTopLimitSqlTemplate(Dialect d)
Return top limit sql template of this Dialect
|
static boolean |
ReservedDBWords.isReservedWord(Dialect dialect,
String word)
Check if is a dialect reserved word of ANSI-SQL reserved word
|
protected static String |
DialectFunctionUtils.render(Dialect d,
String functionName,
String... args)
The render method translate function template to real SQL piece
|
static String[] |
DDLCreateUtils.toCreateDDL(Dialect dialect,
TableModel... tables)
Transfer tables to DDL by given dialect and without format it, if want get a
formatted DDL, use DDLFormatter.format(DDLs) method to format it
|
static String[] |
DDLDropUtils.toDropDDL(Dialect dialect,
TableModel... tables)
Transfer tables to drop DDL and without format it
|
| Modifier and Type | Method and Description |
|---|---|
Object |
UUIDAnyGenerator.getNextID(NormalJdbcTool jdbc,
Dialect dialect,
Type dataType) |
Object |
UUID36Generator.getNextID(NormalJdbcTool jdbc,
Dialect dialect,
Type dataType) |
Object |
UUID32Generator.getNextID(NormalJdbcTool jdbc,
Dialect dialect,
Type dataType) |
Object |
UUID26Generator.getNextID(NormalJdbcTool jdbc,
Dialect dialect,
Type dataType) |
Object |
UUID25Generator.getNextID(NormalJdbcTool jdbc,
Dialect dialect,
Type dataType) |
Object |
TimeStampIdGenerator.getNextID(NormalJdbcTool jdbc,
Dialect dialect,
Type dataType) |
Object |
TableIdGenerator.getNextID(NormalJdbcTool jdbc,
Dialect dialect,
Type dataType)
Get the next Table Generator ID
|
Object |
SortedUUIDGenerator.getNextID(NormalJdbcTool jdbc,
Dialect dialect,
Type dataType) |
Object |
SnowflakeGenerator.getNextID(NormalJdbcTool jdbc,
Dialect dialect,
Type dataType) |
Object |
SequenceIdGenerator.getNextID(NormalJdbcTool jdbc,
Dialect dialect,
Type dataType) |
Object |
IdGenerator.getNextID(NormalJdbcTool jdbc,
Dialect dialect,
Type dataType)
Get the next ID generated by implementation of IdGenerator
|
Object |
IdentityIdGenerator.getNextID(NormalJdbcTool jdbc,
Dialect dialect,
Type dataType) |
Object |
AutoIdGenerator.getNextID(NormalJdbcTool jdbc,
Dialect dialect,
Type dataType) |
IdGenerator |
AutoIdGenerator.getSequenceOrTableIdGenerator(Dialect dialect)
If dialect support sequence, return a SequenceIdGenerator, otherwise return a
TableIdGenerator
|
Copyright © 2021. All rights reserved.