Package icu.easyj.db.dialect
Class DbDialectAdapter
java.lang.Object
icu.easyj.db.dialect.DbDialectAdapter
- All Implemented Interfaces:
icu.easyj.core.dialect.IDialect,IDbDialect,Serializable
- Direct Known Subclasses:
CommonDbServiceImpl
数据库方言适配器
- Author:
- wangliang181230
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDbDialectAdapter(IDbDialect dbDialect) DbDialectAdapter(Supplier<IDbDialect> dbDialectSupplier) -
Method Summary
Modifier and TypeMethodDescription获取数据库类型getSeqCurrValSql(String seqName) 获取当前序列号的SQLgetSeqNextValSql(String seqName) 获取下一个序列号的SQLgetSeqSetValSql(String seqName, long newVal) 获取 设置序列值的SQL获取数据库当前时间的SQL(不同数据库SQL语句不同)获取数据库版本号的SQLMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface icu.easyj.db.dialect.IDbDialect
isDbType, isDbType
-
Field Details
-
dbDialect
-
-
Constructor Details
-
DbDialectAdapter
-
DbDialectAdapter
-
-
Method Details
-
getVersionSql
Description copied from interface:IDbDialect获取数据库版本号的SQL- Specified by:
getVersionSqlin interfaceIDbDialect- Returns:
- 获取数据库版本号的SQL
-
getTimeSql
Description copied from interface:IDbDialect获取数据库当前时间的SQL(不同数据库SQL语句不同)- Specified by:
getTimeSqlin interfaceIDbDialect- Returns:
- 获取数据库当前时间的SQL
-
getSeqCurrValSql
Description copied from interface:IDbDialect获取当前序列号的SQL- Specified by:
getSeqCurrValSqlin interfaceIDbDialect- Parameters:
seqName- 序列名- Returns:
- 获取当前序列号的SQL
-
getSeqNextValSql
Description copied from interface:IDbDialect获取下一个序列号的SQL- Specified by:
getSeqNextValSqlin interfaceIDbDialect- Parameters:
seqName- 序列名- Returns:
- 获取下一个序列号的SQL
-
getSeqSetValSql
Description copied from interface:IDbDialect获取 设置序列值的SQL- Specified by:
getSeqSetValSqlin interfaceIDbDialect- Parameters:
seqName- 序列名newVal- 新的序列值- Returns:
- 设置序列值的SQL
-
getDbType
Description copied from interface:IDbDialect获取数据库类型- Specified by:
getDbTypein interfaceIDbDialect- Returns:
- 数据库类型(要求只包含 数字 和 小写英文字母)
-