package com.dcit.danger.service.impl;

import com.dcit.danger.dao.RegulationTypeMapper;
import com.dcit.danger.model.RegulationType;
import com.dcit.danger.model.RegulationTypeExample;
import com.dcit.danger.service.RegulationTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RegulationTypeServiceImpl implements RegulationTypeService {

	@Autowired
	private RegulationTypeMapper regulationTypeMapper;
	
	@Override
	public long countByExample(RegulationTypeExample example) {
		// TODO Auto-generated method stub
		return regulationTypeMapper.countByExample(example);
	}

	@Override
	public int deleteByExample(RegulationTypeExample example) {
		// TODO Auto-generated method stub
		return regulationTypeMapper.deleteByExample(example);
	}

	@Override
	public int deleteByPrimaryKey(String id) {
		// TODO Auto-generated method stub
		return regulationTypeMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(RegulationType record) {
		// TODO Auto-generated method stub
		return regulationTypeMapper.insert(record);
	}

	@Override
	public int insertSelective(RegulationType record) {
		// TODO Auto-generated method stub
		return regulationTypeMapper.insertSelective(record);
	}

	@Override
	public List<RegulationType> selectByExample(RegulationTypeExample example) {
		// TODO Auto-generated method stub
		return regulationTypeMapper.selectByExample(example);
	}

	@Override
	public RegulationType selectByPrimaryKey(String id) {
		// TODO Auto-generated method stub
		return regulationTypeMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByExampleSelective(RegulationType record, RegulationTypeExample example) {
		// TODO Auto-generated method stub
		return regulationTypeMapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(RegulationType record, RegulationTypeExample example) {
		// TODO Auto-generated method stub
		return regulationTypeMapper.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(RegulationType record) {
		// TODO Auto-generated method stub
		return regulationTypeMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(RegulationType record) {
		// TODO Auto-generated method stub
		return regulationTypeMapper.updateByPrimaryKey(record);
	}

}
