public class DialectFactory extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected org.slf4j.Logger |
logger
定义日志
|
| 限定符和类型 | 方法和说明 |
|---|---|
Long |
batchUpdate(SqlToyContext sqlToyContext,
SqlToyConfig sqlToyConfig,
List dataSet,
int batchSize,
ReflectPropsHandler reflectPropsHandler,
InsertRowCallbackHandler insertCallhandler,
Boolean autoCommit,
DataSource dataSource) |
Long |
delete(SqlToyContext sqlToyContext,
Serializable entity,
DataSource dataSource) |
<T extends Serializable> |
deleteAll(SqlToyContext sqlToyContext,
List<T> entities,
int batchSize,
DataSource dataSource,
Boolean autoCommit) |
Long |
executeSql(SqlToyContext sqlToyContext,
SqlToyConfig sqlToyConfig,
QueryExecutor queryExecutor,
Integer[] paramsTypes,
Boolean autoCommit,
DataSource dataSource) |
StoreResult |
executeStore(SqlToyContext sqlToyContext,
SqlToyConfig sqlToyConfig,
Object[] inParamsValue,
Integer[] outParamsType,
Class resultType,
DataSource dataSource) |
void |
fetchStream(SqlToyContext sqlToyContext,
QueryExecutor queryExecutor,
SqlToyConfig sqlToyConfig,
StreamResultHandler streamResultHandler,
DataSource dataSource) |
QueryResult |
findByQuery(SqlToyContext sqlToyContext,
QueryExecutor queryExecutor,
SqlToyConfig sqlToyConfig,
LockMode lockMode,
DataSource dataSource) |
QueryResult |
findPage(SqlToyContext sqlToyContext,
QueryExecutor queryExecutor,
SqlToyConfig sqlToyConfig,
long pageNo,
Integer pageSize,
Boolean overPageToFirst,
DataSource dataSource) |
QueryResult |
findSkipTotalCountPage(SqlToyContext sqlToyContext,
QueryExecutor queryExecutor,
SqlToyConfig sqlToyConfig,
long pageNo,
Integer pageSize,
DataSource dataSource) |
QueryResult |
findTop(SqlToyContext sqlToyContext,
QueryExecutor queryExecutor,
SqlToyConfig sqlToyConfig,
double topSize,
DataSource dataSource) |
Long |
getCountBySql(SqlToyContext sqlToyContext,
QueryExecutor queryExecutor,
SqlToyConfig sqlToyConfig,
DataSource dataSource) |
static DialectFactory |
getInstance()
获取对象单例
|
QueryResult |
getRandomResult(SqlToyContext sqlToyContext,
QueryExecutor queryExecutor,
SqlToyConfig sqlToyConfig,
Double randomCount,
DataSource dataSource) |
List<ColumnMeta> |
getTableColumns(SqlToyContext sqlToyContext,
String catalog,
String schema,
String tableName,
DataSource dataSource) |
List<TableMeta> |
getTables(SqlToyContext sqlToyContext,
String catalog,
String schema,
String tableName,
DataSource dataSource) |
boolean |
isUnique(SqlToyContext sqlToyContext,
UniqueExecutor uniqueExecutor,
DataSource dataSource) |
<T extends Serializable> |
load(SqlToyContext sqlToyContext,
T entity,
Class[] cascadeTypes,
LockMode lockMode,
DataSource dataSource) |
<T extends Serializable> |
loadAll(SqlToyContext sqlToyContext,
List<T> entities,
Class[] cascadeTypes,
LockMode lockMode,
DataSource dataSource) |
Serializable |
save(SqlToyContext sqlToyContext,
Serializable entity,
DataSource dataSource) |
Long |
saveAll(SqlToyContext sqlToyContext,
List<?> entities,
int batchSize,
ReflectPropsHandler reflectPropsHandler,
DataSource dataSource,
Boolean autoCommit) |
Long |
saveAllIgnoreExist(SqlToyContext sqlToyContext,
List<?> entities,
int batchSize,
ReflectPropsHandler reflectPropsHandler,
DataSource dataSource,
Boolean autoCommit) |
Long |
saveOrUpdate(SqlToyContext sqlToyContext,
Serializable entity,
String[] forceUpdateProps,
DataSource dataSource) |
Long |
saveOrUpdateAll(SqlToyContext sqlToyContext,
List<?> entities,
int batchSize,
String[] forceUpdateProps,
ReflectPropsHandler reflectPropsHandler,
DataSource dataSource,
Boolean autoCommit) |
Long |
update(SqlToyContext sqlToyContext,
Serializable entity,
String[] forceUpdateFields,
boolean cascade,
Class[] forceCascadeClass,
HashMap<Class,String[]> subTableForceUpdateProps,
DataSource dataSource) |
Long |
updateAll(SqlToyContext sqlToyContext,
List<?> entities,
int batchSize,
String[] uniqueFields,
String[] forceUpdateFields,
ReflectPropsHandler reflectPropsHandler,
DataSource dataSource,
Boolean autoCommit) |
QueryResult |
updateFetch(SqlToyContext sqlToyContext,
QueryExecutor queryExecutor,
SqlToyConfig sqlToyConfig,
UpdateRowHandler updateRowHandler,
DataSource dataSource) |
Serializable |
updateSaveFetch(SqlToyContext sqlToyContext,
Serializable entity,
UpdateRowHandler updateRowHandler,
String[] uniqueProps,
DataSource dataSource) |
boolean |
wrapTreeTableRoute(SqlToyContext sqlToyContext,
TreeTableModel treeModel,
DataSource dataSource) |
public static DialectFactory getInstance()
public Long batchUpdate(SqlToyContext sqlToyContext, SqlToyConfig sqlToyConfig, List dataSet, int batchSize, ReflectPropsHandler reflectPropsHandler, InsertRowCallbackHandler insertCallhandler, Boolean autoCommit, DataSource dataSource)
sqlToyContext - sqlToyConfig - dataSet - 支持ListbatchSize - reflectPropsHandler - insertCallhandler - 使用反调方式自己对rs进行处理autoCommit - dataSource - public Long executeSql(SqlToyContext sqlToyContext, SqlToyConfig sqlToyConfig, QueryExecutor queryExecutor, Integer[] paramsTypes, Boolean autoCommit, DataSource dataSource)
sqlToyContext - sqlToyConfig - queryExecutor - paramsTypes - autoCommit - dataSource - public boolean isUnique(SqlToyContext sqlToyContext, UniqueExecutor uniqueExecutor, DataSource dataSource)
sqlToyContext - uniqueExecutor - dataSource - public QueryResult getRandomResult(SqlToyContext sqlToyContext, QueryExecutor queryExecutor, SqlToyConfig sqlToyConfig, Double randomCount, DataSource dataSource)
sqlToyContext - queryExecutor - sqlToyConfig - randomCount - dataSource - public boolean wrapTreeTableRoute(SqlToyContext sqlToyContext, TreeTableModel treeModel, DataSource dataSource)
sqlToyContext - treeModel - dataSource - public QueryResult findSkipTotalCountPage(SqlToyContext sqlToyContext, QueryExecutor queryExecutor, SqlToyConfig sqlToyConfig, long pageNo, Integer pageSize, DataSource dataSource)
sqlToyContext - queryExecutor - sqlToyConfig - pageNo - pageSize - dataSource - public QueryResult findPage(SqlToyContext sqlToyContext, QueryExecutor queryExecutor, SqlToyConfig sqlToyConfig, long pageNo, Integer pageSize, Boolean overPageToFirst, DataSource dataSource)
sqlToyContext - queryExecutor - sqlToyConfig - pageNo - pageSize - overPageToFirst - dataSource - public QueryResult findTop(SqlToyContext sqlToyContext, QueryExecutor queryExecutor, SqlToyConfig sqlToyConfig, double topSize, DataSource dataSource)
sqlToyContext - queryExecutor - sqlToyConfig - topSize - dataSource - public QueryResult findByQuery(SqlToyContext sqlToyContext, QueryExecutor queryExecutor, SqlToyConfig sqlToyConfig, LockMode lockMode, DataSource dataSource)
sqlToyContext - queryExecutor - sqlToyConfig - lockMode - dataSource - public Long getCountBySql(SqlToyContext sqlToyContext, QueryExecutor queryExecutor, SqlToyConfig sqlToyConfig, DataSource dataSource)
sqlToyContext - queryExecutor - sqlToyConfig - dataSource - public Long saveOrUpdate(SqlToyContext sqlToyContext, Serializable entity, String[] forceUpdateProps, DataSource dataSource)
sqlToyContext - entity - forceUpdateProps - dataSource - public Long saveOrUpdateAll(SqlToyContext sqlToyContext, List<?> entities, int batchSize, String[] forceUpdateProps, ReflectPropsHandler reflectPropsHandler, DataSource dataSource, Boolean autoCommit)
sqlToyContext - entities - batchSize - forceUpdateProps - reflectPropsHandler - dataSource - autoCommit - public Long saveAllIgnoreExist(SqlToyContext sqlToyContext, List<?> entities, int batchSize, ReflectPropsHandler reflectPropsHandler, DataSource dataSource, Boolean autoCommit)
sqlToyContext - entities - batchSize - reflectPropsHandler - dataSource - autoCommit - public <T extends Serializable> T load(SqlToyContext sqlToyContext, T entity, Class[] cascadeTypes, LockMode lockMode, DataSource dataSource)
sqlToyContext - entity - cascadeTypes - lockMode - dataSource - public <T extends Serializable> List<T> loadAll(SqlToyContext sqlToyContext, List<T> entities, Class[] cascadeTypes, LockMode lockMode, DataSource dataSource)
sqlToyContext - entities - cascadeTypes - lockMode - dataSource - public Serializable save(SqlToyContext sqlToyContext, Serializable entity, DataSource dataSource)
sqlToyContext - entity - dataSource - public Long saveAll(SqlToyContext sqlToyContext, List<?> entities, int batchSize, ReflectPropsHandler reflectPropsHandler, DataSource dataSource, Boolean autoCommit)
sqlToyContext - entities - batchSize - reflectPropsHandler - dataSource - autoCommit - public Long update(SqlToyContext sqlToyContext, Serializable entity, String[] forceUpdateFields, boolean cascade, Class[] forceCascadeClass, HashMap<Class,String[]> subTableForceUpdateProps, DataSource dataSource)
sqlToyContext - entity - forceUpdateFields - cascade - forceCascadeClass - subTableForceUpdateProps - dataSource - public Serializable updateSaveFetch(SqlToyContext sqlToyContext, Serializable entity, UpdateRowHandler updateRowHandler, String[] uniqueProps, DataSource dataSource)
sqlToyContext - entity - updateRowHandler - uniqueProps - 空则表示根据主键查询dataSource - public Long updateAll(SqlToyContext sqlToyContext, List<?> entities, int batchSize, String[] uniqueFields, String[] forceUpdateFields, ReflectPropsHandler reflectPropsHandler, DataSource dataSource, Boolean autoCommit)
sqlToyContext - entities - batchSize - uniqueFields - 唯一性索引字段forceUpdateFields - reflectPropsHandler - dataSource - autoCommit - public Long delete(SqlToyContext sqlToyContext, Serializable entity, DataSource dataSource)
sqlToyContext - entity - dataSource - public <T extends Serializable> Long deleteAll(SqlToyContext sqlToyContext, List<T> entities, int batchSize, DataSource dataSource, Boolean autoCommit)
T - sqlToyContext - entities - batchSize - dataSource - autoCommit - public QueryResult updateFetch(SqlToyContext sqlToyContext, QueryExecutor queryExecutor, SqlToyConfig sqlToyConfig, UpdateRowHandler updateRowHandler, DataSource dataSource)
sqlToyContext - queryExecutor - sqlToyConfig - updateRowHandler - dataSource - public StoreResult executeStore(SqlToyContext sqlToyContext, SqlToyConfig sqlToyConfig, Object[] inParamsValue, Integer[] outParamsType, Class resultType, DataSource dataSource)
sqlToyContext - sqlToyConfig - inParamsValue - outParamsType - resultType - dataSource - public void fetchStream(SqlToyContext sqlToyContext, QueryExecutor queryExecutor, SqlToyConfig sqlToyConfig, StreamResultHandler streamResultHandler, DataSource dataSource)
sqlToyContext - queryExecutor - sqlToyConfig - streamResultHandler - dataSource - public List<ColumnMeta> getTableColumns(SqlToyContext sqlToyContext, String catalog, String schema, String tableName, DataSource dataSource)
sqlToyContext - catalog - schema - tableName - dataSource - public List<TableMeta> getTables(SqlToyContext sqlToyContext, String catalog, String schema, String tableName, DataSource dataSource)
sqlToyContext - catalog - schema - tableName - dataSource - Copyright © 2023. All rights reserved.