public class OrgRoleCache extends java.lang.Object implements com.seeyon.ctp.component.cache.EntityCanalMap<V3xOrgRole>, com.seeyon.ctp.component.cache.CanalMapViewer
构造器和说明 |
---|
OrgRoleCache() |
限定符和类型 | 方法和说明 |
---|---|
java.util.Set<V3xOrgRole> |
findAll()
获取全部角色
|
java.util.Set<V3xOrgRole> |
findByAccountId(long accountId)
通过角色的单位获取角色
|
java.util.List<com.seeyon.ctp.component.cache.CanalMapViewer.CacheSimpleData> |
findCacheData(java.util.Map<java.lang.String,java.lang.Object> params)
获取缓存分页数据
|
java.util.List<com.seeyon.ctp.component.cache.CanalMapViewer.CacheCategory> |
findCategorys()
获取缓存分类
|
java.util.Set<java.lang.Long> |
getByAccountId(long accountId)
通过角色的单位获取角色id
|
java.util.List<java.lang.Long> |
getByCode(java.lang.String code)
通过角色code 获取角色
|
V3xOrgRole |
getById(java.lang.Long id)
根据Id获取实体
|
java.util.List<V3xOrgRole> |
getByIds(java.util.List<java.lang.Long> roleIds)
根据Id获取实体
|
com.seeyon.ctp.component.cache.CanalMap.Define |
getCacheDefine()
缓存分类名称
|
com.seeyon.ctp.component.cache.CanalMapViewer.CacheDetail |
getCacheDetail(java.lang.String cacheName,
java.lang.String categoryKey,
java.lang.String cacheKey)
获取详细的缓存数据
|
boolean |
isExistRole()
判断是否存在角色
|
java.lang.Object |
mergeLocalData(java.lang.Object result,
java.util.List<com.seeyon.ctp.component.cache.EntityCanalMap.ActionHolder<V3xOrgRole>> updateEntry,
java.lang.String methodName,
java.lang.Object[] args)
合并ThreadLocal,尚未提交的数据,存在当前线程事务还没提交,又要获取数据场景
|
void |
reloadAllData()
从数据库加载全量数据
|
void |
updateChange(java.util.List<com.seeyon.ctp.component.cache.EntityCanalMap.ActionHolder<V3xOrgRole>> updateEntry)
更新变更数据[缓存组织内部使用,应用不要调用]
|
public com.seeyon.ctp.component.cache.CanalMap.Define getCacheDefine()
com.seeyon.ctp.component.cache.EntityCanalMap
getCacheDefine
在接口中 com.seeyon.ctp.component.cache.EntityCanalMap<V3xOrgRole>
public void reloadAllData()
com.seeyon.ctp.component.cache.EntityCanalMap
reloadAllData
在接口中 com.seeyon.ctp.component.cache.EntityCanalMap<V3xOrgRole>
public void updateChange(java.util.List<com.seeyon.ctp.component.cache.EntityCanalMap.ActionHolder<V3xOrgRole>> updateEntry)
com.seeyon.ctp.component.cache.EntityCanalMap
updateChange
在接口中 com.seeyon.ctp.component.cache.EntityCanalMap<V3xOrgRole>
updateEntry
- 变更数据public java.lang.Object mergeLocalData(java.lang.Object result, java.util.List<com.seeyon.ctp.component.cache.EntityCanalMap.ActionHolder<V3xOrgRole>> updateEntry, java.lang.String methodName, java.lang.Object[] args)
com.seeyon.ctp.component.cache.EntityCanalMap
mergeLocalData
在接口中 com.seeyon.ctp.component.cache.EntityCanalMap<V3xOrgRole>
result
- 返回的数据updateEntry
- 需要合并的数据methodName
- 方法args
- 方法参数public V3xOrgRole getById(java.lang.Long id)
id
- idpublic java.util.List<V3xOrgRole> getByIds(java.util.List<java.lang.Long> roleIds)
roleIds
- 角色Idpublic java.util.List<java.lang.Long> getByCode(java.lang.String code)
code
- 角色codepublic java.util.Set<java.lang.Long> getByAccountId(long accountId)
accountId
- 单位idpublic java.util.Set<V3xOrgRole> findByAccountId(long accountId)
accountId
- 单位idpublic java.util.Set<V3xOrgRole> findAll()
public boolean isExistRole()
public java.util.List<com.seeyon.ctp.component.cache.CanalMapViewer.CacheCategory> findCategorys()
com.seeyon.ctp.component.cache.CanalMapViewer
findCategorys
在接口中 com.seeyon.ctp.component.cache.CanalMapViewer
public java.util.List<com.seeyon.ctp.component.cache.CanalMapViewer.CacheSimpleData> findCacheData(java.util.Map<java.lang.String,java.lang.Object> params)
com.seeyon.ctp.component.cache.CanalMapViewer
findCacheData
在接口中 com.seeyon.ctp.component.cache.CanalMapViewer
params
- 参数public com.seeyon.ctp.component.cache.CanalMapViewer.CacheDetail getCacheDetail(java.lang.String cacheName, java.lang.String categoryKey, java.lang.String cacheKey)
com.seeyon.ctp.component.cache.CanalMapViewer
getCacheDetail
在接口中 com.seeyon.ctp.component.cache.CanalMapViewer
cacheName
- 缓存全名称categoryKey
- 分类keycacheKey
- 缓存key