public class OrgPostCache extends java.lang.Object implements com.seeyon.ctp.component.cache.EntityCanalMap<V3xOrgPost>, com.seeyon.ctp.component.cache.CanalMapViewer
构造器和说明 |
---|
OrgPostCache() |
限定符和类型 | 方法和说明 |
---|---|
java.util.Set<V3xOrgPost> |
findAll() |
java.util.Set<V3xOrgPost> |
findByAccountId(java.lang.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()
获取缓存分类
|
V3xOrgPost |
getById(java.lang.Long id)
根据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 |
isExistPost()
判断是否存在岗位
|
java.lang.Object |
mergeLocalData(java.lang.Object result,
java.util.List<com.seeyon.ctp.component.cache.EntityCanalMap.ActionHolder<V3xOrgPost>> updateEntry,
java.lang.String methodName,
java.lang.Object[] args)
合并ThreadLocal,尚未提交的数据,存在当前线程事务还没提交,又要获取数据场景
|
void |
reloadAllData()
从数据库加载全量数据
|
void |
updateChange(java.util.List<com.seeyon.ctp.component.cache.EntityCanalMap.ActionHolder<V3xOrgPost>> updateEntry)
更新变更数据[缓存组织内部使用,应用不要调用]
|
public com.seeyon.ctp.component.cache.CanalMap.Define getCacheDefine()
com.seeyon.ctp.component.cache.EntityCanalMap
getCacheDefine
在接口中 com.seeyon.ctp.component.cache.EntityCanalMap<V3xOrgPost>
public void reloadAllData()
com.seeyon.ctp.component.cache.EntityCanalMap
reloadAllData
在接口中 com.seeyon.ctp.component.cache.EntityCanalMap<V3xOrgPost>
public void updateChange(java.util.List<com.seeyon.ctp.component.cache.EntityCanalMap.ActionHolder<V3xOrgPost>> updateEntry)
com.seeyon.ctp.component.cache.EntityCanalMap
updateChange
在接口中 com.seeyon.ctp.component.cache.EntityCanalMap<V3xOrgPost>
updateEntry
- 变更数据public java.lang.Object mergeLocalData(java.lang.Object result, java.util.List<com.seeyon.ctp.component.cache.EntityCanalMap.ActionHolder<V3xOrgPost>> updateEntry, java.lang.String methodName, java.lang.Object[] args)
com.seeyon.ctp.component.cache.EntityCanalMap
mergeLocalData
在接口中 com.seeyon.ctp.component.cache.EntityCanalMap<V3xOrgPost>
result
- 返回的数据updateEntry
- 需要合并的数据methodName
- 方法args
- 方法参数public V3xOrgPost getById(java.lang.Long id)
id
- idpublic java.util.Set<V3xOrgPost> findByAccountId(java.lang.Long accountId)
public java.util.Set<V3xOrgPost> findAll()
public boolean isExistPost()
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