类 RpcTransService

java.lang.Object
org.dromara.trans.service.impl.SimpleTransService
org.dromara.trans.service.impl.RpcTransService
所有已实现的接口:
ITransTypeService, org.springframework.beans.factory.InitializingBean

public class RpcTransService extends SimpleTransService
远程翻译服务
  • 字段详细资料

    • LOGGER

      public static final org.slf4j.Logger LOGGER
  • 构造器详细资料

    • RpcTransService

      public RpcTransService()
  • 方法详细资料

    • addContextPath

      public void addContextPath(String serviceName, String contextPath)
      添加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 - vo
      tempTrans - 翻译注解
      返回:
    • 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 - po
      trans - 配置
      返回:
    • setTransCache

      public void setTransCache(Object type, SimpleTransService.TransCacheSett cacheSett)
      配置缓存
      覆盖:
      setTransCache 在类中 SimpleTransService
      参数:
      type -
      cacheSett -
    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      指定者:
      afterPropertiesSet 在接口中 org.springframework.beans.factory.InitializingBean
      覆盖:
      afterPropertiesSet 在类中 SimpleTransService
      抛出:
      Exception