public class DialectFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
clearHintDbType()
清除当前线程的 dbType
|
static IDialect |
getDialect()
获取方言
|
static DbType |
getHintDbType()
获取当前线程的 dbType
|
static void |
registerDialect(DbType dbType,
IDialect dialect)
可以为某个 dbType 注册(新增或覆盖)自己的方言
|
static void |
setHintDbType(DbType dbType)
设置当前线程的 dbType
|
public static IDialect getDialect()
public static void setHintDbType(DbType dbType)
dbType - public static DbType getHintDbType()
public static void clearHintDbType()
Copyright © 2024. All rights reserved.