public class OptLogCache extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
private static Map<Class<?>,OptTieRelation<?>> |
TIE_MAP
依赖缓存
|
| 构造器和说明 |
|---|
OptLogCache() |
| 限定符和类型 | 方法和说明 |
|---|---|
static OptLogMain |
apiBaseInfo(Class<?> controller,
Method method,
boolean isDataLog,
javax.servlet.http.HttpServletRequest request)
获取api请求的基本信息缓存
|
static boolean |
clearApiBaseInfo()
删除所有的缓存
|
private static OptMapperColumn |
column(OptMapperTable table,
Field field,
OptLogProperties properties)
获取字段信息
|
private static OptMapperTable |
generatorTableInfo(Class<?> clazz,
OptLogProperties properties)
根据实体配置,生成数据日志记录信息
|
static OptMapperTable |
getCacheTableInfo(Class<?> clazz,
OptLogProperties properties)
从缓存获取到 实体信息
|
static boolean |
ignoreMethod(Class<?> clazz,
String methodName)
判定方法是否被忽略
|
static <T> OptTieRelation<T> |
optTie(Class<T> clazz)
生成依赖映射关系
|
private static OptMapperTable |
tableBaseInfo(Class<?> clazz,
OptLogProperties properties)
基础信息
|
private static final Map<Class<?>,OptTieRelation<?>> TIE_MAP
public static boolean clearApiBaseInfo()
public static OptLogMain apiBaseInfo(Class<?> controller, Method method, boolean isDataLog, javax.servlet.http.HttpServletRequest request)
controller - 控制器method - 方法isDataLog - 配置是否记录日志request - requestpublic static OptMapperTable getCacheTableInfo(Class<?> clazz, OptLogProperties properties)
clazz - 实体类型properties - 配置public static <T> OptTieRelation<T> optTie(Class<T> clazz)
T - 类clazz - 请求类public static boolean ignoreMethod(Class<?> clazz, String methodName)
clazz - 类methodName - 方法private static OptMapperTable generatorTableInfo(Class<?> clazz, OptLogProperties properties)
clazz - 实体类型properties - 配置private static OptMapperColumn column(OptMapperTable table, Field field, OptLogProperties properties)
table - 表field - 字段properties - 配置private static OptMapperTable tableBaseInfo(Class<?> clazz, OptLogProperties properties)
clazz - 实体类型properties - 配置Copyright © 2024. All rights reserved.