public class H2Dialect extends PostgreSqlDialect
| 限定符和类型 | 字段和说明 |
|---|---|
protected org.slf4j.Logger |
logger
定义日志
|
static String |
VIRTUAL_TABLE
虚表
|
NVL_FUNCTION| 构造器和说明 |
|---|
H2Dialect() |
| 限定符和类型 | 方法和说明 |
|---|---|
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) |
Serializable |
load(SqlToyContext sqlToyContext,
Serializable entity,
List<Class> cascadeTypes,
LockMode lockMode,
Connection conn,
Integer dbType,
String dialect,
String tableName) |
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[] emptyCascadeClasses,
HashMap<Class,String[]> subTableForceUpdateProps,
Connection conn,
Integer dbType,
String dialect,
String tableName) |
QueryResult |
updateFetch(SqlToyContext sqlToyContext,
SqlToyConfig sqlToyConfig,
String sql,
Object[] paramsValue,
UpdateRowHandler updateRowHandler,
Connection conn,
Integer dbType,
String dialect,
LockMode lockMode,
int fetchSize,
int maxRows) |
delete, deleteAll, executeStore, findPageBySql, findTopBySql, getCountBySql, getRandomResult, getTableColumns, getTables, isUnique, loadAll, updateAll, updateSaveFetchpublic 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) throws Exception
findBySql 在接口中 DialectfindBySql 在类中 PostgreSqlDialectmaxRows - 设置最大查询记录,一般无需设置Exceptionpublic Serializable load(SqlToyContext sqlToyContext, Serializable entity, List<Class> cascadeTypes, LockMode lockMode, Connection conn, Integer dbType, String dialect, String tableName) throws Exception
load 在接口中 Dialectload 在类中 PostgreSqlDialecttableName - 分表场景对应取得的表名(无分表则当前表名)Exceptionpublic Long update(SqlToyContext sqlToyContext, Serializable entity, String[] forceUpdateFields, boolean cascade, Class[] emptyCascadeClasses, HashMap<Class,String[]> subTableForceUpdateProps, Connection conn, Integer dbType, String dialect, String tableName) throws Exception
update 在接口中 Dialectupdate 在类中 PostgreSqlDialecttableName - 分表场景对应取得的表名(无分表则当前表名)Exceptionpublic Object save(SqlToyContext sqlToyContext, Serializable entity, Connection conn, Integer dbType, String dialect, String tableName) throws Exception
save 在接口中 Dialectsave 在类中 PostgreSqlDialecttableName - 分表场景对应取得的表名(无分表则当前表名)Exceptionpublic Long saveAll(SqlToyContext sqlToyContext, List<?> entities, int batchSize, ReflectPropsHandler reflectPropsHandler, Connection conn, Integer dbType, String dialect, Boolean autoCommit, String tableName) throws Exception
saveAll 在接口中 DialectsaveAll 在类中 PostgreSqlDialectreflectPropsHandler - 此参数已经无实际意义tableName - 分表场景对应取得的表名(无分表则当前表名)Exceptionpublic Long saveOrUpdate(SqlToyContext sqlToyContext, Serializable entity, String[] forceUpdateFields, Connection conn, Integer dbType, String dialect, Boolean autoCommit, String tableName) throws Exception
saveOrUpdate 在接口中 DialectsaveOrUpdate 在类中 PostgreSqlDialecttableName - 分表场景对应取得的表名(无分表则当前表名)Exceptionpublic Long saveOrUpdateAll(SqlToyContext sqlToyContext, List<?> entities, int batchSize, ReflectPropsHandler reflectPropsHandler, String[] forceUpdateFields, Connection conn, Integer dbType, String dialect, Boolean autoCommit, String tableName) throws Exception
saveOrUpdateAll 在接口中 DialectsaveOrUpdateAll 在类中 PostgreSqlDialectreflectPropsHandler - 此参数已经无实际意义tableName - 分表场景对应取得的表名(无分表则当前表名)Exceptionpublic Long saveAllIgnoreExist(SqlToyContext sqlToyContext, List<?> entities, int batchSize, ReflectPropsHandler reflectPropsHandler, Connection conn, Integer dbType, String dialect, Boolean autoCommit, String tableName) throws Exception
saveAllIgnoreExist 在接口中 DialectsaveAllIgnoreExist 在类中 PostgreSqlDialectreflectPropsHandler - 此参数已经无实际意义tableName - 分表场景对应取得的表名(无分表则当前表名)Exceptionpublic QueryResult updateFetch(SqlToyContext sqlToyContext, SqlToyConfig sqlToyConfig, String sql, Object[] paramsValue, UpdateRowHandler updateRowHandler, Connection conn, Integer dbType, String dialect, LockMode lockMode, int fetchSize, int maxRows) throws Exception
updateFetch 在接口中 DialectupdateFetch 在类中 PostgreSqlDialectExceptionCopyright © 2023. All rights reserved.