public class MethodHandleAutoSQL extends Object
Modifier and Type | Field and Description |
---|---|
protected static MethodHandleAutoSQL |
ms |
Modifier and Type | Method and Description |
---|---|
Condition |
build(DBDialect dialect,
org.springframework.data.repository.query.parser.Part part,
ColumnMapping cm,
Object value)
Builds a JPA from the underlying
Part . |
Object |
call(DBClient dbClient,
Class entityClass,
Method m,
Object[] params) |
static MethodHandleAutoSQL |
getInstance() |
protected Object |
parseSelectList(org.springframework.data.repository.query.parser.PartTree tree,
Method method,
DBClient dbClient,
List<SQLContext> selects) |
protected Object |
parseUpdate(SQLContext context,
Method method,
DBClient dbClient)
根据返回参数int 或者int[] 判断是否是批处理。如果都没有,根据第一参数判断
|
protected static MethodHandleAutoSQL ms
public static MethodHandleAutoSQL getInstance()
protected Object parseUpdate(SQLContext context, Method method, DBClient dbClient)
context
- method
- dbClient
- protected Object parseSelectList(org.springframework.data.repository.query.parser.PartTree tree, Method method, DBClient dbClient, List<SQLContext> selects)
public Condition build(DBDialect dialect, org.springframework.data.repository.query.parser.Part part, ColumnMapping cm, Object value)
Part
.part
- cm
- value
- Copyright © 2020. All rights reserved.