public enum MethodType extends Enum<MethodType>
| 枚举常量和说明 |
|---|
Auto |
Delete
物理删除操作
|
LogicDelete
逻辑删除操作
|
Query
根据入参和返回值自动判断
findOne, listEntity, stdPaged, tagPaged
|
Save
保存数据
|
Update
更新数据
|
| 限定符和类型 | 字段和说明 |
|---|---|
static Set<String> |
AUTO_PREFIX
所有可能自动推断的前缀值列表
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
match(String method) |
static MethodType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static MethodType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final MethodType Auto
public static final MethodType Query
public static final MethodType Update
public static final MethodType Save
public static final MethodType Delete
public static final MethodType LogicDelete
public static MethodType[] values()
for (MethodType c : MethodType.values()) System.out.println(c);
public static MethodType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public boolean match(String method)
Copyright © 2023. All rights reserved.