@Service @CacheConfig(cacheNames="user-setting") public class SimpleUserSettingService extends EnableCacheGenericEntityService<UserSettingEntity,String> implements UserSettingService
eventPublisherentityFactory, entityType, logger, logicPrimaryKeyValidator, primaryKeyType, validator| 构造器和说明 |
|---|
SimpleUserSettingService() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected boolean |
dataExisted(UserSettingEntity entity) |
UserSettingDao |
getDao() |
protected org.hswebframework.web.id.IDGenerator<String> |
getIDGenerator() |
String |
insert(UserSettingEntity entity) |
String |
saveOrUpdate(UserSettingEntity entity) |
List<UserSettingEntity> |
selectByUser(String userId,
String key) |
UserSettingEntity |
selectByUser(String userId,
String key,
String settingId) |
int |
updateByPk(String id,
UserSettingEntity entity) |
count, deleteByPk, select, selectByPk, updateByPkinit, physicalDeleteByPk, pushCreatedEvent, pushModifyEvent, selectByPk, setEventPublisher, updateByPkassertNotNull, assertNotNull, createEntity, entityFactoryIsEnabled, getEntityInstanceType, getEntityType, getPrimaryKeyType, setEntityFactory, setLogicPrimaryKeyValidator, setValidator, tryValidate, tryValidate, tryValidate, tryValidateProperty, tryValidateProperty, tryValidatePropertyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcount, select, selectPager, selectSingleupdateByPkdeleteByPkcreateEntity, getEntityInstanceTypecount, select, selectByPk, selectByPkcreateQuery, createQuerycount, select, selectPager, selectSinglecreateUpdate, createUpdate, createUpdate, createUpdatecreateDelete, createDelete, createDeleteprotected org.hswebframework.web.id.IDGenerator<String> getIDGenerator()
public UserSettingDao getDao()
getDao 在接口中 DefaultDSLDeleteService<UserSettingEntity,String>getDao 在接口中 DefaultDSLUpdateService<UserSettingEntity,String>getDao 在接口中 DefaultQueryByEntityService<UserSettingEntity>getDao 在接口中 GenericService<UserSettingEntity,String>protected boolean dataExisted(UserSettingEntity entity)
@Cacheable(key="\'user:\'+#userId+\'.\'+#key") public List<UserSettingEntity> selectByUser(String userId, String key)
selectByUser 在接口中 UserSettingService@Cacheable(key="\'user:\'+#userId+\'.\'+#key+\'.\'+#settingId") public UserSettingEntity selectByUser(String userId, String key, String settingId)
selectByUser 在接口中 UserSettingService@CacheEvict(key="\'user:\'+#entity.userId+\'.\'+#entity.key+\'.\'+#entity.settingId") @CacheEvict(key="\'user:\'+#entity.userId+\'.\'+#entity.key") public String insert(UserSettingEntity entity)
insert 在接口中 InsertService<UserSettingEntity,String>insert 在类中 EnableCacheGenericEntityService<UserSettingEntity,String>@CacheEvict(key="\'user:\'+#entity.userId+\'.\'+#entity.key+\'.\'+#entity.settingId") @CacheEvict(key="\'user:\'+#entity.userId+\'.\'+#entity.key") public String saveOrUpdate(UserSettingEntity entity)
@CacheEvict(key="\'user:\'+#entity.userId+\'.\'+#entity.key+\'.\'+#entity.settingId") @CacheEvict(key="\'user:\'+#entity.userId+\'.\'+#entity.key") public int updateByPk(String id, UserSettingEntity entity)
Copyright © 2016–2019. All rights reserved.