类 H2Dialect
- java.lang.Object
-
- org.sagacity.sqltoy.dialect.impl.PostgreSqlDialect
-
- org.sagacity.sqltoy.dialect.impl.H2Dialect
-
- 所有已实现的接口:
Dialect
public class H2Dialect extends PostgreSqlDialect
-
-
字段概要
字段 修饰符和类型 字段 说明 protected org.slf4j.Loggerlogger定义日志static StringVIRTUAL_TABLE虚表-
从类继承的字段 org.sagacity.sqltoy.dialect.impl.PostgreSqlDialect
NVL_FUNCTION
-
-
构造器概要
构造器 构造器 说明 H2Dialect()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 QueryResultfindBySql(SqlToyContext sqlToyContext, SqlToyConfig sqlToyConfig, String sql, Object[] paramsValue, QueryExecutorExtend queryExecutorExtend, DecryptHandler decryptHandler, Connection conn, LockMode lockMode, Integer dbType, String dialect, int fetchSize, int maxRows)Serializableload(SqlToyContext sqlToyContext, Serializable entity, List<Class> cascadeTypes, LockMode lockMode, Connection conn, Integer dbType, String dialect, String tableName)LongsaveAllIgnoreExist(SqlToyContext sqlToyContext, List<?> entities, int batchSize, ReflectPropsHandler reflectPropsHandler, Connection conn, Integer dbType, String dialect, Boolean autoCommit, String tableName)QueryResultupdateFetch(SqlToyContext sqlToyContext, SqlToyConfig sqlToyConfig, String sql, Object[] paramsValue, UpdateRowHandler updateRowHandler, Connection conn, Integer dbType, String dialect, LockMode lockMode, int fetchSize, int maxRows)-
从类继承的方法 org.sagacity.sqltoy.dialect.impl.PostgreSqlDialect
delete, deleteAll, executeStore, findPageBySql, findTopBySql, getCountBySql, getRandomResult, getTableColumns, getTables, isUnique, loadAll, save, saveAll, saveOrUpdate, saveOrUpdateAll, update, updateAll, updateSaveFetch
-
-
-
-
方法详细资料
-
findBySql
public 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在接口中Dialect- 覆盖:
findBySql在类中PostgreSqlDialectmaxRows- 设置最大查询记录,一般无需设置- 返回:
- 抛出:
Exception
-
load
public Serializable load(SqlToyContext sqlToyContext, Serializable entity, List<Class> cascadeTypes, LockMode lockMode, Connection conn, Integer dbType, String dialect, String tableName) throws Exception
- 指定者:
load在接口中Dialect- 覆盖:
load在类中PostgreSqlDialecttableName- 分表场景对应取得的表名(无分表则当前表名)- 返回:
- 抛出:
Exception
-
saveAllIgnoreExist
public Long saveAllIgnoreExist(SqlToyContext sqlToyContext, List<?> entities, int batchSize, ReflectPropsHandler reflectPropsHandler, Connection conn, Integer dbType, String dialect, Boolean autoCommit, String tableName) throws Exception
- 指定者:
saveAllIgnoreExist在接口中Dialect- 覆盖:
saveAllIgnoreExist在类中PostgreSqlDialectreflectPropsHandler- 此参数已经无实际意义tableName- 分表场景对应取得的表名(无分表则当前表名)- 返回:
- 抛出:
Exception
-
updateFetch
public 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在接口中Dialect- 覆盖:
updateFetch在类中PostgreSqlDialect- 返回:
- 抛出:
Exception
-
-