Package cn.sinozg.applet.opt.cache
Class OptLogCache
java.lang.Object
cn.sinozg.applet.opt.cache.OptLogCache
缓存信息
- Since:
- 2024-02-27 21:37:43
- Author:
- xieyubin
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OptLogMainapiBaseInfo(Class<?> controller, Method method, boolean isDataLog, jakarta.servlet.http.HttpServletRequest request) 获取api请求的基本信息缓存static boolean删除所有的缓存private static OptMapperColumncolumn(OptMapperTable table, Field field, OptLogProperties properties) 获取字段信息private static OptMapperTablegeneratorTableInfo(Class<?> clazz, OptLogProperties properties) 根据实体配置,生成数据日志记录信息static OptMapperTablegetCacheTableInfo(Class<?> clazz, OptLogProperties properties) 从缓存获取到 实体信息static booleanignoreMethod(Class<?> clazz, String methodName) 判定方法是否被忽略static <T> OptTieRelation<T>生成依赖映射关系private static OptMapperTabletableBaseInfo(Class<?> clazz, OptLogProperties properties) 基础信息
-
Field Details
-
TIE_MAP
依赖缓存
-
-
Constructor Details
-
OptLogCache
public OptLogCache()
-
-
Method Details
-
clearApiBaseInfo
public static boolean clearApiBaseInfo()删除所有的缓存 -
apiBaseInfo
public static OptLogMain apiBaseInfo(Class<?> controller, Method method, boolean isDataLog, jakarta.servlet.http.HttpServletRequest request) 获取api请求的基本信息缓存- Parameters:
controller- 控制器method- 方法isDataLog- 配置是否记录日志request- request- Returns:
- 基本信息
-
getCacheTableInfo
从缓存获取到 实体信息- Parameters:
clazz- 实体类型properties- 配置- Returns:
- 对象
-
optTie
生成依赖映射关系- Type Parameters:
T- 类- Parameters:
clazz- 请求类- Returns:
- 映射关系
-
ignoreMethod
判定方法是否被忽略- Parameters:
clazz- 类methodName- 方法- Returns:
- 是否忽略
-
generatorTableInfo
根据实体配置,生成数据日志记录信息- Parameters:
clazz- 实体类型properties- 配置- Returns:
- 对象
-
column
private static OptMapperColumn column(OptMapperTable table, Field field, OptLogProperties properties) 获取字段信息- Parameters:
table- 表field- 字段properties- 配置- Returns:
- 字段
-
tableBaseInfo
基础信息- Parameters:
clazz- 实体类型properties- 配置- Returns:
- 对象
-