public interface FormServiceKit
| 限定符和类型 | 字段和说明 |
|---|---|
static Map<String,MethodMeta> |
METHOD_CACHED |
static KeyMap<Class> |
TableEntityClass
table name 和 Entity class映射定义
|
| 限定符和类型 | 方法和说明 |
|---|---|
static Collection |
asCollection(Object arg) |
static Object |
delete(MethodMeta meta,
boolean isLogic,
Object... args)
更新操作
|
static Object |
delete(MethodMeta meta,
Collection list,
boolean isLogic)
更新操作
|
static Class |
getEntityClass(Class entityClass,
String entityTable)
根据
FormMethod或FormService注解上声明的entityClass和entityTable
值解析实际的EntityClass值 |
static Class<? extends IEntity> |
getEntityClass(String table)
根据表名称获取实例类型
|
static Class |
getEntityClass(String className,
String entityTable)
根据
FormMethod或FormService注解上声明的entityClass和entityTable
值解析实际的EntityClass值 |
static <T> T |
invoke(MethodMeta meta,
Object[] args)
执行Form操作
|
static MethodMeta |
meta(Class klass,
String methodName,
Class... pClasses) |
static Object |
query(MethodMeta meta,
Object... args)
构造查询条件实例
|
static Object |
returnUpdateResult(MethodMeta meta,
int count) |
static Object |
returnUpdateResult(MethodMeta meta,
List<Integer> counts) |
static Object |
save(MethodMeta meta,
Collection list)
批量插入
|
static Object |
save(MethodMeta meta,
Object... args)
构造eClass实体实例
|
static Object |
update(MethodMeta meta,
Collection list)
更新操作
|
static Object |
update(MethodMeta meta,
Object... args)
更新操作
|
static final Map<String,MethodMeta> METHOD_CACHED
static Object save(MethodMeta meta, Object... args)
meta - 操作定义args - 入参static Object save(MethodMeta meta, Collection list)
meta - 入参元数据list - 入参列表static Object delete(MethodMeta meta, Collection list, boolean isLogic)
meta - 方法元数据list - 入参是Liststatic Object update(MethodMeta meta, Object... args)
meta - 操作定义args - 入参static Object delete(MethodMeta meta, boolean isLogic, Object... args)
meta - 操作定义isLogic - 是否逻辑删除args - 入参static Object update(MethodMeta meta, Collection list)
meta - 方法元数据list - 入参是Liststatic Object query(MethodMeta meta, Object... args)
meta - 操作定义args - 入参static Object returnUpdateResult(MethodMeta meta, int count)
static Object returnUpdateResult(MethodMeta meta, List<Integer> counts)
static Class getEntityClass(String className, String entityTable)
FormMethod或FormService注解上声明的entityClass和entityTable
值解析实际的EntityClass值className - Entity类entityTable - 表名称static Class getEntityClass(Class entityClass, String entityTable)
FormMethod或FormService注解上声明的entityClass和entityTable
值解析实际的EntityClass值entityClass - Entity类entityTable - 表名称static Class<? extends IEntity> getEntityClass(String table)
table - 表名称static <T> T invoke(MethodMeta meta, Object[] args)
args - 方法执行行为static Collection asCollection(Object arg)
static MethodMeta meta(Class klass, String methodName, Class... pClasses)
Copyright © 2022. All rights reserved.