public class DefaultDialectUtils extends Object
| 构造器和说明 |
|---|
DefaultDialectUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static Long |
deleteAll(SqlToyContext sqlToyContext,
List<?> entities,
int batchSize,
Connection conn,
Integer dbType,
Boolean autoCommit,
String tableName) |
static QueryResult |
findPageBySql(SqlToyContext sqlToyContext,
SqlToyConfig sqlToyConfig,
QueryExecutor queryExecutor,
DecryptHandler decryptHandler,
Long pageNo,
Integer pageSize,
Connection conn,
Integer dbType,
String dialect,
int fetchSize,
int maxRows) |
static QueryResult |
findTopBySql(SqlToyContext sqlToyContext,
SqlToyConfig sqlToyConfig,
QueryExecutor queryExecutor,
DecryptHandler decryptHandler,
Integer topSize,
Connection conn,
Integer dbType,
String dialect,
int fetchSize,
int maxRows) |
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 List<ColumnMeta> |
getTableColumns(String catalog,
String schema,
String tableName,
Connection conn,
Integer dbType,
String dialect) |
static Map<String,ColumnMeta> |
getTablePrimaryKeys(String catalog,
String schema,
String tableName,
Connection conn,
Integer dbType,
String dialect) |
static List<TableMeta> |
getTables(String catalog,
String schema,
String tableName,
Connection conn,
Integer dbType,
String dialect) |
static Serializable |
updateSaveFetch(SqlToyContext sqlToyContext,
Serializable entity,
UpdateRowHandler updateRowHandler,
String[] uniqueProps,
Connection conn,
Integer dbType,
String dialect,
String tableName) |
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 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
sqlToyContext - sqlToyConfig - queryExecutor - pageNo - pageSize - conn - dbType - dialect - fetchSize - maxRows - Exceptionpublic static QueryResult findTopBySql(SqlToyContext sqlToyContext, SqlToyConfig sqlToyConfig, QueryExecutor queryExecutor, DecryptHandler decryptHandler, Integer topSize, Connection conn, Integer dbType, String dialect, int fetchSize, int maxRows) throws Exception
sqlToyContext - sqlToyConfig - queryExecutor - topSize - conn - dbType - dialect - fetchSize - maxRows - Exceptionpublic static Long deleteAll(SqlToyContext sqlToyContext, List<?> entities, int batchSize, Connection conn, Integer dbType, Boolean autoCommit, String tableName) throws Exception
sqlToyContext - entities - batchSize - conn - dbType - autoCommit - tableName - Exceptionpublic static Serializable updateSaveFetch(SqlToyContext sqlToyContext, Serializable entity, UpdateRowHandler updateRowHandler, String[] uniqueProps, Connection conn, Integer dbType, String dialect, String tableName) throws Exception
sqlToyContext - entity - updateRowHandler - uniqueProps - conn - dbType - dialect - tableName - Exceptionpublic static List<ColumnMeta> getTableColumns(String catalog, String schema, String tableName, Connection conn, Integer dbType, String dialect) throws Exception
Exceptionpublic static Map<String,ColumnMeta> getTablePrimaryKeys(String catalog, String schema, String tableName, Connection conn, Integer dbType, String dialect) throws Exception
catalog - schema - tableName - conn - dbType - dialect - ExceptionCopyright © 2023. All rights reserved.