package com.bailuntec.mapper;

import com.bailuntec.domain.entity.DcBaseQueue;
import com.bailuntec.domain.example.DcBaseQueueExample;
import com.dangdang.ddframe.job.api.ShardingContext;
import org.apache.ibatis.annotations.Param;

import java.util.List;

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

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

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

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

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

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

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_base_queue
     *
     * @mbg.generated
     * @project https://github.com/itfsw/mybatis-generator-plugin
     */
    DcBaseQueue selectOneByExampleWithBLOBs(DcBaseQueueExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_base_queue
     *
     * @mbg.generated
     */
    List<DcBaseQueue> selectByExampleWithBLOBs(DcBaseQueueExample example);

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

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

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

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_base_queue
     *
     * @mbg.generated
     */
    int updateByExampleWithBLOBs(@Param("record") DcBaseQueue record, @Param("example") DcBaseQueueExample example);

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

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

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_base_queue
     *
     * @mbg.generated
     */
    int updateByPrimaryKeyWithBLOBs(DcBaseQueue record);

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

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

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

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


    List<DcBaseQueue> poll(@Param("shardingContext") ShardingContext shardingContext);
}
