| 限定符和类型 | 字段和说明 |
|---|---|
protected org.slf4j.Logger |
logger
定义日志
|
static String |
NVL_FUNCTION
判定为null的函数
|
| 构造器和说明 |
|---|
SqliteDialect() |
| 限定符和类型 | 方法和说明 |
|---|---|
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[] emptyCascadeClasses,
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[] paramsValue,
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) |
public boolean isUnique(SqlToyContext sqlToyContext, Serializable entity, String[] paramsNamed, Connection conn, Integer dbType, String tableName)
public 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
getRandomResult 在接口中 DialectExceptionpublic 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
findPageBySql 在接口中 DialectExceptionpublic QueryResult findTopBySql(SqlToyContext sqlToyContext, SqlToyConfig sqlToyConfig, QueryExecutor queryExecutor, DecryptHandler decryptHandler, Integer topSize, Connection conn, Integer dbType, String dialect, int fetchSize, int maxRows) throws Exception
findTopBySql 在接口中 DialectExceptionpublic 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
public Long getCountBySql(SqlToyContext sqlToyContext, SqlToyConfig sqlToyConfig, String sql, Object[] paramsValue, boolean isLastSql, Connection conn, Integer dbType, String dialect) throws Exception
getCountBySql 在接口中 DialectExceptionpublic Long saveOrUpdate(SqlToyContext sqlToyContext, Serializable entity, String[] forceUpdateFields, Connection conn, Integer dbType, String dialect, Boolean autoCommit, String tableName) throws Exception
saveOrUpdate 在接口中 DialecttableName - 分表场景对应取得的表名(无分表则当前表名)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 在接口中 DialectreflectPropsHandler - 此参数已经无实际意义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 在接口中 DialectreflectPropsHandler - 此参数已经无实际意义tableName - 分表场景对应取得的表名(无分表则当前表名)Exceptionpublic Serializable load(SqlToyContext sqlToyContext, Serializable entity, List<Class> cascadeTypes, LockMode lockMode, Connection conn, Integer dbType, String dialect, String tableName) throws Exception
public List<?> loadAll(SqlToyContext sqlToyContext, List<?> entities, List<Class> cascadeTypes, LockMode lockMode, Connection conn, Integer dbType, String dialect, String tableName, int fetchSize, int maxRows) throws Exception
public Object save(SqlToyContext sqlToyContext, Serializable entity, Connection conn, Integer dbType, String dialect, String tableName) throws Exception
public Long saveAll(SqlToyContext sqlToyContext, List<?> entities, int batchSize, ReflectPropsHandler reflectPropsHandler, Connection conn, Integer dbType, String dialect, Boolean autoCommit, String tableName) throws Exception
public 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
public Long 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
public Serializable updateSaveFetch(SqlToyContext sqlToyContext, Serializable entity, UpdateRowHandler updateRowHandler, String[] uniqueProps, Connection conn, Integer dbType, String dialect, String tableName) throws Exception
updateSaveFetch 在接口中 DialectuniqueProps - 唯一性pojo属性,为空默认为主键字段Exceptionpublic Long delete(SqlToyContext sqlToyContext, Serializable entity, Connection conn, Integer dbType, String dialect, String tableName) throws Exception
public Long deleteAll(SqlToyContext sqlToyContext, List<?> entities, int batchSize, Connection conn, Integer dbType, String dialect, Boolean autoCommit, String tableName) throws Exception
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 在接口中 DialectExceptionpublic StoreResult executeStore(SqlToyContext sqlToyContext, SqlToyConfig sqlToyConfig, String sql, Object[] inParamsValue, Integer[] outParamsType, Connection conn, Integer dbType, String dialect, int fetchSize) throws Exception
executeStore 在接口中 DialectExceptionpublic List<ColumnMeta> getTableColumns(String catalog, String schema, String tableName, Connection conn, Integer dbType, String dialect) throws Exception
getTableColumns 在接口中 DialectExceptionCopyright © 2023. All rights reserved.