public class CompanyInterceptor
extends cn.veasion.db.interceptor.AbstractInterceptor
| 构造器和说明 |
|---|
CompanyInterceptor() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
clearCompanyId() |
static void |
clearSkip() |
static List<Long> |
companyIds() |
protected boolean |
containSkipClass(Class<?> clazz) |
static Long |
getThreadLocalCompanyId() |
protected void |
handleDelete(cn.veasion.db.update.Delete delete) |
protected void |
handleFilter(cn.veasion.db.AbstractFilter<?> abstractFilter) |
protected void |
handleInsert(Class<?> entityClass,
List<?> entityList,
List<Map<String,Object>> fieldValueMapList) |
protected void |
handleOnFilter(Object joinParam,
Supplier<List<cn.veasion.db.base.Filter>> onFilters,
Consumer<cn.veasion.db.base.Filter> onMethod,
String tableAs) |
static boolean |
isSkip() |
static Long |
setCompanyId(Long companyId) |
protected boolean |
skip() |
static void |
skip(boolean skip) |
static <R> R |
withCompanyId(Long companyId,
Supplier<R> supplier) |
static <R> R |
withSkip(Supplier<R> supplier) |
containSkipClass, handleAbstractFilter, handleBatchInsert, handleFilterSubQuery, handleQuery, handleSelectSubQuery, handleUpdate, interceptpublic static boolean isSkip()
public static void skip(boolean skip)
public static void clearSkip()
public static <R> R withSkip(Supplier<R> supplier)
public static void clearCompanyId()
protected boolean skip()
skip 在类中 cn.veasion.db.interceptor.AbstractInterceptorprotected boolean containSkipClass(Class<?> clazz)
containSkipClass 在类中 cn.veasion.db.interceptor.AbstractInterceptorprotected void handleDelete(cn.veasion.db.update.Delete delete)
handleDelete 在类中 cn.veasion.db.interceptor.AbstractInterceptorprotected void handleOnFilter(Object joinParam, Supplier<List<cn.veasion.db.base.Filter>> onFilters, Consumer<cn.veasion.db.base.Filter> onMethod, String tableAs)
handleOnFilter 在类中 cn.veasion.db.interceptor.AbstractInterceptorprotected void handleFilter(cn.veasion.db.AbstractFilter<?> abstractFilter)
handleFilter 在类中 cn.veasion.db.interceptor.AbstractInterceptorprotected void handleInsert(Class<?> entityClass, List<?> entityList, List<Map<String,Object>> fieldValueMapList)
handleInsert 在类中 cn.veasion.db.interceptor.AbstractInterceptorpublic static Long getThreadLocalCompanyId()
Copyright © 2022–2023. All rights reserved.