All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.taotao.cloud.idempotent.enhance.db.mapper.BusinessIdempotentMapper Maven / Gradle / Ivy

There is a newer version: 2024.09
Show newest version
/*
 * Copyright (c) 2020-2030, Shuigedeng ([email protected] & https://blog.taotaocloud.top/).
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.taotao.cloud.idempotent.enhance.db.mapper;

import com.taotao.cloud.idempotent.enhance.core.pojo.IdempotentEntity;

/** 幂等mapper */
public interface BusinessIdempotentMapper {

    /**
     * 插入db
     *
     * @param idempotentEntity 待插入的实体
     * @return java.lang.Integer 影响行数
     */
    Integer insert(IdempotentEntity idempotentEntity);

    /**
     * 修改幂等状态为处理中
     *
     * @param idempotentEntity 待修改的实体
     * @return java.lang.Integer 影响行数
     */
    Integer changeIdempotentStatusProcessing(IdempotentEntity idempotentEntity);

    /**
     * 修改幂等状态为成功
     *
     * @param idempotentEntity 待修改的实体
     * @return java.lang.Integer 影响行数
     */
    Integer changeIdempotentStatusSuccess(IdempotentEntity idempotentEntity);

    /**
     * 按照唯一键删除
     *
     * @param uniqueKey 唯一键
     * @return java.lang.Integer 影响行数
     */
    Integer deleteByUniqueKey(String uniqueKey);

    /**
     * 查询幂等记录
     *
     * @param uniqueKey 唯一键
     */
    IdempotentEntity queryByUniqueKey(String uniqueKey);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy