Package com.bytedesk.douyin.comment
Class DouyinCommentRestService
java.lang.Object
com.bytedesk.core.base.BaseRestService<DouyinCommentEntity,DouyinCommentRequest,DouyinCommentResponse>
com.bytedesk.douyin.comment.DouyinCommentRestService
@Service
public class DouyinCommentRestService
extends BaseRestService<DouyinCommentEntity,DouyinCommentRequest,DouyinCommentResponse>
-
Field Summary
Fields inherited from class com.bytedesk.core.base.BaseRestService
authService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertToResponse(DouyinCommentEntity entity) create(DouyinCommentRequest request) protected org.springframework.data.jpa.domain.Specification<DouyinCommentEntity>createSpecification(DouyinCommentRequest request) 创建Specification对象,子类必须实现 用于queryByOrg的通用实现voiddelete(DouyinCommentRequest entity) voiddeleteByUid(String uid) protected DouyinCommentEntitydoSave(DouyinCommentEntity entity) 子类实现具体的保存逻辑protected org.springframework.data.domain.Page<DouyinCommentEntity>executePageQuery(org.springframework.data.jpa.domain.Specification<DouyinCommentEntity> spec, org.springframework.data.domain.Pageable pageable) 执行分页查询,子类必须实现 用于queryByOrg的通用实现handleOptimisticLockingFailureException(org.springframework.orm.ObjectOptimisticLockingFailureException e, DouyinCommentEntity entity) update(DouyinCommentRequest request) Methods inherited from class com.bytedesk.core.base.BaseRestService
deleteByOrgUid, findByOrgUid, getUidFromRequest, queryByOrg, queryByUid, queryByUser, recover, save, setUserUidToRequest
-
Constructor Details
-
DouyinCommentRestService
public DouyinCommentRestService()
-
-
Method Details
-
createSpecification
protected org.springframework.data.jpa.domain.Specification<DouyinCommentEntity> createSpecification(DouyinCommentRequest request) Description copied from class:BaseRestService创建Specification对象,子类必须实现 用于queryByOrg的通用实现- Specified by:
createSpecificationin classBaseRestService<DouyinCommentEntity,DouyinCommentRequest, DouyinCommentResponse>
-
executePageQuery
protected org.springframework.data.domain.Page<DouyinCommentEntity> executePageQuery(org.springframework.data.jpa.domain.Specification<DouyinCommentEntity> spec, org.springframework.data.domain.Pageable pageable) Description copied from class:BaseRestService执行分页查询,子类必须实现 用于queryByOrg的通用实现- Specified by:
executePageQueryin classBaseRestService<DouyinCommentEntity,DouyinCommentRequest, DouyinCommentResponse>
-
findByUid
- Specified by:
findByUidin classBaseRestService<DouyinCommentEntity,DouyinCommentRequest, DouyinCommentResponse>
-
create
- Specified by:
createin classBaseRestService<DouyinCommentEntity,DouyinCommentRequest, DouyinCommentResponse>
-
update
- Specified by:
updatein classBaseRestService<DouyinCommentEntity,DouyinCommentRequest, DouyinCommentResponse>
-
doSave
Description copied from class:BaseRestService子类实现具体的保存逻辑- Specified by:
doSavein classBaseRestService<DouyinCommentEntity,DouyinCommentRequest, DouyinCommentResponse>
-
deleteByUid
- Specified by:
deleteByUidin classBaseRestService<DouyinCommentEntity,DouyinCommentRequest, DouyinCommentResponse>
-
delete
- Specified by:
deletein classBaseRestService<DouyinCommentEntity,DouyinCommentRequest, DouyinCommentResponse>
-
handleOptimisticLockingFailureException
public DouyinCommentEntity handleOptimisticLockingFailureException(org.springframework.orm.ObjectOptimisticLockingFailureException e, DouyinCommentEntity entity) -
convertToResponse
- Specified by:
convertToResponsein classBaseRestService<DouyinCommentEntity,DouyinCommentRequest, DouyinCommentResponse>
-