public class EntityObjectManager extends EntityBaseManager
entityAgileMapComponent, entityChangeComponent, entityHashMapComponent, entityMySQLComponent, entityRedisComponent| 构造器和说明 |
|---|
EntityObjectManager() |
initLoadEntity, syncEntity, syncEntitypublic <T> T getEntity(String entityKey, Class<T> clazz)
T - 对象类型entityKey - 业务keyclazz - 对象类型public <T> T readEntity(String entityKey, Class<T> clazz) throws IOException
T - 类型entityKey - 业务keyclazz - 对象类型IOException - 异常信息public <T> Map<String,Object> readHashMap(String entityKey, Class<T> clazz) throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingExceptionpublic <T> void writeEntity(BaseEntity entity)
public <T> HashMapRedisService getHashMapService(String simpleName)
public <T> AgileMapRedisService getAgileMapService(String simpleName)
public <T> BaseRedisService getBaseRedisService(Class<T> clazz)
public BaseRedisService getBaseRedisService(String entityType)
public <T> RedisReader getRedisReader(Class<T> clazz)
public <T> RedisReader getRedisReader(String entityType)
public <T> RedisWriter getRedisWriter(Class<T> clazz)
public BaseEntityService getDBService(String entityType)
public <T> List<BaseEntity> getEntityList(Class<T> clazz)
public void insertEntity(BaseEntity entity)
entity - 实体public void insertRDEntity(BaseEntity entity)
entity - 实体public void deleteEntity(BaseEntity entity)
entity - 实体public <T> void deleteEntity(Long id, Class<T> clazz)
T - 类型id - IDclazz - 类型public <T> void deleteRDEntity(String serviceKey, Class<T> clazz)
T - 类型serviceKey - 业务特征clazz - 类型public void updateEntity(BaseEntity entity)
entity - 实体public void updateRDEntity(BaseEntity entity)
entity - 实体Copyright © 2023. All rights reserved.