public interface Dialect
| 限定符和类型 | 方法和说明 |
|---|---|
Long |
delete(SqlToyContext sqlToyContext,
Serializable entity,
Connection conn,
Integer dbType,
String dialect,
String tableName) |
Long |
deleteAll(SqlToyContext sqlToyContext,
List<?> entities,
int batchSize,
Connection conn,
Integer dbType,
String dialect,
Boolean autoCommit,
String tableName) |
StoreResult |
executeStore(SqlToyContext sqlToyContext,
SqlToyConfig sqlToyConfig,
String sql,
Object[] inParamsValue,
Integer[] outParamsType,
Connection conn,
Integer dbType,
String dialect,
int fetchSize) |
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) |
QueryResult |
findPageBySql(SqlToyContext sqlToyContext,
SqlToyConfig sqlToyConfig,
QueryExecutor queryExecutor,
DecryptHandler decryptHandler,
Long pageNo,
Integer pageSize,
Connection conn,
Integer dbType,
String dialect,
int fetchSize,
int maxRows) |
QueryResult |
findTopBySql(SqlToyContext sqlToyContext,
SqlToyConfig sqlToyConfig,
QueryExecutor queryExecutor,
DecryptHandler decryptHandler,
Integer topSize,
Connection conn,
Integer dbType,
String dialect,
int fetchSize,
int maxRows) |
Long |
getCountBySql(SqlToyContext sqlToyContext,
SqlToyConfig sqlToyConfig,
String sql,
Object[] paramsValue,
boolean isLastSql,
Connection conn,
Integer dbType,
String dialect) |
QueryResult |
getRandomResult(SqlToyContext sqlToyContext,
SqlToyConfig sqlToyConfig,
QueryExecutor queryExecutor,
DecryptHandler decryptHandler,
Long totalCount,
Long randomCount,
Connection conn,
Integer dbType,
String dialect,
int fetchSize,
int maxRows) |
List<ColumnMeta> |
getTableColumns(String catalog,
String schema,
String tableName,
Connection conn,
Integer dbType,
String dialect) |
List<TableMeta> |
getTables(String catalog,
String schema,
String tableName,
Connection conn,
Integer dbType,
String dialect) |
boolean |
isUnique(SqlToyContext sqlToyContext,
Serializable entity,
String[] paramsNamed,
Connection conn,
Integer dbType,
String tableName) |
Serializable |
load(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) |
Object |
save(SqlToyContext sqlToyContext,
Serializable entity,
Connection conn,
Integer dbType,
String dialect,
String tableName) |
Long |
saveAll(SqlToyContext sqlToyContext,
List<?> entities,
int batchSize,
ReflectPropsHandler reflectPropsHandler,
Connection conn,
Integer dbType,
String dialect,
Boolean autoCommit,
String tableName) |
Long |
saveAllIgnoreExist(SqlToyContext sqlToyContext,
List<?> entities,
int batchSize,
ReflectPropsHandler reflectPropsHandler,
Connection conn,
Integer dbType,
String dialect,
Boolean autoCommit,
String tableName) |
Long |
saveOrUpdate(SqlToyContext sqlToyContext,
Serializable entity,
String[] forceUpdateFields,
Connection conn,
Integer dbType,
String dialect,
Boolean autoCommit,
String tableName) |
Long |
saveOrUpdateAll(SqlToyContext sqlToyContext,
List<?> entities,
int batchSize,
ReflectPropsHandler reflectPropsHandler,
String[] forceUpdateFields,
Connection conn,
Integer dbType,
String dialect,
Boolean autoCommit,
String tableName) |
Long |
update(SqlToyContext sqlToyContext,
Serializable entity,
String[] forceUpdateFields,
boolean cascade,
Class[] forceCascadeClass,
HashMap<Class,String[]> subTableForceUpdateProps,
Connection conn,
Integer dbType,
String dialect,
String tableName) |
Long |
updateAll(SqlToyContext sqlToyContext,
List<?> entities,
int batchSize,
String[] uniqueFields,
String[] forceUpdateFields,
ReflectPropsHandler reflectPropsHandler,
Connection conn,
Integer dbType,
String dialect,
Boolean autoCommit,
String tableName) |
QueryResult |
updateFetch(SqlToyContext sqlToyContext,
SqlToyConfig sqlToyConfig,
String sql,
Object[] paramValues,
UpdateRowHandler updateRowHandler,
Connection conn,
Integer dbType,
String dialect,
LockMode lockMode,
int fetchSize,
int maxRows) |
Serializable |
updateSaveFetch(SqlToyContext sqlToyContext,
Serializable entity,
UpdateRowHandler updateRowHandler,
String[] uniqueProps,
Connection conn,
Integer dbType,
String dialect,
String tableName) |
boolean isUnique(SqlToyContext sqlToyContext, Serializable entity, String[] paramsNamed, Connection conn, Integer dbType, String tableName)
sqlToyContext - entity - paramsNamed - 对象属性名称(不是数据库表字段名称)conn - dbType - tableName - 分表场景对应取得的表名(无分表则当前表名)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 - ExceptionQueryResult 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 - ExceptionQueryResult 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 - ExceptionQueryResult 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
sqlToyContext - sqlToyConfig - sql - paramsValue - queryExecutorExtend - decryptHandler - conn - lockMode - dbType - dialect - fetchSize - maxRows - 设置最大查询记录,一般无需设置ExceptionLong getCountBySql(SqlToyContext sqlToyContext, SqlToyConfig sqlToyConfig, String sql, Object[] paramsValue, boolean isLastSql, Connection conn, Integer dbType, String dialect) throws Exception
sqlToyContext - sqlToyConfig - sql - paramsValue - isLastSql - conn - dbType - dialect - ExceptionSerializable load(SqlToyContext sqlToyContext, Serializable entity, List<Class> cascadeTypes, LockMode lockMode, Connection conn, Integer dbType, String dialect, String tableName) throws Exception
sqlToyContext - entity - cascadeTypes - lockMode - conn - dbType - dialect - tableName - 分表场景对应取得的表名(无分表则当前表名)ExceptionList<?> loadAll(SqlToyContext sqlToyContext, List<?> entities, List<Class> cascadeTypes, LockMode lockMode, Connection conn, Integer dbType, String dialect, String tableName, int fetchSize, int maxRows) throws Exception
sqlToyContext - entities - cascadeTypes - lockMode - conn - dbType - dialect - tableName - 分表场景对应取得的表名(无分表则当前表名)fetchSize - maxRows - ExceptionObject save(SqlToyContext sqlToyContext, Serializable entity, Connection conn, Integer dbType, String dialect, String tableName) throws Exception
sqlToyContext - entity - conn - dbType - dialect - tableName - 分表场景对应取得的表名(无分表则当前表名)ExceptionLong saveAll(SqlToyContext sqlToyContext, List<?> entities, int batchSize, ReflectPropsHandler reflectPropsHandler, Connection conn, Integer dbType, String dialect, Boolean autoCommit, String tableName) throws Exception
sqlToyContext - entities - batchSize - reflectPropsHandler - 此参数已经无实际意义conn - dbType - dialect - autoCommit - tableName - 分表场景对应取得的表名(无分表则当前表名)ExceptionLong 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
sqlToyContext - entity - forceUpdateFields - cascade - forceCascadeClass - subTableForceUpdateProps - conn - dbType - dialect - tableName - 分表场景对应取得的表名(无分表则当前表名)ExceptionSerializable updateSaveFetch(SqlToyContext sqlToyContext, Serializable entity, UpdateRowHandler updateRowHandler, String[] uniqueProps, Connection conn, Integer dbType, String dialect, String tableName) throws Exception
sqlToyContext - entity - updateRowHandler - uniqueProps - 唯一性pojo属性,为空默认为主键字段conn - dbType - dialect - tableName - ExceptionLong 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
sqlToyContext - entities - batchSize - uniqueFields - forceUpdateFields - reflectPropsHandler - 此参数已经无实际意义conn - dbType - dialect - autoCommit - tableName - 分表场景对应取得的表名(无分表则当前表名)ExceptionLong saveOrUpdate(SqlToyContext sqlToyContext, Serializable entity, String[] forceUpdateFields, Connection conn, Integer dbType, String dialect, Boolean autoCommit, String tableName) throws Exception
sqlToyContext - entity - forceUpdateFields - conn - dbType - dialect - autoCommit - tableName - 分表场景对应取得的表名(无分表则当前表名)ExceptionLong 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 - 分表场景对应取得的表名(无分表则当前表名)ExceptionLong saveAllIgnoreExist(SqlToyContext sqlToyContext, List<?> entities, int batchSize, ReflectPropsHandler reflectPropsHandler, Connection conn, Integer dbType, String dialect, Boolean autoCommit, String tableName) throws Exception
sqlToyContext - entities - batchSize - reflectPropsHandler - 此参数已经无实际意义conn - dbType - dialect - autoCommit - tableName - 分表场景对应取得的表名(无分表则当前表名)ExceptionLong delete(SqlToyContext sqlToyContext, Serializable entity, Connection conn, Integer dbType, String dialect, String tableName) throws Exception
sqlToyContext - entity - conn - dbType - dialect - tableName - 分表场景对应取得的表名(无分表则当前表名)ExceptionLong deleteAll(SqlToyContext sqlToyContext, List<?> entities, int batchSize, Connection conn, Integer dbType, String dialect, Boolean autoCommit, String tableName) throws Exception
sqlToyContext - entities - batchSize - conn - dbType - dialect - autoCommit - tableName - 分表场景对应取得的表名(无分表则当前表名)ExceptionQueryResult 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
sqlToyContext - sqlToyConfig - sql - paramValues - updateRowHandler - conn - dbType - dialect - lockMode - fetchSize - maxRows - ExceptionStoreResult executeStore(SqlToyContext sqlToyContext, SqlToyConfig sqlToyConfig, String sql, Object[] inParamsValue, Integer[] outParamsType, Connection conn, Integer dbType, String dialect, int fetchSize) throws Exception
sqlToyContext - sqlToyConfig - sql - inParamsValue - outParamsType - conn - dbType - dialect - fetchSize - ExceptionList<ColumnMeta> getTableColumns(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.