类 TDengineDialect
- java.lang.Object
-
- org.sagacity.sqltoy.dialect.impl.DefaultDialect
-
- org.sagacity.sqltoy.dialect.impl.TDengineDialect
-
- 所有已实现的接口:
Dialect
public class TDengineDialect extends DefaultDialect
- 版本:
- v1.0, Date:2022年9月13日
- 作者:
- zhongxuchen
-
-
字段概要
字段 修饰符和类型 字段 说明 protected org.slf4j.Loggerlogger定义日志-
从类继承的字段 org.sagacity.sqltoy.dialect.impl.DefaultDialect
NVL_FUNCTION
-
-
构造器概要
构造器 构造器 说明 TDengineDialect()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Longdelete(SqlToyContext sqlToyContext, Serializable entity, Connection conn, Integer dbType, String dialect, String tableName)LongdeleteAll(SqlToyContext sqlToyContext, List<?> entities, int batchSize, Connection conn, Integer dbType, String dialect, Boolean autoCommit, String tableName)StoreResultexecuteStore(SqlToyContext sqlToyContext, SqlToyConfig sqlToyConfig, String sql, Object[] inParamsValue, Integer[] outParamsType, Connection conn, Integer dbType, String dialect, int fetchSize)QueryResultfindBySql(SqlToyContext sqlToyContext, SqlToyConfig sqlToyConfig, String sql, Object[] paramsValue, QueryExecutorExtend queryExecutorExtend, DecryptHandler decryptHandler, Connection conn, LockMode lockMode, Integer dbType, String dialect, int fetchSize, int maxRows)QueryResultfindPageBySql(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 模式QueryResultfindTopBySql(SqlToyContext sqlToyContext, SqlToyConfig sqlToyConfig, QueryExecutor queryExecutor, DecryptHandler decryptHandler, Integer topSize, Connection conn, Integer dbType, String dialect, int fetchSize, int maxRows)以mysql为蓝本实现LonggetCountBySql(SqlToyContext sqlToyContext, SqlToyConfig sqlToyConfig, String sql, Object[] paramsValue, boolean isLastSql, Connection conn, Integer dbType, String dialect)QueryResultgetRandomResult(SqlToyContext sqlToyContext, SqlToyConfig sqlToyConfig, QueryExecutor queryExecutor, DecryptHandler decryptHandler, Long totalCount, Long randomCount, Connection conn, Integer dbType, String dialect, int fetchSize, int maxRows)以mysql 为蓝本实现booleanisUnique(SqlToyContext sqlToyContext, Serializable entity, String[] paramsNamed, Connection conn, Integer dbType, String tableName)Serializableload(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)Objectsave(SqlToyContext sqlToyContext, Serializable entity, Connection conn, Integer dbType, String dialect, String tableName)以mysql为蓝本实现LongsaveAll(SqlToyContext sqlToyContext, List<?> entities, int batchSize, ReflectPropsHandler reflectPropsHandler, Connection conn, Integer dbType, String dialect, Boolean autoCommit, String tableName)LongsaveAllIgnoreExist(SqlToyContext sqlToyContext, List<?> entities, int batchSize, ReflectPropsHandler reflectPropsHandler, Connection conn, Integer dbType, String dialect, Boolean autoCommit, String tableName)LongsaveOrUpdate(SqlToyContext sqlToyContext, Serializable entity, String[] forceUpdateFields, Connection conn, Integer dbType, String dialect, Boolean autoCommit, String tableName)LongsaveOrUpdateAll(SqlToyContext sqlToyContext, List<?> entities, int batchSize, ReflectPropsHandler reflectPropsHandler, String[] forceUpdateFields, Connection conn, Integer dbType, String dialect, Boolean autoCommit, String tableName)Longupdate(SqlToyContext sqlToyContext, Serializable entity, String[] forceUpdateFields, boolean cascade, Class[] forceCascadeClass, HashMap<Class,String[]> subTableForceUpdateProps, Connection conn, Integer dbType, String dialect, String tableName)LongupdateAll(SqlToyContext sqlToyContext, List<?> entities, int batchSize, String[] uniqueFields, String[] forceUpdateFields, ReflectPropsHandler reflectPropsHandler, Connection conn, Integer dbType, String dialect, Boolean autoCommit, String tableName)QueryResultupdateFetch(SqlToyContext sqlToyContext, SqlToyConfig sqlToyConfig, String sql, Object[] paramValues, UpdateRowHandler updateRowHandler, Connection conn, Integer dbType, String dialect, LockMode lockMode, int fetchSize, int maxRows)SerializableupdateSaveFetch(SqlToyContext sqlToyContext, Serializable entity, UpdateRowHandler updateRowHandler, String[] uniqueProps, Connection conn, Integer dbType, String dialect, String tableName)-
从类继承的方法 org.sagacity.sqltoy.dialect.impl.DefaultDialect
getTableColumns, getTables
-
-
-
-
方法详细资料
-
isUnique
public boolean isUnique(SqlToyContext sqlToyContext, Serializable entity, String[] paramsNamed, Connection conn, Integer dbType, String tableName)
- 指定者:
isUnique在接口中Dialect- 覆盖:
isUnique在类中DefaultDialectparamsNamed- 对象属性名称(不是数据库表字段名称)tableName- 分表场景对应取得的表名(无分表则当前表名)- 返回:
-
getRandomResult
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
从类复制的说明:DefaultDialect以mysql 为蓝本实现- 指定者:
getRandomResult在接口中Dialect- 覆盖:
getRandomResult在类中DefaultDialect- 返回:
- 抛出:
Exception
-
findPageBySql
public 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
从类复制的说明:DefaultDialect以postgres 标准的limit offset 模式- 指定者:
findPageBySql在接口中Dialect- 覆盖:
findPageBySql在类中DefaultDialect- 返回:
- 抛出:
Exception
-
findTopBySql
public QueryResult findTopBySql(SqlToyContext sqlToyContext, SqlToyConfig sqlToyConfig, QueryExecutor queryExecutor, DecryptHandler decryptHandler, Integer topSize, Connection conn, Integer dbType, String dialect, int fetchSize, int maxRows) throws Exception
从类复制的说明:DefaultDialect以mysql为蓝本实现- 指定者:
findTopBySql在接口中Dialect- 覆盖:
findTopBySql在类中DefaultDialect- 返回:
- 抛出:
Exception
-
findBySql
public 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在接口中Dialect- 覆盖:
findBySql在类中DefaultDialectmaxRows- 设置最大查询记录,一般无需设置- 返回:
- 抛出:
Exception
-
getCountBySql
public Long getCountBySql(SqlToyContext sqlToyContext, SqlToyConfig sqlToyConfig, String sql, Object[] paramsValue, boolean isLastSql, Connection conn, Integer dbType, String dialect) throws Exception
- 指定者:
getCountBySql在接口中Dialect- 覆盖:
getCountBySql在类中DefaultDialect- 返回:
- 抛出:
Exception
-
load
public Serializable load(SqlToyContext sqlToyContext, Serializable entity, List<Class> cascadeTypes, LockMode lockMode, Connection conn, Integer dbType, String dialect, String tableName) throws Exception
- 指定者:
load在接口中Dialect- 覆盖:
load在类中DefaultDialecttableName- 分表场景对应取得的表名(无分表则当前表名)- 返回:
- 抛出:
Exception
-
loadAll
public 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在接口中Dialect- 覆盖:
loadAll在类中DefaultDialecttableName- 分表场景对应取得的表名(无分表则当前表名)- 返回:
- 抛出:
Exception
-
save
public Object save(SqlToyContext sqlToyContext, Serializable entity, Connection conn, Integer dbType, String dialect, String tableName) throws Exception
从类复制的说明:DefaultDialect以mysql为蓝本实现- 指定者:
save在接口中Dialect- 覆盖:
save在类中DefaultDialecttableName- 分表场景对应取得的表名(无分表则当前表名)- 返回:
- 抛出:
Exception
-
saveAll
public Long saveAll(SqlToyContext sqlToyContext, List<?> entities, int batchSize, ReflectPropsHandler reflectPropsHandler, Connection conn, Integer dbType, String dialect, Boolean autoCommit, String tableName) throws Exception
- 指定者:
saveAll在接口中Dialect- 覆盖:
saveAll在类中DefaultDialectreflectPropsHandler- 此参数已经无实际意义tableName- 分表场景对应取得的表名(无分表则当前表名)- 返回:
- 抛出:
Exception
-
update
public 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在接口中Dialect- 覆盖:
update在类中DefaultDialecttableName- 分表场景对应取得的表名(无分表则当前表名)- 返回:
- 抛出:
Exception
-
updateSaveFetch
public Serializable updateSaveFetch(SqlToyContext sqlToyContext, Serializable entity, UpdateRowHandler updateRowHandler, String[] uniqueProps, Connection conn, Integer dbType, String dialect, String tableName) throws Exception
- 指定者:
updateSaveFetch在接口中Dialect- 覆盖:
updateSaveFetch在类中DefaultDialectuniqueProps- 唯一性pojo属性,为空默认为主键字段- 返回:
- 抛出:
Exception
-
updateAll
public 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在接口中Dialect- 覆盖:
updateAll在类中DefaultDialectreflectPropsHandler- 此参数已经无实际意义tableName- 分表场景对应取得的表名(无分表则当前表名)- 返回:
- 抛出:
Exception
-
saveOrUpdate
public Long saveOrUpdate(SqlToyContext sqlToyContext, Serializable entity, String[] forceUpdateFields, Connection conn, Integer dbType, String dialect, Boolean autoCommit, String tableName) throws Exception
- 指定者:
saveOrUpdate在接口中Dialect- 覆盖:
saveOrUpdate在类中DefaultDialecttableName- 分表场景对应取得的表名(无分表则当前表名)- 返回:
- 抛出:
Exception
-
saveOrUpdateAll
public 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在接口中Dialect- 覆盖:
saveOrUpdateAll在类中DefaultDialectreflectPropsHandler- 此参数已经无实际意义tableName- 分表场景对应取得的表名(无分表则当前表名)- 返回:
- 抛出:
Exception
-
saveAllIgnoreExist
public Long saveAllIgnoreExist(SqlToyContext sqlToyContext, List<?> entities, int batchSize, ReflectPropsHandler reflectPropsHandler, Connection conn, Integer dbType, String dialect, Boolean autoCommit, String tableName) throws Exception
- 指定者:
saveAllIgnoreExist在接口中Dialect- 覆盖:
saveAllIgnoreExist在类中DefaultDialectreflectPropsHandler- 此参数已经无实际意义tableName- 分表场景对应取得的表名(无分表则当前表名)- 返回:
- 抛出:
Exception
-
delete
public Long delete(SqlToyContext sqlToyContext, Serializable entity, Connection conn, Integer dbType, String dialect, String tableName) throws Exception
- 指定者:
delete在接口中Dialect- 覆盖:
delete在类中DefaultDialecttableName- 分表场景对应取得的表名(无分表则当前表名)- 返回:
- 抛出:
Exception
-
deleteAll
public Long deleteAll(SqlToyContext sqlToyContext, List<?> entities, int batchSize, Connection conn, Integer dbType, String dialect, Boolean autoCommit, String tableName) throws Exception
- 指定者:
deleteAll在接口中Dialect- 覆盖:
deleteAll在类中DefaultDialecttableName- 分表场景对应取得的表名(无分表则当前表名)- 返回:
- 抛出:
Exception
-
updateFetch
public 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在接口中Dialect- 覆盖:
updateFetch在类中DefaultDialect- 返回:
- 抛出:
Exception
-
executeStore
public StoreResult executeStore(SqlToyContext sqlToyContext, SqlToyConfig sqlToyConfig, String sql, Object[] inParamsValue, Integer[] outParamsType, Connection conn, Integer dbType, String dialect, int fetchSize) throws Exception
- 指定者:
executeStore在接口中Dialect- 覆盖:
executeStore在类中DefaultDialect- 返回:
- 抛出:
Exception
-
-