类 ClickHouseDialectUtils
- java.lang.Object
-
- org.sagacity.sqltoy.dialect.utils.ClickHouseDialectUtils
-
public class ClickHouseDialectUtils extends Object
- 版本:
- v1.0,Date:2020年1月20日
- 作者:
- zhongxuchen
-
-
字段概要
字段 修饰符和类型 字段 说明 protected static org.slf4j.Loggerlogger定义日志
-
构造器概要
构造器 构造器 说明 ClickHouseDialectUtils()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static Longdelete(SqlToyContext sqlToyContext, Serializable entity, Connection conn, Integer dbType, String tableName)static List<ColumnMeta>getTableColumns(String catalog, String schema, String tableName, Connection conn, Integer dbType, String dialect)static booleanisAssignPKValue(PKStrategy pkStrategy)static Objectsave(SqlToyContext sqlToyContext, EntityMeta entityMeta, String insertSql, Serializable entity, Connection conn, Integer dbType)static LongsaveAll(SqlToyContext sqlToyContext, EntityMeta entityMeta, String insertSql, List<?> entities, int batchSize, ReflectPropsHandler reflectPropsHandler, Connection conn, Integer dbType, Boolean autoCommit)static Longupdate(SqlToyContext sqlToyContext, Serializable entity, String nullFunction, String[] forceUpdateFields, Connection conn, Integer dbType, String tableName)static LongupdateAll(SqlToyContext sqlToyContext, List<?> entities, int batchSize, String[] forceUpdateFields, ReflectPropsHandler reflectPropsHandler, String nullFunction, Connection conn, Integer dbType, Boolean autoCommit, String tableName, boolean skipNull)static StringwrapDelOrUpdate(EntityMeta entityMeta, String sql, SqlType sqlType)
-
-
-
方法详细资料
-
save
public static Object save(SqlToyContext sqlToyContext, EntityMeta entityMeta, String insertSql, Serializable entity, Connection conn, Integer dbType) throws Exception
- 参数:
sqlToyContext-entityMeta-insertSql-entity-conn-dbType-- 返回:
- 抛出:
Exception
-
saveAll
public static Long saveAll(SqlToyContext sqlToyContext, EntityMeta entityMeta, String insertSql, List<?> entities, int batchSize, ReflectPropsHandler reflectPropsHandler, Connection conn, Integer dbType, Boolean autoCommit) throws Exception
- 参数:
sqlToyContext-entityMeta-insertSql-entities-batchSize-reflectPropsHandler-conn-dbType-autoCommit-- 返回:
- 抛出:
Exception
-
delete
public static Long delete(SqlToyContext sqlToyContext, Serializable entity, Connection conn, Integer dbType, String tableName) throws Exception
- 参数:
sqlToyContext-entity-conn-dbType-tableName-- 返回:
- 抛出:
Exception
-
update
public static Long update(SqlToyContext sqlToyContext, Serializable entity, String nullFunction, String[] forceUpdateFields, Connection conn, Integer dbType, String tableName) throws Exception
- 抛出:
Exception
-
updateAll
public static Long updateAll(SqlToyContext sqlToyContext, List<?> entities, int batchSize, String[] forceUpdateFields, ReflectPropsHandler reflectPropsHandler, String nullFunction, Connection conn, Integer dbType, Boolean autoCommit, String tableName, boolean skipNull) throws Exception
- 参数:
sqlToyContext-entities-batchSize-forceUpdateFields-reflectPropsHandler-nullFunction-conn-dbType-autoCommit-tableName-skipNull-- 返回:
- 抛出:
Exception
-
getTableColumns
public static List<ColumnMeta> getTableColumns(String catalog, String schema, String tableName, Connection conn, Integer dbType, String dialect) throws Exception
- 抛出:
Exception
-
isAssignPKValue
public static boolean isAssignPKValue(PKStrategy pkStrategy)
-
wrapDelOrUpdate
public static String wrapDelOrUpdate(EntityMeta entityMeta, String sql, SqlType sqlType)
- 参数:
entityMeta-sql-sqlType-- 返回:
-
-