public class ClickHouseDialectUtils extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected static org.slf4j.Logger |
logger
定义日志
|
| 构造器和说明 |
|---|
ClickHouseDialectUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static Long |
delete(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 boolean |
isAssignPKValue(PKStrategy pkStrategy) |
static Object |
save(SqlToyContext sqlToyContext,
EntityMeta entityMeta,
String insertSql,
Serializable entity,
Connection conn,
Integer dbType) |
static Long |
saveAll(SqlToyContext sqlToyContext,
EntityMeta entityMeta,
String insertSql,
List<?> entities,
int batchSize,
ReflectPropsHandler reflectPropsHandler,
Connection conn,
Integer dbType,
Boolean autoCommit) |
static Long |
update(SqlToyContext sqlToyContext,
Serializable entity,
String nullFunction,
String[] forceUpdateFields,
Connection conn,
Integer dbType,
String tableName) |
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) |
static String |
wrapDelOrUpdate(EntityMeta entityMeta,
String sql,
SqlType sqlType) |
public static Object save(SqlToyContext sqlToyContext, EntityMeta entityMeta, String insertSql, Serializable entity, Connection conn, Integer dbType) throws Exception
sqlToyContext - entityMeta - insertSql - entity - conn - dbType - Exceptionpublic 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 - Exceptionpublic static Long delete(SqlToyContext sqlToyContext, Serializable entity, Connection conn, Integer dbType, String tableName) throws Exception
sqlToyContext - entity - conn - dbType - tableName - Exceptionpublic static Long update(SqlToyContext sqlToyContext, Serializable entity, String nullFunction, String[] forceUpdateFields, Connection conn, Integer dbType, String tableName) throws Exception
Exceptionpublic 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 - Exceptionpublic static List<ColumnMeta> getTableColumns(String catalog, String schema, String tableName, Connection conn, Integer dbType, String dialect) throws Exception
Exceptionpublic static boolean isAssignPKValue(PKStrategy pkStrategy)
public static String wrapDelOrUpdate(EntityMeta entityMeta, String sql, SqlType sqlType)
entityMeta - sql - sqlType - Copyright © 2023. All rights reserved.