public class RpcTransService extends SimpleTransService
SimpleTransService.SimpleTransDiver, SimpleTransService.SimpleUnTransDiver, SimpleTransService.TransCacheSett| 限定符和类型 | 字段和说明 |
|---|---|
static org.slf4j.Logger |
LOGGER |
dataSourceSetter, simpleUnTransDiver, transCacheSettMap, transDiverGLOBAL_TRANS_CACHE, Logger, namespaceUniqueFieldMap| 构造器和说明 |
|---|
RpcTransService() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addContextPath(java.lang.String serviceName,
java.lang.String contextPath)
添加ContextPath 配置
|
void |
afterPropertiesSet() |
protected java.util.Map<java.lang.String,java.lang.Object> |
createTempTransCacheMap(VO po,
Trans trans,
java.util.Set<java.lang.String> targetFields)
创建一个临时缓存map
|
VO |
findById(java.lang.Object id,
Trans tempTrans)
根据id查询单个
|
java.util.List<? extends VO> |
findByIds(java.util.List ids,
Trans tempTrans,
java.util.Set<java.lang.String> targetFields)
根据id 集合 获取数据
|
java.lang.Object |
getUniqueKey(VO vo,
Trans tempTrans)
获取唯一键
|
void |
setTransCache(java.lang.Object type,
SimpleTransService.TransCacheSett cacheSett)
配置缓存
|
appedGroupKey, getTargetClassName, getUnTransResult, onMessage, regsiterTransDiver, transMore, transOne, unTransMore, unTransOneclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearGlobalCache, findById, findByIds, getFromGlobalCache, initLocalFromGlobalCache, put2GlobalCache, reset, setRef, setRef, setRef, setRef, setRef, setRefs, setUniqueFieldCache, setValuepublic void addContextPath(java.lang.String serviceName,
java.lang.String contextPath)
serviceName - 服务名称contextPath - 服务路径public java.util.List<? extends VO> findByIds(java.util.List ids, Trans tempTrans, java.util.Set<java.lang.String> targetFields)
SimpleTransServicefindByIds 在类中 SimpleTransServiceids - 主键tempTrans - 翻译配置targetFields - 需要查询的字段public VO findById(java.lang.Object id, Trans tempTrans)
SimpleTransServicefindById 在类中 SimpleTransServicepublic java.lang.Object getUniqueKey(VO vo, Trans tempTrans)
getUniqueKey 在类中 SimpleTransServicevo - votempTrans - 翻译注解protected java.util.Map<java.lang.String,java.lang.Object> createTempTransCacheMap(VO po, Trans trans, java.util.Set<java.lang.String> targetFields)
createTempTransCacheMap 在类中 SimpleTransServicepo - potrans - 配置public void setTransCache(java.lang.Object type,
SimpleTransService.TransCacheSett cacheSett)
setTransCache 在类中 SimpleTransServicetype - cacheSett - public void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet 在接口中 org.springframework.beans.factory.InitializingBeanafterPropertiesSet 在类中 SimpleTransServicejava.lang.ExceptionCopyright © 2024. All Rights Reserved.