public class PostgreSqlDialectUtils extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
NVL_FUNCTION
判定为null的函数
|
| 构造器和说明 |
|---|
PostgreSqlDialectUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static QueryResult |
getRandomResult(SqlToyContext sqlToyContext,
SqlToyConfig sqlToyConfig,
QueryExecutor queryExecutor,
DecryptHandler decryptHandler,
Long totalCount,
Long randomCount,
Connection conn,
Integer dbType,
String dialect,
int fetchSize,
int maxRows) |
static boolean |
isAssignPKValue(PKStrategy pkStrategy) |
static Object |
save(SqlToyContext sqlToyContext,
Serializable entity,
Connection conn,
Integer dbType,
String tableName) |
static Long |
saveAll(SqlToyContext sqlToyContext,
List<?> entities,
int batchSize,
ReflectPropsHandler reflectPropsHandler,
Connection conn,
Integer dbType,
Boolean autoCommit,
String tableName) |
static Long |
saveOrUpdateAll(SqlToyContext sqlToyContext,
List<?> entities,
int batchSize,
ReflectPropsHandler reflectPropsHandler,
String[] forceUpdateFields,
Connection conn,
Integer dbType,
String dialect,
Boolean autoCommit,
String tableName) |
static void |
wrapSelectFields(StringBuilder sql,
String columnName,
FieldMeta fieldMeta) |
public static 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
sqlToyContext - sqlToyConfig - queryExecutor - totalCount - randomCount - conn - dbType - dialect - fetchSize - maxRows - Exceptionpublic static Object save(SqlToyContext sqlToyContext, Serializable entity, Connection conn, Integer dbType, String tableName) throws Exception
sqlToyContext - entity - conn - dbType - tableName - Exceptionpublic static Long saveAll(SqlToyContext sqlToyContext, List<?> entities, int batchSize, ReflectPropsHandler reflectPropsHandler, Connection conn, Integer dbType, Boolean autoCommit, String tableName) throws Exception
sqlToyContext - entities - batchSize - reflectPropsHandler - conn - dbType - autoCommit - tableName - Exceptionpublic static Long saveOrUpdateAll(SqlToyContext sqlToyContext, List<?> entities, int batchSize, ReflectPropsHandler reflectPropsHandler, String[] forceUpdateFields, Connection conn, Integer dbType, String dialect, Boolean autoCommit, String tableName) throws Exception
sqlToyContext - entities - batchSize - reflectPropsHandler - forceUpdateFields - conn - dbType - dialect - autoCommit - tableName - Exceptionpublic static void wrapSelectFields(StringBuilder sql, String columnName, FieldMeta fieldMeta)
sql - columnName - fieldMeta - public static boolean isAssignPKValue(PKStrategy pkStrategy)
pkStrategy - Copyright © 2023. All rights reserved.