package com.bailuntec.mapper;

import com.bailuntec.domain.AmazonAdvert;
import com.bailuntec.domain.entity.DcAmazonAdvert;
import com.bailuntec.domain.example.DcAmazonAdvertExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DcAmazonAdvertMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_amazon_advert
     *
     * @mbg.generated
     */
    long countByExample(DcAmazonAdvertExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_amazon_advert
     *
     * @mbg.generated
     */
    int deleteByExample(DcAmazonAdvertExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_amazon_advert
     *
     * @mbg.generated
     */
    int deleteByPrimaryKey(Integer id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_amazon_advert
     *
     * @mbg.generated
     */
    int insert(DcAmazonAdvert record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_amazon_advert
     *
     * @mbg.generated
     */
    int insertSelective(DcAmazonAdvert record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_amazon_advert
     *
     * @mbg.generated
     * @project https://github.com/itfsw/mybatis-generator-plugin
     */
    DcAmazonAdvert selectOneByExample(DcAmazonAdvertExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_amazon_advert
     *
     * @mbg.generated
     */
    List<DcAmazonAdvert> selectByExample(DcAmazonAdvertExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_amazon_advert
     *
     * @mbg.generated
     */
    DcAmazonAdvert selectByPrimaryKey(Integer id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_amazon_advert
     *
     * @mbg.generated
     */
    int updateByExampleSelective(@Param("record") DcAmazonAdvert record, @Param("example") DcAmazonAdvertExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_amazon_advert
     *
     * @mbg.generated
     */
    int updateByExample(@Param("record") DcAmazonAdvert record, @Param("example") DcAmazonAdvertExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_amazon_advert
     *
     * @mbg.generated
     */
    int updateByPrimaryKeySelective(DcAmazonAdvert record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_amazon_advert
     *
     * @mbg.generated
     */
    int updateByPrimaryKey(DcAmazonAdvert record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_amazon_advert
     *
     * @mbg.generated
     * @project https://github.com/itfsw/mybatis-generator-plugin
     */
    int upsert(DcAmazonAdvert record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_amazon_advert
     *
     * @mbg.generated
     * @project https://github.com/itfsw/mybatis-generator-plugin
     */
    int upsertSelective(AmazonAdvert record);
}