public class TDengineDialect extends DefaultDialect
| 限定符和类型 | 字段和说明 |
|---|---|
protected org.slf4j.Logger |
logger
定义日志
|
NVL_FUNCTION| 构造器和说明 |
|---|
TDengineDialect() |
| 限定符和类型 | 方法和说明 |
|---|---|
Long |
delete(SqlToyContext sqlToyContext,
Serializable entity,
Connection conn,
Integer dbType,
String dialect,
String tableName) |
Long |
deleteAll(SqlToyContext sqlToyContext,
List<?> entities,
int batchSize,
Connection conn,
Integer dbType,
String dialect,
Boolean autoCommit,
String tableName) |
StoreResult |
executeStore(SqlToyContext sqlToyContext,
SqlToyConfig sqlToyConfig,
String sql,
Object[] inParamsValue,
Integer[] outParamsType,
Connection conn,
Integer dbType,
String dialect,
int fetchSize) |
QueryResult |
findBySql(SqlToyContext sqlToyContext,
SqlToyConfig sqlToyConfig,
String sql,
Object[] paramsValue,
QueryExecutorExtend queryExecutorExtend,
DecryptHandler decryptHandler,
Connection conn,
LockMode lockMode,
Integer dbType,
String dialect,
int fetchSize,
int maxRows) |
QueryResult |
findPageBySql(SqlToyContext sqlToyContext,
SqlToyConfig sqlToyConfig,
QueryExecutor queryExecutor,
DecryptHandler decryptHandler,
Long pageNo,
Integer pageSize,
Connection conn,
Integer dbType,
String dialect,
int fetchSize,
int maxRows)
以postgres 标准的limit offset 模式
|
QueryResult |
findTopBySql(SqlToyContext sqlToyContext,
SqlToyConfig sqlToyConfig,
QueryExecutor queryExecutor,
DecryptHandler decryptHandler,
Integer topSize,
Connection conn,
Integer dbType,
String dialect,
int fetchSize,
int maxRows)
以mysql为蓝本实现
|
Long |
getCountBySql(SqlToyContext sqlToyContext,
SqlToyConfig sqlToyConfig,
String sql,
Object[] paramsValue,
boolean isLastSql,
Connection conn,
Integer dbType,
String dialect) |
QueryResult |
getRandomResult(SqlToyContext sqlToyContext,
SqlToyConfig sqlToyConfig,
QueryExecutor queryExecutor,
DecryptHandler decryptHandler,
Long totalCount,
Long randomCount,
Connection conn,
Integer dbType,
String dialect,
int fetchSize,
int maxRows)
以mysql 为蓝本实现
|
boolean |
isUnique(SqlToyContext sqlToyContext,
Serializable entity,
String[] paramsNamed,
Connection conn,
Integer dbType,
String tableName) |
Serializable |
load(SqlToyContext sqlToyContext,
Serializable entity,
List<Class> cascadeTypes,
LockMode lockMode,
Connection conn,
Integer dbType,
String dialect,
String tableName) |
List<?> |
loadAll(SqlToyContext sqlToyContext,
List<?> entities,
List<Class> cascadeTypes,
LockMode lockMode,
Connection conn,
Integer dbType,
String dialect,
String tableName,
int fetchSize,
int maxRows) |
Object |
save(SqlToyContext sqlToyContext,
Serializable entity,
Connection conn,
Integer dbType,
String dialect,
String tableName)
以mysql为蓝本实现
|
Long |
saveAll(SqlToyContext sqlToyContext,
List<?> entities,
int batchSize,
ReflectPropsHandler reflectPropsHandler,
Connection conn,
Integer dbType,
String dialect,
Boolean autoCommit,
String tableName) |
Long |
saveAllIgnoreExist(SqlToyContext sqlToyContext,
List<?> entities,
int batchSize,
ReflectPropsHandler reflectPropsHandler,
Connection conn,
Integer dbType,
String dialect,
Boolean autoCommit,
String tableName) |
Long |
saveOrUpdate(SqlToyContext sqlToyContext,
Serializable entity,
String[] forceUpdateFields,
Connection conn,
Integer dbType,
String dialect,
Boolean autoCommit,
String tableName) |
Long |
saveOrUpdateAll(SqlToyContext sqlToyContext,
List<?> entities,
int batchSize,
ReflectPropsHandler reflectPropsHandler,
String[] forceUpdateFields,
Connection conn,
Integer dbType,
String dialect,
Boolean autoCommit,
String tableName) |
Long |
update(SqlToyContext sqlToyContext,
Serializable entity,
String[] forceUpdateFields,
boolean cascade,
Class[] forceCascadeClass,
HashMap<Class,String[]> subTableForceUpdateProps,
Connection conn,
Integer dbType,
String dialect,
String tableName) |
Long |
updateAll(SqlToyContext sqlToyContext,
List<?> entities,
int batchSize,
String[] uniqueFields,
String[] forceUpdateFields,
ReflectPropsHandler reflectPropsHandler,
Connection conn,
Integer dbType,
String dialect,
Boolean autoCommit,
String tableName) |
QueryResult |
updateFetch(SqlToyContext sqlToyContext,
SqlToyConfig sqlToyConfig,
String sql,
Object[] paramValues,
UpdateRowHandler updateRowHandler,
Connection conn,
Integer dbType,
String dialect,
LockMode lockMode,
int fetchSize,
int maxRows) |
Serializable |
updateSaveFetch(SqlToyContext sqlToyContext,
Serializable entity,
UpdateRowHandler updateRowHandler,
String[] uniqueProps,
Connection conn,
Integer dbType,
String dialect,
String tableName) |
getTableColumns, getTablespublic boolean isUnique(SqlToyContext sqlToyContext, Serializable entity, String[] paramsNamed, Connection conn, Integer dbType, String tableName)
isUnique 在接口中 DialectisUnique 在类中 DefaultDialectparamsNamed - 对象属性名称(不是数据库表字段名称)tableName - 分表场景对应取得的表名(无分表则当前表名)public QueryResult getRandomResult(SqlToyContext sqlToyContext, SqlToyConfig sqlToyConfig, QueryExecutor queryExecutor, DecryptHandler decryptHandler, Long totalCount, Long randomCount, Connection conn, Integer dbType, String dialect, int fetchSize, int maxRows) throws Exception
DefaultDialectgetRandomResult 在接口中 DialectgetRandomResult 在类中 DefaultDialectExceptionpublic QueryResult findPageBySql(SqlToyContext sqlToyContext, SqlToyConfig sqlToyConfig, QueryExecutor queryExecutor, DecryptHandler decryptHandler, Long pageNo, Integer pageSize, Connection conn, Integer dbType, String dialect, int fetchSize, int maxRows) throws Exception
DefaultDialectfindPageBySql 在接口中 DialectfindPageBySql 在类中 DefaultDialectExceptionpublic QueryResult findTopBySql(SqlToyContext sqlToyContext, SqlToyConfig sqlToyConfig, QueryExecutor queryExecutor, DecryptHandler decryptHandler, Integer topSize, Connection conn, Integer dbType, String dialect, int fetchSize, int maxRows) throws Exception
DefaultDialectfindTopBySql 在接口中 DialectfindTopBySql 在类中 DefaultDialectExceptionpublic QueryResult findBySql(SqlToyContext sqlToyContext, SqlToyConfig sqlToyConfig, String sql, Object[] paramsValue, QueryExecutorExtend queryExecutorExtend, DecryptHandler decryptHandler, Connection conn, LockMode lockMode, Integer dbType, String dialect, int fetchSize, int maxRows) throws Exception
findBySql 在接口中 DialectfindBySql 在类中 DefaultDialectmaxRows - 设置最大查询记录,一般无需设置Exceptionpublic Long getCountBySql(SqlToyContext sqlToyContext, SqlToyConfig sqlToyConfig, String sql, Object[] paramsValue, boolean isLastSql, Connection conn, Integer dbType, String dialect) throws Exception
getCountBySql 在接口中 DialectgetCountBySql 在类中 DefaultDialectExceptionpublic Serializable load(SqlToyContext sqlToyContext, Serializable entity, List<Class> cascadeTypes, LockMode lockMode, Connection conn, Integer dbType, String dialect, String tableName) throws Exception
load 在接口中 Dialectload 在类中 DefaultDialecttableName - 分表场景对应取得的表名(无分表则当前表名)Exceptionpublic List<?> loadAll(SqlToyContext sqlToyContext, List<?> entities, List<Class> cascadeTypes, LockMode lockMode, Connection conn, Integer dbType, String dialect, String tableName, int fetchSize, int maxRows) throws Exception
loadAll 在接口中 DialectloadAll 在类中 DefaultDialecttableName - 分表场景对应取得的表名(无分表则当前表名)Exceptionpublic Object save(SqlToyContext sqlToyContext, Serializable entity, Connection conn, Integer dbType, String dialect, String tableName) throws Exception
DefaultDialectsave 在接口中 Dialectsave 在类中 DefaultDialecttableName - 分表场景对应取得的表名(无分表则当前表名)Exceptionpublic Long saveAll(SqlToyContext sqlToyContext, List<?> entities, int batchSize, ReflectPropsHandler reflectPropsHandler, Connection conn, Integer dbType, String dialect, Boolean autoCommit, String tableName) throws Exception
saveAll 在接口中 DialectsaveAll 在类中 DefaultDialectreflectPropsHandler - 此参数已经无实际意义tableName - 分表场景对应取得的表名(无分表则当前表名)Exceptionpublic Long update(SqlToyContext sqlToyContext, Serializable entity, String[] forceUpdateFields, boolean cascade, Class[] forceCascadeClass, HashMap<Class,String[]> subTableForceUpdateProps, Connection conn, Integer dbType, String dialect, String tableName) throws Exception
update 在接口中 Dialectupdate 在类中 DefaultDialecttableName - 分表场景对应取得的表名(无分表则当前表名)Exceptionpublic Serializable updateSaveFetch(SqlToyContext sqlToyContext, Serializable entity, UpdateRowHandler updateRowHandler, String[] uniqueProps, Connection conn, Integer dbType, String dialect, String tableName) throws Exception
updateSaveFetch 在接口中 DialectupdateSaveFetch 在类中 DefaultDialectuniqueProps - 唯一性pojo属性,为空默认为主键字段Exceptionpublic Long updateAll(SqlToyContext sqlToyContext, List<?> entities, int batchSize, String[] uniqueFields, String[] forceUpdateFields, ReflectPropsHandler reflectPropsHandler, Connection conn, Integer dbType, String dialect, Boolean autoCommit, String tableName) throws Exception
updateAll 在接口中 DialectupdateAll 在类中 DefaultDialectreflectPropsHandler - 此参数已经无实际意义tableName - 分表场景对应取得的表名(无分表则当前表名)Exceptionpublic Long saveOrUpdate(SqlToyContext sqlToyContext, Serializable entity, String[] forceUpdateFields, Connection conn, Integer dbType, String dialect, Boolean autoCommit, String tableName) throws Exception
saveOrUpdate 在接口中 DialectsaveOrUpdate 在类中 DefaultDialecttableName - 分表场景对应取得的表名(无分表则当前表名)Exceptionpublic Long saveOrUpdateAll(SqlToyContext sqlToyContext, List<?> entities, int batchSize, ReflectPropsHandler reflectPropsHandler, String[] forceUpdateFields, Connection conn, Integer dbType, String dialect, Boolean autoCommit, String tableName) throws Exception
saveOrUpdateAll 在接口中 DialectsaveOrUpdateAll 在类中 DefaultDialectreflectPropsHandler - 此参数已经无实际意义tableName - 分表场景对应取得的表名(无分表则当前表名)Exceptionpublic Long saveAllIgnoreExist(SqlToyContext sqlToyContext, List<?> entities, int batchSize, ReflectPropsHandler reflectPropsHandler, Connection conn, Integer dbType, String dialect, Boolean autoCommit, String tableName) throws Exception
saveAllIgnoreExist 在接口中 DialectsaveAllIgnoreExist 在类中 DefaultDialectreflectPropsHandler - 此参数已经无实际意义tableName - 分表场景对应取得的表名(无分表则当前表名)Exceptionpublic Long delete(SqlToyContext sqlToyContext, Serializable entity, Connection conn, Integer dbType, String dialect, String tableName) throws Exception
delete 在接口中 Dialectdelete 在类中 DefaultDialecttableName - 分表场景对应取得的表名(无分表则当前表名)Exceptionpublic Long deleteAll(SqlToyContext sqlToyContext, List<?> entities, int batchSize, Connection conn, Integer dbType, String dialect, Boolean autoCommit, String tableName) throws Exception
deleteAll 在接口中 DialectdeleteAll 在类中 DefaultDialecttableName - 分表场景对应取得的表名(无分表则当前表名)Exceptionpublic QueryResult updateFetch(SqlToyContext sqlToyContext, SqlToyConfig sqlToyConfig, String sql, Object[] paramValues, UpdateRowHandler updateRowHandler, Connection conn, Integer dbType, String dialect, LockMode lockMode, int fetchSize, int maxRows) throws Exception
updateFetch 在接口中 DialectupdateFetch 在类中 DefaultDialectExceptionpublic StoreResult executeStore(SqlToyContext sqlToyContext, SqlToyConfig sqlToyConfig, String sql, Object[] inParamsValue, Integer[] outParamsType, Connection conn, Integer dbType, String dialect, int fetchSize) throws Exception
executeStore 在接口中 DialectexecuteStore 在类中 DefaultDialectExceptionCopyright © 2023. All rights reserved.