package com.bailuntec.mapper;

import com.bailuntec.domain.entity.TOrderProduct;
import com.bailuntec.domain.entity.TOrderProductKey;
import com.bailuntec.domain.example.TOrderProductExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

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

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

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table t_order_product
     *
     * @mbg.generated
     */
    int deleteByPrimaryKey(TOrderProductKey key);

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

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

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

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

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table t_order_product
     *
     * @mbg.generated
     */
    TOrderProduct selectByPrimaryKey(TOrderProductKey key);

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

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

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

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

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

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