类 RpcTransService
java.lang.Object
org.dromara.trans.service.impl.SimpleTransService
org.dromara.trans.service.impl.RpcTransService
- 所有已实现的接口:
ITransTypeService,org.springframework.beans.factory.InitializingBean
远程翻译服务
-
嵌套类概要
从类继承的嵌套类/接口 org.dromara.trans.service.impl.SimpleTransService
SimpleTransService.SimpleTransDiver, SimpleTransService.SimpleUnTransDiver, SimpleTransService.TransCacheSett -
字段概要
字段从类继承的字段 org.dromara.trans.service.impl.SimpleTransService
dataSourceSetter, simpleUnTransDiver, transCacheSettMap, transDiver从接口继承的字段 org.dromara.trans.service.impl.ITransTypeService
GLOBAL_TRANS_CACHE, Logger, namespaceUniqueFieldMap -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidaddContextPath(String serviceName, String contextPath) 添加ContextPath 配置voidcreateTempTransCacheMap(org.dromara.core.trans.vo.VO po, org.dromara.core.trans.anno.Trans trans, Set<String> targetFields) 创建一个临时缓存maporg.dromara.core.trans.vo.VO根据id查询单个List<? extends org.dromara.core.trans.vo.VO>根据id 集合 获取数据getUniqueKey(org.dromara.core.trans.vo.VO vo, org.dromara.core.trans.anno.Trans tempTrans) 获取唯一键voidsetTransCache(Object type, SimpleTransService.TransCacheSett cacheSett) 配置缓存从类继承的方法 org.dromara.trans.service.impl.SimpleTransService
appedGroupKey, getTargetClassName, getUnTransResult, onMessage, regsiterTransDiver, transMore, transOne, unTransMore, unTransOne从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 org.dromara.trans.service.impl.ITransTypeService
clearGlobalCache, findById, findByIds, getFromGlobalCache, initLocalFromGlobalCache, put2GlobalCache, reset, setRef, setRef, setRef, setRef, setRef, setRefs, setUniqueFieldCache, setValue
-
字段详细资料
-
LOGGER
public static final org.slf4j.Logger LOGGER
-
-
构造器详细资料
-
RpcTransService
public RpcTransService()
-
-
方法详细资料
-
addContextPath
添加ContextPath 配置- 参数:
serviceName- 服务名称contextPath- 服务路径
-
findByIds
public List<? extends org.dromara.core.trans.vo.VO> findByIds(List ids, org.dromara.core.trans.anno.Trans tempTrans, Set<String> targetFields) 从类复制的说明:SimpleTransService根据id 集合 获取数据- 覆盖:
findByIds在类中SimpleTransService- 参数:
ids- 主键tempTrans- 翻译配置targetFields- 需要查询的字段- 返回:
-
findById
public org.dromara.core.trans.vo.VO findById(Object id, org.dromara.core.trans.anno.Trans tempTrans) 从类复制的说明:SimpleTransService根据id查询单个- 覆盖:
findById在类中SimpleTransService- 返回:
-
getUniqueKey
public Object getUniqueKey(org.dromara.core.trans.vo.VO vo, org.dromara.core.trans.anno.Trans tempTrans) 获取唯一键- 覆盖:
getUniqueKey在类中SimpleTransService- 参数:
vo- votempTrans- 翻译注解- 返回:
-
createTempTransCacheMap
protected Map<String,Object> createTempTransCacheMap(org.dromara.core.trans.vo.VO po, org.dromara.core.trans.anno.Trans trans, Set<String> targetFields) 创建一个临时缓存map- 覆盖:
createTempTransCacheMap在类中SimpleTransService- 参数:
po- potrans- 配置- 返回:
-
setTransCache
配置缓存- 覆盖:
setTransCache在类中SimpleTransService- 参数:
type-cacheSett-
-
afterPropertiesSet
- 指定者:
afterPropertiesSet在接口中org.springframework.beans.factory.InitializingBean- 覆盖:
afterPropertiesSet在类中SimpleTransService- 抛出:
Exception
-