Modifier and Type | Method and Description |
---|---|
int |
DBMethod.execute(SQLContext context) |
int |
DBClient.execute(SQLContext context) |
<T> List<T> |
DBMethod.selectList(Class<T> beanClass,
SQLContext context) |
<T> List<T> |
DBClient.selectList(Class<T> beanClass,
SQLContext context) |
<T> List<T> |
DBMethod.selectList(Class<T> beanClass,
SQLContext context,
long start,
int limit) |
<T> List<T> |
DBClient.selectList(Class<T> beanClass,
SQLContext context,
long start,
int limit) |
<T> T |
DBMethod.selectOne(Class<T> clz,
SQLContext context) |
<T> T |
DBClient.selectOne(Class<T> clz,
SQLContext context) |
<T> Page<T> |
DBMethod.selectPage(Class<T> clz,
SQLContext context,
long start,
int limit) |
<T> Page<T> |
DBClient.selectPage(Class<T> clz,
SQLContext context,
long start,
int limit) |
Modifier and Type | Method and Description |
---|---|
static SQLContext |
CommonSql.forModelDelete(DBContext context,
TableMapping table,
DBDialect dialect,
DBObject obj) |
static SQLContext |
CommonSql.forModelDeleteByIds(DBContext context,
TableMapping table,
DBDialect dialect,
Object... keyParams) |
static SQLContext |
CommonSql.forModelExistsByIds(DBContext context,
TableMapping table,
DBDialect dialect,
Object... keyParams) |
static SQLContext |
CommonSql.forModelSelectByIds(DBContext context,
TableMapping table,
DBDialect dialect,
Object... keyParams) |
static SQLContext |
CommonSql.forModelUpdate(DBContext context,
TableMapping table,
DBDialect dialect,
DBObject obj,
boolean useOptimisticLock,
boolean useNvl)
更新对象,如果有乐观锁,会根据乐观锁条件更新,并会更新数据库中的乐观锁条件.但不会更新对象的乐观锁字段的值.
|
static SQLContext |
CrudTemplateIdImpl.getBatchSqlContextBySqlId(String sqlId,
List<Map<String,Object>> parameters,
List<Object[]> paras) |
static SQLContext |
CrudTemplateSourceImpl.getBatchSqlContextBySqlSource(String sqlSource,
List<Map<String,Object>> parameters,
List<Object[]> paras) |
static SQLContext |
CommonSql.model2Save(DBContext context,
TableMapping table,
DBDialect dialect,
DBObject obj,
boolean useOptimisticLock)
生成插入语句
|
SQLContext |
SQLContext.setTableMapping(TableMapping tableMapping) |
protected SQLContext |
CrudModelImpl.update(Connection conn,
DBObject obj,
boolean useOptimisticLock) |
Modifier and Type | Method and Description |
---|---|
int |
CrudModelInf.execute(Connection conn,
SQLContext context)
执行语句,非查询语句
|
int |
CrudModelImpl.execute(Connection conn,
SQLContext context)
Execute sql update
|
<T> T |
CrudSqlImpl.select(Connection conn,
PreparedStatementCreator psc,
ResultSetCallback<T> rsh,
SQLContext context) |
<T> T |
CrudModelImpl.select(Connection conn,
ResultSetCallback<T> rsh,
SQLContext context) |
<T> T |
CrudSqlInf.selectForUpdate(Connection conn,
ResultSetCallback<T> callback,
SQLContext context)
支持结果集更新
|
<T> T |
CrudSqlImpl.selectForUpdate(Connection conn,
ResultSetCallback<T> callback,
SQLContext context) |
protected <T> void |
CrudSqlImpl.selectIterator(Connection conn,
sf.database.jdbc.sql.CrudSqlImpl.IteratorResultSetCallBackDeal<T> deal,
boolean usePage,
SQLContext context) |
<T> void |
CrudSqlInf.selectIterator(Connection conn,
OrmIterator<T> ormIt,
Class<T> beanClass,
boolean usePage,
SQLContext context)
支持分页实现的迭代查询
|
<T> void |
CrudSqlImpl.selectIterator(Connection conn,
OrmIterator<T> ormIt,
Class<T> beanClass,
boolean usePage,
SQLContext context) |
<T> List<T> |
CrudModelInf.selectList(Connection conn,
Class<T> beanClass,
SQLContext context) |
<T> List<T> |
CrudModelImpl.selectList(Connection conn,
Class<T> beanClass,
SQLContext context) |
<T> List<T> |
CrudModelInf.selectList(Connection conn,
Class<T> beanClass,
SQLContext context,
long start,
int limit) |
<T> List<T> |
CrudModelImpl.selectList(Connection conn,
Class<T> beanClass,
SQLContext context,
long start,
int limit) |
List<Map<String,Object>> |
CrudModelInf.selectListMap(Connection conn,
SQLContext context) |
List<Map<String,Object>> |
CrudModelImpl.selectListMap(Connection conn,
SQLContext context) |
<T> T |
CrudModelInf.selectOne(Connection conn,
Class<T> beanClass,
SQLContext context) |
<T> T |
CrudModelImpl.selectOne(Connection conn,
Class<T> beanClass,
SQLContext context) |
<T> Page<T> |
CrudModelInf.selectPage(Connection conn,
long start,
int limit,
Class<T> beanClass,
SQLContext context) |
<T> Page<T> |
CrudModelImpl.selectPage(Connection conn,
long start,
int limit,
Class<T> beanClass,
SQLContext context) |
<T> Page<T> |
CrudModelInf.selectPage(Connection conn,
long start,
int limit,
Class<T> beanClass,
SQLContext context,
PageStrategy strategy) |
<T> Page<T> |
CrudModelImpl.selectPage(Connection conn,
long start,
int limit,
Class<T> beanClass,
SQLContext context,
PageStrategy strategy) |
<T> void |
CrudSqlInf.selectStream(Connection conn,
OrmStream<T> ormStream,
Class<T> beanClass,
boolean usePage,
SQLContext context) |
<T> void |
CrudSqlImpl.selectStream(Connection conn,
OrmStream<T> ormStream,
Class<T> beanClass,
boolean usePage,
SQLContext context) |
Modifier and Type | Method and Description |
---|---|
protected Object |
MethodHandleAutoSQL.parseUpdate(SQLContext context,
Method method,
DBClient dbClient)
根据返回参数int 或者int[] 判断是否是批处理。如果都没有,根据第一参数判断
|
Modifier and Type | Method and Description |
---|---|
protected Object |
MethodHandleAutoSQL.parseSelectList(org.springframework.data.repository.query.parser.PartTree tree,
Method method,
DBClient dbClient,
List<SQLContext> selects) |
Modifier and Type | Method and Description |
---|---|
SQLContext |
TemplateHandler.getParsedPageCountSql(String sqlId,
Map<String,Object> parameters) |
SQLContext |
TemplateHandler.getParsedPageCountSqlSource(String sqlSource,
Map<String,Object> parameters)
分页使用 查询总数
|
SQLContext |
TemplateHandler.getParsedPageListSql(String sqlId,
Map<String,Object> parameters) |
SQLContext |
TemplateHandler.getParsedPageListSqlSource(String sqlSource,
Map<String,Object> parameters)
分页使用 查询列表
|
SQLContext |
TemplateHandler.getParsedPageSql(String sqlId,
Map<String,Object> parameters) |
SQLContext |
TemplateHandler.getParsedPageSqlSource(String sqlSource,
Map<String,Object> parameters) |
SQLContext |
TemplateHandler.getParsedSql(String sqlId,
Map<String,Object> parameters) |
SQLContext |
TemplateHandler.getParsedSqlSource(String sqlSource,
Map<String,Object> parameters)
根据sql模板内容渲染
|
Modifier and Type | Method and Description |
---|---|
SQLContext |
EnjoyHandler.getPageSQLContext(SqlPara sp) |
SQLContext |
EnjoyHandler.getParsedPageCountSql(String sqlId,
Map<String,Object> parameters) |
SQLContext |
EnjoyHandler.getParsedPageCountSqlSource(String sqlSource,
Map<String,Object> parameters) |
SQLContext |
EnjoyHandler.getParsedPageListSql(String sqlId,
Map<String,Object> parameters) |
SQLContext |
EnjoyHandler.getParsedPageListSqlSource(String sqlSource,
Map<String,Object> parameters) |
SQLContext |
EnjoyHandler.getParsedPageSql(String sqlId,
Map<String,Object> parameters) |
SQLContext |
EnjoyHandler.getParsedPageSqlSource(String sqlSource,
Map<String,Object> parameters) |
SQLContext |
EnjoyHandler.getParsedSql(String sqlId,
Map<String,Object> parameters) |
SQLContext |
EnjoyHandler.getParsedSqlSource(String sqlSource,
Map<String,Object> parameters) |
SQLContext |
EnjoyHandler.getSQLContext(SqlPara sp) |
Modifier and Type | Method and Description |
---|---|
SQLContext |
ExpressionHandler.getParsedPageCountSql(String sqlId,
Map<String,Object> parameters) |
SQLContext |
ExpressionHandler.getParsedPageCountSqlSource(String sqlSource,
Map<String,Object> parameters) |
SQLContext |
ExpressionHandler.getParsedPageListSql(String sqlId,
Map<String,Object> parameters) |
SQLContext |
ExpressionHandler.getParsedPageListSqlSource(String sqlSource,
Map<String,Object> parameters) |
SQLContext |
ExpressionHandler.getParsedPageSql(String sqlId,
Map<String,Object> parameters) |
SQLContext |
ExpressionHandler.getParsedPageSqlSource(String sqlSource,
Map<String,Object> parameters) |
SQLContext |
ExpressionHandler.getParsedSql(String sqlId,
Map<String,Object> parameters) |
SQLContext |
ExpressionHandler.getParsedSqlSource(String sqlSource,
Map<String,Object> parameters) |
Modifier and Type | Method and Description |
---|---|
static SQLContext |
ExampleSQLHelp.getSelectSQLContext(Example example,
DBContext context,
SelectOpt opt,
boolean offsetLimit,
boolean useAlias)
获取完整的查询
|
static SQLContext |
ExampleSQLHelp.getSQLContextWhereClause(Example example,
boolean useAlias) |
Copyright © 2020. All rights reserved.