package com.dcit.authority.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dcit.authority.dao.CountyMapper;
import com.dcit.authority.model.County;
import com.dcit.authority.model.CountyExample;
import com.dcit.authority.service.CountyService;


@Service
public class CountyServiceImpl implements CountyService {

	@Autowired
	private CountyMapper countyMapper;
	
	@Override
	public int countByExample(CountyExample example) {
		// TODO Auto-generated method stub
		return countyMapper.countByExample(example);
	}

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

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

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

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

	@Override
	public List<County> selectByExample(CountyExample example) {
		// TODO Auto-generated method stub
		return countyMapper.selectByExample(example);
	}

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

	@Override
	public int updateByExampleSelective(County record, CountyExample example) {
		// TODO Auto-generated method stub
		return countyMapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(County record, CountyExample example) {
		// TODO Auto-generated method stub
		return countyMapper.updateByExample(record, example);
	}

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

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

}
